diff --git a/Cargo.lock b/Cargo.lock index 6926951ce..b694b809a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2121,9 +2121,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b0487d90e047de87f984913713b85c601c05609aad5b0df4b4573fbf69aa13f" +checksum = "2c0fef6c4230e4ccf618a35c59d7ede15dea37de8427500f50aff708806e42ec" dependencies = [ "bytes", "prost-derive", @@ -2152,9 +2152,9 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9552f850d5f0964a4e4d0bf306459ac29323ddfbae05e35a7c0d35cb0803cc5" +checksum = "157c5a9d7ea5c2ed2d9fb8f495b64759f7816c7eaea54ba3978f0d63000162e3" dependencies = [ "anyhow", "itertools 0.13.0", @@ -2165,9 +2165,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4759aa0d3a6232fb8dbdb97b61de2c20047c68aca932c7ed76da9d788508d670" +checksum = "cc2f1e56baa61e93533aebc21af4d2134b70f66275e0fcdf3cbe43d77ff7e8fc" dependencies = [ "prost", ] 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 9d01701e9..ee4a3ad93 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 @@ -2,12 +2,17 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; //! #[pulumi_main] //! fn test_main() -> Result<(), Error> { +//! let example = get_access_identity_provider::invoke( +//! GetAccessIdentityProviderArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .name("Google SSO") +//! .build_struct(), +//! ); //! let exampleAccessApplication = access_application::create( //! "exampleAccessApplication", //! AccessApplicationArgs::builder() @@ -22,7 +27,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 ddbfc5939..2b3fdfd99 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 @@ -2,8 +2,6 @@ //! //! ## Example Usage //! -//! -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 bf2d015da..da30d5b25 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 @@ -2,16 +2,16 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getAccounts -//! Arguments: -//! name: example account +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_accounts::invoke( +//! GetAccountsArgs::builder().name("example account").build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 c70cbb7a0..704d26c13 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 @@ -3,22 +3,16 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! all: -//! fn::invoke: -//! Function: cloudflare:getApiTokenPermissionGroups -//! Arguments: {} -//! outputs: -//! # Get zone level DNS read permission ID. -//! dnsReadPermissionId: ${all.zone"DNS Read"[%!s(MISSING)]} -//! # Get account level "Load Balancing: Monitors and Pools Read" permission ID. -//! accountLbMonitorsAndReadId: '${all.account"Load Balancing: Monitors and Pools Read"[%!s(MISSING)]}' -//! # Get user level "Memberships Read" permission ID. -//! userMembershipsReadId: ${all.user"Memberships Read"[%!s(MISSING)]} +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let all = get_api_token_permission_groups::invoke( +//! GetApiTokenPermissionGroupsArgs::builder().build_struct(), +//! ); +//! } //! ``` -//! pub struct GetApiTokenPermissionGroupsResult { 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 a42ea4d68..c95372ac3 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 @@ -2,18 +2,20 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getDevicePostureRules -//! Arguments: -//! accountId: f037e56e89293a057740de681ac9abbe -//! name: check for /dev/random -//! type: file +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_device_posture_rules::invoke( +//! GetDevicePostureRulesArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .name("check for /dev/random") +//! .type_("file") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 82c227f4f..984443544 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 @@ -2,16 +2,18 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getDevices -//! Arguments: -//! accountId: f037e56e89293a057740de681ac9abbe +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_devices::invoke( +//! GetDevicesArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 6ac187df4..5c8c7cc58 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 @@ -2,16 +2,18 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getDlpDatasets -//! Arguments: -//! accountId: f037e56e89293a057740de681ac9abbe +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_dlp_datasets::invoke( +//! GetDlpDatasetsArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_gateway_app_types.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_gateway_app_types.rs index e700ac398..89c2d95f5 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_gateway_app_types.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_gateway_app_types.rs @@ -2,16 +2,18 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getGatewayAppTypes -//! Arguments: -//! accountId: f037e56e89293a057740de681ac9abbe +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_gateway_app_types::invoke( +//! GetGatewayAppTypesArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_gateway_categories.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_gateway_categories.rs index 4b0410103..c756bd975 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_gateway_categories.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_gateway_categories.rs @@ -2,16 +2,18 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getGatewayCategories -//! Arguments: -//! accountId: f037e56e89293a057740de681ac9abbe +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_gateway_categories::invoke( +//! GetGatewayCategoriesArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_infrastructure_access_targets.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_infrastructure_access_targets.rs index a61559474..483565281 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_infrastructure_access_targets.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_infrastructure_access_targets.rs @@ -2,21 +2,20 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getInfrastructureAccessTargets -//! Arguments: -//! accountId: f037e56e89293a057740de681ac9abbe -//! hostnameContains: example -//! ipv4: 198.51.100.1 -//! outputs: -//! # output the list of targets the data source contains -//! targets: ${example.targets} +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_infrastructure_access_targets::invoke( +//! GetInfrastructureAccessTargetsArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .hostname_contains("example") +//! .ipv_4("198.51.100.1") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 fd46b5301..444783907 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 @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! example: @@ -20,7 +19,6 @@ //! Function: cloudflare:getIpRanges //! Arguments: {} //! ``` -//! pub struct GetIpRangesResult { 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 bc007fd48..c83a2a567 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 @@ -2,17 +2,19 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getList -//! Arguments: -//! accountId: f037e56e89293a057740de681ac9abbe -//! name: list_name +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_list::invoke( +//! GetListArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .name("list_name") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 13cb06b79..0e552370c 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 @@ -2,16 +2,18 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getLists -//! Arguments: -//! accountId: f037e56e89293a057740de681ac9abbe +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_lists::invoke( +//! GetListsArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 4ea44c251..4a6193c93 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 @@ -2,18 +2,23 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getLoadBalancerPools -//! Arguments: -//! accountId: f037e56e89293a057740de681ac9abbe -//! filter: -//! name: example-lb-pool +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_load_balancer_pools::invoke( +//! GetLoadBalancerPoolsArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .filter( +//! GetLoadBalancerPoolsFilter::builder() +//! .name("example-lb-pool") +//! .build_struct(), +//! ) +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 04e1bd97d..b92593fe9 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 @@ -2,16 +2,16 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getOriginCaCertificate -//! Arguments: -//! id: REPLACE_ME +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_origin_ca_certificate::invoke( +//! GetOriginCaCertificateArgs::builder().id("REPLACE_ME").build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 a21ad73d4..b667b3c7b 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 @@ -4,16 +4,16 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getOriginCaRootCertificate -//! Arguments: -//! algorithm: rsa +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_origin_ca_root_certificate::invoke( +//! GetOriginCaRootCertificateArgs::builder().algorithm("rsa").build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 e82462339..72e5bc34f 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 @@ -2,17 +2,19 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getRecord -//! Arguments: -//! zoneId: 0da42c8d2132a9ddaf714f9e7c920711 -//! hostname: example.com +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_record::invoke( +//! GetRecordArgs::builder() +//! .hostname("example.com") +//! .zone_id("0da42c8d2132a9ddaf714f9e7c920711") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 73000c2a6..146b0f0ae 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 @@ -2,18 +2,19 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getRulesets -//! Arguments: -//! zoneId: 0da42c8d2132a9ddaf714f9e7c920711 -//! filter: -//! name: .*OWASP.* +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_rulesets::invoke( +//! GetRulesetsArgs::builder() +//! .filter(GetRulesetsFilter::builder().name(".*OWASP.*").build_struct()) +//! .zone_id("0da42c8d2132a9ddaf714f9e7c920711") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 9a1f85bec..6e6759a4d 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 @@ -2,17 +2,19 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getTunnel -//! Arguments: -//! accountId: f037e56e89293a057740de681ac9abbe -//! name: my-tunnel +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_tunnel::invoke( +//! GetTunnelArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .name("my-tunnel") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 2efc194f7..569367452 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 @@ -2,17 +2,19 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getTunnelVirtualNetwork -//! Arguments: -//! accountId: f037e56e89293a057740de681ac9abbe -//! name: example +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_tunnel_virtual_network::invoke( +//! GetTunnelVirtualNetworkArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .name("example") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 8de5a745a..5a58a94d6 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 @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! example: @@ -24,7 +23,6 @@ //! Function: cloudflare:getApiTokenPermissionGroups //! Arguments: {} //! ``` -//! pub struct GetUserResult { diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zero_trust_infrastructure_access_targets.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zero_trust_infrastructure_access_targets.rs index 72519cdcc..d9110398a 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zero_trust_infrastructure_access_targets.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zero_trust_infrastructure_access_targets.rs @@ -2,21 +2,20 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getZeroTrustInfrastructureAccessTargets -//! Arguments: -//! accountId: f037e56e89293a057740de681ac9abbe -//! hostnameContains: example -//! ipv4: 198.51.100.1 -//! outputs: -//! # output the list of targets the data source contains -//! targets: ${example.targets} +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_zero_trust_infrastructure_access_targets::invoke( +//! GetZeroTrustInfrastructureAccessTargetsArgs::builder() +//! .account_id("f037e56e89293a057740de681ac9abbe") +//! .hostname_contains("example") +//! .ipv_4("198.51.100.1") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 bc8b1b5e7..95ddec5f5 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 @@ -8,12 +8,14 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; //! #[pulumi_main] //! fn test_main() -> Result<(), Error> { +//! let example = get_zone::invoke( +//! GetZoneArgs::builder().name("example.com").build_struct(), +//! ); //! let exampleRecord = record::create( //! "exampleRecord", //! RecordArgs::builder() @@ -26,7 +28,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 9d9c5f968..10ad8b9a1 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 @@ -3,16 +3,18 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getZoneCacheReserve -//! Arguments: -//! zoneId: 0da42c8d2132a9ddaf714f9e7c920711 +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_zone_cache_reserve::invoke( +//! GetZoneCacheReserveArgs::builder() +//! .zone_id("0da42c8d2132a9ddaf714f9e7c920711") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 815554cdb..ff27b3902 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 @@ -2,16 +2,18 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! example: -//! fn::invoke: -//! Function: cloudflare:getZoneDnssec -//! Arguments: -//! zoneId: 0da42c8d2132a9ddaf714f9e7c920711 +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let example = get_zone_dnssec::invoke( +//! GetZoneDnssecArgs::builder() +//! .zone_id("0da42c8d2132a9ddaf714f9e7c920711") +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_ca_certificate.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_ca_certificate.rs index 524a8d33f..41fd55624 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_ca_certificate.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_ca_certificate.rs @@ -10,7 +10,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -32,7 +31,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_custom_page.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_custom_page.rs index 9fe4787b1..936a417ff 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_custom_page.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_custom_page.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -20,7 +19,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_identity_provider.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_identity_provider.rs index 961b6be0e..1fe4d129b 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_identity_provider.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_identity_provider.rs @@ -10,7 +10,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -73,7 +72,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_mutual_tls_certificate.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_mutual_tls_certificate.rs index a2f436809..a1ae9767a 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_mutual_tls_certificate.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_mutual_tls_certificate.rs @@ -12,7 +12,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -29,7 +28,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_mutual_tls_hostname_settings.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_mutual_tls_hostname_settings.rs index 58f1ae346..3ff5b9f22 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_mutual_tls_hostname_settings.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_mutual_tls_hostname_settings.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -23,7 +22,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_organization.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_organization.rs index 6b989eff9..d230786bf 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_organization.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_organization.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -29,7 +28,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_rule.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_rule.rs index 140cdfd7f..2f62f51a8 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_rule.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/access_rule.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! configuration: //! # Allowlist office's network IP ranges on all account zones (or other lists of @@ -52,7 +51,6 @@ //! - ${myOffice} //! options: {} //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/account.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/account.rs index fcda83b7b..0c9d7f148 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/account.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/account.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/account_member.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/account_member.rs index 1fa4b1abb..43ca1ed9d 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/account_member.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/account_member.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -23,7 +22,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/address_map.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/address_map.rs index b9e142d95..fad6c7da4 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/address_map.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/address_map.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -35,7 +34,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield.rs index 21bc17aec..81e28715f 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -22,7 +21,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_operation.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_operation.rs index 5b2c19492..4846aa8d1 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_operation.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_operation.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_operation_schema_validation_settings.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_operation_schema_validation_settings.rs index c5eca9bff..237342d66 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_operation_schema_validation_settings.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_operation_schema_validation_settings.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -27,7 +26,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_schema.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_schema.rs index fdcab0039..98c1f6998 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_schema.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_schema.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! petstoreSchema: @@ -20,7 +19,6 @@ //! input: ./schemas/petstore.json //! Return: result //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_schema_validation_settings.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_schema_validation_settings.rs index 603f7466c..7958ef352 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_schema_validation_settings.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/api_shield_schema_validation_settings.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -18,7 +17,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/argo.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/argo.rs index e33fab711..2bca5b0a5 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/argo.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/argo.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/authenticated_origin_pulls.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/authenticated_origin_pulls.rs index c00694131..e88f5fa8f 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/authenticated_origin_pulls.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/authenticated_origin_pulls.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -54,7 +53,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/authenticated_origin_pulls_certificate.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/authenticated_origin_pulls_certificate.rs index 8c44dcb36..32ac52c82 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/authenticated_origin_pulls_certificate.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/authenticated_origin_pulls_certificate.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -30,7 +29,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/bot_management.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/bot_management.rs index 6df264dfb..990c285b1 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/bot_management.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/bot_management.rs @@ -8,7 +8,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -28,7 +27,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/byo_ip_prefix.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/byo_ip_prefix.rs index b75e4c919..3e3370434 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/byo_ip_prefix.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/byo_ip_prefix.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -20,7 +19,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/cloud_connector_rules.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/cloud_connector_rules.rs index af260ebf1..5380c5ea8 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/cloud_connector_rules.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/cloud_connector_rules.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! example: @@ -17,7 +16,6 @@ //! parameters: //! - host: mystorage.s3.ams.amazonaws.com //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_hostname.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_hostname.rs index 652e330b2..871ad470c 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_hostname.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_hostname.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -18,7 +17,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_hostname_fallback_origin.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_hostname_fallback_origin.rs index 2ceab3833..594ddaa3e 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_hostname_fallback_origin.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_hostname_fallback_origin.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -17,7 +16,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_pages.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_pages.rs index 9069faa88..a255905b9 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_pages.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_pages.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_ssl.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_ssl.rs index 6cb001595..a354e1d28 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_ssl.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/custom_ssl.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! example: @@ -16,7 +15,6 @@ //! geoRestrictions: us //! type: legacy_custom //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/d1_database.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/d1_database.rs index 08e439bbf..17010eb7a 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/d1_database.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/d1_database.rs @@ -6,7 +6,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -21,7 +20,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_dex_test.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_dex_test.rs index 1a70e1e2e..cd2a62292 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_dex_test.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_dex_test.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -27,7 +26,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_managed_networks.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_managed_networks.rs index 2bdffa13b..77b694544 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_managed_networks.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_managed_networks.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -26,7 +25,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_policy_certificates.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_policy_certificates.rs index c18849138..b2e1170c0 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_policy_certificates.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_policy_certificates.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_posture_integration.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_posture_integration.rs index d597a403e..abe2440dd 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_posture_integration.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_posture_integration.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -29,7 +28,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_posture_rule.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_posture_rule.rs index dc47abad9..a5b4bfea0 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_posture_rule.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_posture_rule.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -31,7 +30,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_settings_policy.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_settings_policy.rs index 9e85a031f..47a8a8e90 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_settings_policy.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/device_settings_policy.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -34,7 +33,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/dlp_profile.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/dlp_profile.rs index dbb805c78..ed20ef3ba 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/dlp_profile.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/dlp_profile.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -63,7 +62,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_address.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_address.rs index 761783270..338d24345 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_address.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_address.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -17,7 +16,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_catch_all.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_catch_all.rs index 82ad3a513..f7e72d521 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_catch_all.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_catch_all.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -29,7 +28,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_rule.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_rule.rs index e6ec042b7..a15b7859f 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_rule.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_rule.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -30,7 +29,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_settings.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_settings.rs index 7fa1f3364..fc1f1f697 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_settings.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/email_routing_settings.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! myZone: @@ -12,7 +11,6 @@ //! zoneId: 0da42c8d2132a9ddaf714f9e7c920711 //! enabled: 'true' //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/filter.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/filter.rs index 265f47f5d..4e3d0add5 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/filter.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/filter.rs @@ -11,7 +11,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -29,7 +28,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/firewall_rule.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/firewall_rule.rs index 8de3f2453..20924074e 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/firewall_rule.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/firewall_rule.rs @@ -14,7 +14,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -41,7 +40,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/gre_tunnel.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/gre_tunnel.rs index d2a46d77b..6aa31d9df 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/gre_tunnel.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/gre_tunnel.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -26,7 +25,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/healthcheck.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/healthcheck.rs index 20184b21c..cee06f116 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/healthcheck.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/healthcheck.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -60,7 +59,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/hostname_tls_setting.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/hostname_tls_setting.rs index 9ac6f0d26..c61592115 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/hostname_tls_setting.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/hostname_tls_setting.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/hostname_tls_setting_ciphers.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/hostname_tls_setting_ciphers.rs index 3606b93aa..daa3543aa 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/hostname_tls_setting_ciphers.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/hostname_tls_setting_ciphers.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -18,7 +17,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/hyperdrive_config.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/hyperdrive_config.rs index 1c85bceb9..3a5f6e187 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/hyperdrive_config.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/hyperdrive_config.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -27,7 +26,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/infrastructure_access_target.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/infrastructure_access_target.rs index 53ca9be50..11b6cf4e4 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/infrastructure_access_target.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/infrastructure_access_target.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -50,7 +49,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/ipsec_tunnel.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/ipsec_tunnel.rs index 3c8cc01c4..5733648ad 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/ipsec_tunnel.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/ipsec_tunnel.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -26,7 +25,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/keyless_certificate.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/keyless_certificate.rs index 108ac7030..6efb4e44f 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/keyless_certificate.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/keyless_certificate.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -22,7 +21,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/list_item.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/list_item.rs index df423efd8..5f83deed8 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/list_item.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/list_item.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -91,7 +90,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/load_balancer.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/load_balancer.rs index e9811c50a..c38857c40 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/load_balancer.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/load_balancer.rs @@ -6,7 +6,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -67,7 +66,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/load_balancer_pool.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/load_balancer_pool.rs index 871689e48..6eddd6856 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/load_balancer_pool.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/load_balancer_pool.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -49,7 +48,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/logpull_retention.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/logpull_retention.rs index b797549d2..8bc0b95ea 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/logpull_retention.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/logpull_retention.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! example: @@ -11,7 +10,6 @@ //! zoneId: 0da42c8d2132a9ddaf714f9e7c920711 //! enabled: 'true' //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/logpush_ownership_challenge.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/logpush_ownership_challenge.rs index 11989a526..89386a69f 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/logpush_ownership_challenge.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/logpush_ownership_challenge.rs @@ -5,7 +5,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -20,7 +19,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_firewall_ruleset.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_firewall_ruleset.rs index b9c7ba3df..a2977d941 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_firewall_ruleset.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_firewall_ruleset.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! example: @@ -23,7 +22,6 @@ //! description: Block all //! enabled: 'true' //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_wan_gre_tunnel.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_wan_gre_tunnel.rs index b91cf0e9f..632c42e4b 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_wan_gre_tunnel.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_wan_gre_tunnel.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -26,7 +25,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_wan_ipsec_tunnel.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_wan_ipsec_tunnel.rs index 9ebea9d86..37e1ec88a 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_wan_ipsec_tunnel.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_wan_ipsec_tunnel.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -26,7 +25,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_wan_static_route.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_wan_static_route.rs index c2851bdc1..b35fa8f25 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_wan_static_route.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/magic_wan_static_route.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -25,7 +24,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/managed_headers.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/managed_headers.rs index 2efa9d150..28d142ad9 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/managed_headers.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/managed_headers.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -30,7 +29,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/mtls_certificate.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/mtls_certificate.rs index f7bc12739..d3819bb51 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/mtls_certificate.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/mtls_certificate.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -24,7 +23,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/notification_policy_webhooks.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/notification_policy_webhooks.rs index 7bc4a6dc7..af7ab5fc2 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/notification_policy_webhooks.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/notification_policy_webhooks.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/observatory_scheduled_test.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/observatory_scheduled_test.rs index 54c618c32..a03b3ac98 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/observatory_scheduled_test.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/observatory_scheduled_test.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/origin_ca_certificate.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/origin_ca_certificate.rs index 00ff3067d..e3ed9b059 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/origin_ca_certificate.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/origin_ca_certificate.rs @@ -6,7 +6,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! example: @@ -31,7 +30,6 @@ //! requestType: origin-rsa //! requestedValidity: 7 //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/page_rule.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/page_rule.rs index 66264c098..8b818e720 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/page_rule.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/page_rule.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -30,7 +29,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/pages_domain.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/pages_domain.rs index f974067fe..f67ca1d2f 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/pages_domain.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/pages_domain.rs @@ -5,7 +5,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! my-domain: @@ -15,7 +14,6 @@ //! projectName: my-example-project //! domain: example.com //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/queue.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/queue.rs index 062231e47..0bb3e4753 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/queue.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/queue.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -17,7 +16,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/r2_bucket.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/r2_bucket.rs index 66c69a0fc..8d3ec0e53 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/r2_bucket.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/r2_bucket.rs @@ -1,6 +1,5 @@ //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -16,7 +15,6 @@ //! ); //! } //! ``` -//! //! //! > Available location values can be found in the [R2 documentation](https://developers.cloudflare.com/r2/reference/data-location/#available-hints). //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/rate_limit.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/rate_limit.rs index 9158660b5..1833a5e7f 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/rate_limit.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/rate_limit.rs @@ -11,7 +11,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! example: @@ -62,7 +61,6 @@ //! - example.com/bypass1 //! - example.com/bypass2 //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/record.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/record.rs index 06de84597..e030455dd 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/record.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/record.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -39,7 +38,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/regional_hostname.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/regional_hostname.rs index 696acf2fa..711265da6 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/regional_hostname.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/regional_hostname.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -28,7 +27,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/regional_tiered_cache.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/regional_tiered_cache.rs index 514307e22..172ca0ddc 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/regional_tiered_cache.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/regional_tiered_cache.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -18,7 +17,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/spectrum_application.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/spectrum_application.rs index 70884f207..25c59dd99 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/spectrum_application.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/spectrum_application.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! example: @@ -24,7 +23,6 @@ //! - 203.0.113.1 //! - 203.0.113.2 //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/static_route.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/static_route.rs index 8b00bc6e6..8a4d6b308 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/static_route.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/static_route.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -25,7 +24,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_account.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_account.rs index 71924f5f9..0eaa39bab 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_account.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_account.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -85,7 +84,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_list.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_list.rs index 4634481ca..512efe1db 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_list.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_list.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -22,7 +21,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_location.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_location.rs index 8538dea75..a78f4110c 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_location.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_location.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -27,7 +26,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_proxy_endpoint.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_proxy_endpoint.rs index 25b9810f1..322de7e87 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_proxy_endpoint.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_proxy_endpoint.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -20,7 +19,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_rule.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_rule.rs index 6c0d184cd..37e6f08e5 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_rule.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/teams_rule.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -28,7 +27,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tiered_cache.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tiered_cache.rs index c82e6d67d..542ecba12 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tiered_cache.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tiered_cache.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -18,7 +17,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/total_tls.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/total_tls.rs index b17cfbe2b..f49329ef4 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/total_tls.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/total_tls.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -18,7 +17,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tunnel.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tunnel.rs index dc0005236..61e9ed47c 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tunnel.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tunnel.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -20,7 +19,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tunnel_config.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tunnel_config.rs index 120551a24..7ce69ade4 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tunnel_config.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tunnel_config.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! exampleTunnel: @@ -56,7 +55,6 @@ //! - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA //! - service: https://10.0.0.3:8081 //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tunnel_virtual_network.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tunnel_virtual_network.rs index c4658e987..a13f8cc28 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tunnel_virtual_network.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/tunnel_virtual_network.rs @@ -5,7 +5,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -21,7 +20,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/turnstile_widget.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/turnstile_widget.rs index ddc278720..f6e743181 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/turnstile_widget.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/turnstile_widget.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -21,7 +20,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/url_normalization_settings.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/url_normalization_settings.rs index 37470f7e8..91eb0c0ab 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/url_normalization_settings.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/url_normalization_settings.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -18,7 +17,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/user_agent_blocking_rule.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/user_agent_blocking_rule.rs index 897abd3a4..6e6aa050e 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/user_agent_blocking_rule.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/user_agent_blocking_rule.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -40,7 +39,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room.rs index c4923223f..93f886750 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -32,7 +31,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room_event.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room_event.rs index 69bec5688..904912e2a 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room_event.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room_event.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -20,7 +19,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room_rules.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room_rules.rs index 99469eb37..255098276 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room_rules.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room_rules.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -28,7 +27,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room_settings.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room_settings.rs index 8c62a40c1..087b0c3e7 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room_settings.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/waiting_room_settings.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -17,7 +16,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/web_analytics_rule.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/web_analytics_rule.rs index 3707f4c03..8eb9bc1ff 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/web_analytics_rule.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/web_analytics_rule.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -29,7 +28,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/web_analytics_site.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/web_analytics_site.rs index b4c811ad0..b3167ba00 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/web_analytics_site.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/web_analytics_site.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -18,7 +17,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_cron_trigger.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_cron_trigger.rs index 32e8baed6..56678a15f 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_cron_trigger.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_cron_trigger.rs @@ -5,7 +5,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! exampleScript: @@ -30,7 +29,6 @@ //! - '*/5 * * * *' //! - 10 7 * * mon-fri //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_domain.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_domain.rs index ece761b95..d2a84b8f0 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_domain.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_domain.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_route.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_route.rs index 273a1365f..d07ead101 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_route.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_route.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -22,7 +21,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_script.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_script.rs index 070c69995..cfa4578ea 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_script.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_script.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! myNamespace: @@ -52,7 +51,6 @@ //! - name: MY_DATASET //! dataset: dataset1 //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_secret.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_secret.rs index 47d679c5c..327bb272f 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_secret.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/worker_secret.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_cron_trigger.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_cron_trigger.rs index cc964e03c..a17c04757 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_cron_trigger.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_cron_trigger.rs @@ -5,7 +5,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! exampleScript: @@ -30,7 +29,6 @@ //! - '*/5 * * * *' //! - 10 7 * * mon-fri //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_domain.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_domain.rs index a4bfc24d7..82b3a0efc 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_domain.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_domain.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_for_platforms_dispatch_namespace.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_for_platforms_dispatch_namespace.rs index f315186f7..5b6b3da2b 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_for_platforms_dispatch_namespace.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_for_platforms_dispatch_namespace.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! example: @@ -27,7 +26,6 @@ //! tags: //! - free //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_for_platforms_namespace.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_for_platforms_namespace.rs index 6f9148694..df94ecd64 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_for_platforms_namespace.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_for_platforms_namespace.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! example: @@ -27,7 +26,6 @@ //! tags: //! - free //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_kv.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_kv.rs index 06ad4a0af..3e42d1df8 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_kv.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_kv.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -26,7 +25,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_kv_namespace.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_kv_namespace.rs index e79de6749..f82e23601 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_kv_namespace.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_kv_namespace.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -17,7 +16,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_route.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_route.rs index a3f42222d..5babd0ea4 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_route.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_route.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -22,7 +21,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_script.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_script.rs index 0383787e7..93b63435b 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_script.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_script.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! myNamespace: @@ -52,7 +51,6 @@ //! - name: MY_DATASET //! dataset: dataset1 //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_secret.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_secret.rs index 9e316c350..66957f369 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_secret.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/workers_secret.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_custom_page.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_custom_page.rs index 2e481d0b3..f7836a00e 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_custom_page.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_custom_page.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -20,7 +19,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_identity_provider.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_identity_provider.rs index 031599402..aed21a9ea 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_identity_provider.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_identity_provider.rs @@ -10,7 +10,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -74,7 +73,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_mtls_certificate.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_mtls_certificate.rs index 15e3dc33b..481137289 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_mtls_certificate.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_mtls_certificate.rs @@ -12,7 +12,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -29,7 +28,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_mtls_hostname_settings.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_mtls_hostname_settings.rs index ef5d8e13d..66bf4be67 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_mtls_hostname_settings.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_mtls_hostname_settings.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -23,7 +22,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_short_lived_certificate.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_short_lived_certificate.rs index 635570ad0..1e9830bee 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_short_lived_certificate.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_access_short_lived_certificate.rs @@ -10,7 +10,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -32,7 +31,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_certificates.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_certificates.rs index 11575e347..ef85124e0 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_certificates.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_certificates.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_managed_networks.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_managed_networks.rs index d65650c9e..d59c9fc13 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_managed_networks.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_managed_networks.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -26,7 +25,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_posture_integration.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_posture_integration.rs index 2ceb6c509..92942dfb9 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_posture_integration.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_posture_integration.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -29,7 +28,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_posture_rule.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_posture_rule.rs index d9447dbbc..a415ca858 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_posture_rule.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_posture_rule.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -35,7 +34,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_profiles.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_profiles.rs index 9ee047ae2..897cc3c28 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_profiles.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_device_profiles.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -33,7 +32,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_dex_test.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_dex_test.rs index a99913d5b..5d87743b7 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_dex_test.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_dex_test.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -27,7 +26,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_dlp_profile.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_dlp_profile.rs index 510bbf23f..4308c4759 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_dlp_profile.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_dlp_profile.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -63,7 +62,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_dns_location.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_dns_location.rs index a2548b6f1..562c784de 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_dns_location.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_dns_location.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -27,7 +26,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_gateway_policy.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_gateway_policy.rs index 382558014..60dfbad72 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_gateway_policy.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_gateway_policy.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -28,7 +27,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_gateway_proxy_endpoint.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_gateway_proxy_endpoint.rs index 08163e0fe..ebfaeb025 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_gateway_proxy_endpoint.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_gateway_proxy_endpoint.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -20,7 +19,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_gateway_settings.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_gateway_settings.rs index b5556959d..19ba18ae9 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_gateway_settings.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_gateway_settings.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -89,7 +88,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_infrastructure_access_target.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_infrastructure_access_target.rs index 277106b28..850baf388 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_infrastructure_access_target.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_infrastructure_access_target.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -50,7 +49,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_list.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_list.rs index ec23a73c6..ddcc41890 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_list.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_list.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -22,7 +21,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_tunnel_cloudflared.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_tunnel_cloudflared.rs index 4bf87fd91..5e0f35700 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_tunnel_cloudflared.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_tunnel_cloudflared.rs @@ -4,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -20,7 +19,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_tunnel_cloudflared_config.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_tunnel_cloudflared_config.rs index c2c460bb0..4afc3f1e2 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_tunnel_cloudflared_config.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_tunnel_cloudflared_config.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! exampleTunnel: @@ -56,7 +55,6 @@ //! - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA //! - service: https://10.0.0.3:8081 //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_tunnel_virtual_network.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_tunnel_virtual_network.rs index 20f3bacec..deb6a1434 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_tunnel_virtual_network.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zero_trust_tunnel_virtual_network.rs @@ -5,7 +5,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -21,7 +20,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone.rs index b1afc1a23..bc65576e5 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone.rs @@ -6,7 +6,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -21,7 +20,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_cache_reserve.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_cache_reserve.rs index 89fc471a1..302a45663 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_cache_reserve.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_cache_reserve.rs @@ -6,7 +6,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -21,7 +20,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_cache_variants.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_cache_variants.rs index 7af0c3b0b..7a9808492 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_cache_variants.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_cache_variants.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -27,7 +26,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_dnssec.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_dnssec.rs index 4873d57d6..3d4346cc3 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_dnssec.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_dnssec.rs @@ -2,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -18,7 +17,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_hold.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_hold.rs index 7595e4b99..3895c2c17 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_hold.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_hold.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -18,7 +17,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_lockdown.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_lockdown.rs index 581615fce..830d8b8b3 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_lockdown.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_lockdown.rs @@ -6,7 +6,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! # Restrict access to these endpoints to requests from a known IP address range. @@ -22,7 +21,6 @@ //! - target: ip_range //! value: 192.0.2.0/24 //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_settings_override.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_settings_override.rs index 425413a05..94aae5870 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_settings_override.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource/zone_settings_override.rs @@ -22,7 +22,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -59,7 +58,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/types/page_rule_actions_cache_key_fields_user.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/types/page_rule_actions_cache_key_fields_user.rs index d4747e377..43464eca2 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/types/page_rule_actions_cache_key_fields_user.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/types/page_rule_actions_cache_key_fields_user.rs @@ -13,7 +13,6 @@ pub struct PageRuleActionsCacheKeyFieldsUser { /// /// Example: /// - /// /// ```ignore /// use pulumi_wasm_rust::Output; /// use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -66,7 +65,6 @@ pub struct PageRuleActionsCacheKeyFieldsUser { /// ); /// } /// ``` - /// #[builder(into, default = Box::new(None))] #[serde(rename = "lang")] pub r#lang: Box>, 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 d0cc93148..f6316f2e5 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 @@ -2,16 +2,16 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! main: -//! fn::invoke: -//! Function: docker:getNetwork -//! Arguments: -//! name: main +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let main = get_network::invoke( +//! GetNetworkArgs::builder().name("main").build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 5b61ddf2e..d9bcbbf53 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 @@ -17,7 +17,6 @@ //! fn::docker:getPlugin: //! id: "e9a9db917b3bfd6706b5d3a66d4bceb9f" //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 c90f5d791..396bf2004 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 @@ -2,12 +2,14 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; //! #[pulumi_main] //! fn test_main() -> Result<(), Error> { +//! let ubuntuRegistryImage = get_registry_image::invoke( +//! GetRegistryImageArgs::builder().name("ubuntu:precise").build_struct(), +//! ); //! let ubuntuRemoteImage = remote_image::create( //! "ubuntuRemoteImage", //! RemoteImageArgs::builder() @@ -17,7 +19,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 5bd9fbda9..a1d1a792f 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 @@ -2,31 +2,33 @@ //! //! ## Example Usage //! -//! -//! ```yaml -//! variables: -//! latest: -//! fn::invoke: -//! Function: docker:getRemoteImage -//! Arguments: -//! name: nginx -//! specific: -//! fn::invoke: -//! Function: docker:getRemoteImage -//! Arguments: -//! name: nginx:1.17.6 -//! digest: -//! fn::invoke: -//! Function: docker:getRemoteImage -//! Arguments: -//! name: nginx@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2 -//! tagAndDigest: -//! fn::invoke: -//! Function: docker:getRemoteImage -//! Arguments: -//! name: nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2 +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let digest = get_remote_image::invoke( +//! GetRemoteImageArgs::builder() +//! .name( +//! "nginx@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2", +//! ) +//! .build_struct(), +//! ); +//! let latest = get_remote_image::invoke( +//! GetRemoteImageArgs::builder().name("nginx").build_struct(), +//! ); +//! let specific = get_remote_image::invoke( +//! GetRemoteImageArgs::builder().name("nginx:1.17.6").build_struct(), +//! ); +//! let tagAndDigest = get_remote_image::invoke( +//! GetRemoteImageArgs::builder() +//! .name( +//! "nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2", +//! ) +//! .build_struct(), +//! ); +//! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_docker_rust/src/resource/container.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource/container.rs index ad03df8bb..1e8d0515a 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/container.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/container.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -19,7 +18,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_docker_rust/src/resource/image.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource/image.rs index d0ebb2cf2..09789cb6d 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/image.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/image.rs @@ -23,12 +23,12 @@ //! * For local development using Docker Desktop, this is enabled by default. //! * For systems using Docker Engine, install the QEMU binaries and register them with using the docker image from [github.com/tonistiigi/binfmt](https://github.com/tonistiigi/binfmt): //! -//! ```sh +//! ```shell //! docker run --privileged --rm tonistiigi/binfmt --install all -//! ``` +//! ``` //! * In a GitHub Actions workflow, the [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) can be used instead by adding this step to your workflow file. Example workflow usage: //! -//! ```yaml +//! ```yaml //! name: Pulumi //! on: //! push: @@ -50,7 +50,7 @@ //! stack-name: org-name/stack-name //! env: //! PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} -//! ``` +//! ``` //! //! //! ## Example Usage diff --git a/providers/pulumi_wasm_provider_docker_rust/src/resource/network.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource/network.rs index 5418ffca4..a699dd37c 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/network.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/network.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -15,7 +14,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! @@ -23,7 +21,7 @@ //! //! Assuming you created a `network` as follows //! -//! ```sh +//! ```shell //! docker network create foo //! ```` //! diff --git a/providers/pulumi_wasm_provider_docker_rust/src/resource/plugin.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource/plugin.rs index 3e1a34de1..37db0175c 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/plugin.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/plugin.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! resources: //! sample-volume-plugin: @@ -18,7 +17,6 @@ //! forceDisable: true //! grantAllPermissions: true //! ``` -//! //! //! ## Import //! diff --git a/providers/pulumi_wasm_provider_docker_rust/src/resource/registry_image.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource/registry_image.rs index 369e2d5dc..ee9a5ba93 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/registry_image.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/registry_image.rs @@ -5,7 +5,6 @@ //! //! Build an image with the `docker.RemoteImage` resource and then push it to a registry: //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -28,7 +27,6 @@ //! ); //! } //! ``` -//! #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] diff --git a/providers/pulumi_wasm_provider_docker_rust/src/resource/remote_image.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource/remote_image.rs index 1d8533c66..d05b534fe 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/remote_image.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/remote_image.rs @@ -9,7 +9,6 @@ //! Finds and downloads the latest `ubuntu:precise` image but does not check //! for further updates of the image //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -21,19 +20,20 @@ //! ); //! } //! ``` -//! //! //! ### Dynamic updates //! //! To be able to update an image dynamically when the `sha256` sum changes, //! you need to use it in combination with `docker.RegistryImage` as follows: //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; //! #[pulumi_main] //! fn test_main() -> Result<(), Error> { +//! let ubuntuRegistryImage = get_registry_image::invoke( +//! GetRegistryImageArgs::builder().name("ubuntu:precise").build_struct(), +//! ); //! let ubuntuRemoteImage = remote_image::create( //! "ubuntuRemoteImage", //! RemoteImageArgs::builder() @@ -43,14 +43,12 @@ //! ); //! } //! ``` -//! //! //! ### Build //! //! You can also use the resource to build an image. //! In this case the image "zoo" and "zoo:develop" are built. //! -//! //! ```yaml //! resources: //! zoo: @@ -66,7 +64,6 @@ //! label: //! author: zoo //! ``` -//! //! //! You can use the `triggers` argument to specify when the image should be rebuild. This is for example helpful when you want to rebuild the docker image whenever the source code changes. //! diff --git a/providers/pulumi_wasm_provider_docker_rust/src/resource/service.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource/service.rs index aa93197c5..d5906964a 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/service.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/service.rs @@ -9,7 +9,7 @@ //! //! Assuming you created a `service` as follows //! -//! ```sh +//! ```shell //! docker service create --name foo -p 8080:80 nginx //! ``` //! diff --git a/providers/pulumi_wasm_provider_docker_rust/src/resource/service_config.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource/service_config.rs index 09f174b78..dc1dbde27 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/service_config.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/service_config.rs @@ -6,7 +6,7 @@ //! //! Assuming you created a `config` as follows //! -//! ```sh +//! ```shell //! printf '{"a":"b"}' | docker config create foo - //! ``` //! diff --git a/providers/pulumi_wasm_provider_docker_rust/src/resource/volume.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource/volume.rs index 987db9422..c4c0af4c4 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/volume.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/volume.rs @@ -3,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -15,7 +14,6 @@ //! ); //! } //! ``` -//! //! //! ## Import //! diff --git a/pulumi_wasm_generator_lib/src/code_generation/rust_generation.rs b/pulumi_wasm_generator_lib/src/code_generation/rust_generation.rs index dcd587275..32b07331c 100644 --- a/pulumi_wasm_generator_lib/src/code_generation/rust_generation.rs +++ b/pulumi_wasm_generator_lib/src/code_generation/rust_generation.rs @@ -1,6 +1,6 @@ -use crate::code_generation::yaml::model::Example; use crate::code_generation::yaml::model::Expression; use crate::code_generation::yaml::model::Resource; +use crate::code_generation::yaml::model::{Example, FnInvoke, Variable}; use crate::model::ElementId; use crate::utils::escape_rust_name; use anyhow::Context; @@ -22,6 +22,11 @@ fn test_main() -> Result<(), Error> { .to_string(); result.push('\n'); + for (name, variable) in example.variables { + result.push_str(generate_variable(name, variable).as_str()); + result.push('\n'); + } + for (name, resource) in example.resources { result.push_str(generate_resource(name, resource).as_str()); result.push('\n'); @@ -35,6 +40,44 @@ fn test_main() -> Result<(), Error> { Ok(formatted) } +fn generate_variable(name: String, variable: Variable) -> String { + match variable { + Variable::FnInvokeVariable(fn_invoke) => generate_fn_invoke(name, fn_invoke), + } +} + +fn generate_fn_invoke(name: String, fn_invoke: FnInvoke) -> String { + let mut str = String::new(); + str.push_str(&format!( + r#" + let {} = {}::invoke( + {}Args::builder() + "#, + name, + fn_invoke.function.get_rust_function_name(), + fn_invoke.function.get_rust_struct_name() + )); + for (property_name, property_expr) in fn_invoke.arguments { + let valid_rust_property_name = escape_rust_name(property_name.as_str()) + .from_case(Case::Camel) + .to_case(Case::Snake); + str.push_str(&format!( + r#" + .{}({}) + "#, + valid_rust_property_name, + generate_expression(property_expr) + )); + } + str.push_str( + r#" + .build_struct(), + ); + "#, + ); + str +} + pub fn generate_resource(name: String, resource: Resource) -> String { let mut str = String::new(); str.push_str(&format!( diff --git a/pulumi_wasm_generator_lib/src/code_generation/tests.rs b/pulumi_wasm_generator_lib/src/code_generation/tests.rs index bdd34e51a..a3dae1dad 100644 --- a/pulumi_wasm_generator_lib/src/code_generation/tests.rs +++ b/pulumi_wasm_generator_lib/src/code_generation/tests.rs @@ -35,6 +35,7 @@ mod tests { concat!("test_cases/", $package_name, ".json").as_ref(), ) .unwrap(); + let package = schema::to_model(&schema_package).unwrap(); let yaml_file = $test_module::get_yaml_file(); let result = yaml_to_model(yaml_file, $package_name.to_string(), &package); @@ -42,7 +43,7 @@ mod tests { let model = $test_module::get_model(); let code = generate_code(model).unwrap(); - assert_eq!($test_module::get_rust_code(), code); + assert_eq!(code, $test_module::get_rust_code()); } }; } @@ -60,8 +61,9 @@ mod tests { ); full_pipeline_test!(full_pipeline_example_numbers, "cloudflare", example_numbers); full_pipeline_test!( - full_pipeline_example_variable, + full_pipeline_example_interpolation, "cloudflare", - example_variable + example_interpolation ); + full_pipeline_test!(generate_yaml_variables, "cloudflare", example_variables); } diff --git a/pulumi_wasm_generator_lib/src/code_generation/yaml/model.rs b/pulumi_wasm_generator_lib/src/code_generation/yaml/model.rs index 0fba38ec9..3f4b603c2 100644 --- a/pulumi_wasm_generator_lib/src/code_generation/yaml/model.rs +++ b/pulumi_wasm_generator_lib/src/code_generation/yaml/model.rs @@ -1,10 +1,14 @@ -use crate::code_generation::yaml::yaml_model::{YamlExpression, YamlFile, YamlResource}; +use crate::code_generation::yaml::model::Variable::FnInvokeVariable; +use crate::code_generation::yaml::yaml_model::{ + YamlExpression, YamlFile, YamlFnInvoke, YamlResource, YamlVariable, +}; use crate::model::{ElementId, GlobalType, Package, Ref, Type}; use std::collections::{BTreeMap, HashMap}; struct PackageContext<'a> { package: &'a Package, resource_name_map: HashMap, + function_name_map: HashMap, } pub(crate) fn yaml_to_model( @@ -25,9 +29,22 @@ pub(crate) fn yaml_to_model( resource_name_map.insert(name.clone(), resource); } + let mut function_name_map = HashMap::new(); + for (element_id, function) in &package.functions { + let mut chunks = Vec::new(); + chunks.push(provider_name.clone()); + chunks.extend(element_id.namespace.clone()); + chunks.push(element_id.name.clone()); + + let name = chunks.join(":"); + + function_name_map.insert(name.clone(), function); + } + let context = PackageContext { package, resource_name_map, + function_name_map, }; let mut resources = BTreeMap::new(); @@ -37,12 +54,22 @@ pub(crate) fn yaml_to_model( resources.insert(name, resource); } - Example { resources } + let mut variables = BTreeMap::new(); + for (name, yaml_variable) in yaml_file.variables { + let variable = map_variable(&yaml_variable, &context); + variables.insert(name, variable); + } + + Example { + resources, + variables, + } } #[derive(Debug, PartialEq)] pub(crate) struct Example { pub(crate) resources: BTreeMap, + pub(crate) variables: BTreeMap, } #[derive(Debug, PartialEq)] @@ -52,7 +79,16 @@ pub(crate) struct Resource { pub(crate) properties: BTreeMap, } -struct Variable {} +#[derive(Debug, PartialEq)] +pub(crate) enum Variable { + FnInvokeVariable(FnInvoke), +} + +#[derive(Debug, PartialEq)] +pub(crate) struct FnInvoke { + pub(crate) function: ElementId, + pub(crate) arguments: BTreeMap, +} #[derive(Debug, PartialEq)] pub(crate) enum Expression { @@ -89,14 +125,45 @@ fn map_resource(yaml_resource: YamlResource, context: &PackageContext) -> Resour } Resource { - type_: context.resource_name_map[&yaml_resource.type_] - .element_id - .clone(), + type_: resource.element_id.clone(), name: yaml_resource.name.clone(), properties, } } +fn map_variable(yaml_variable: &YamlVariable, context: &PackageContext) -> Variable { + FnInvokeVariable(map_fn_invoke(&yaml_variable.fn_invoke, context)) +} + +fn map_fn_invoke(yaml_fn_invoke: &YamlFnInvoke, context: &PackageContext) -> FnInvoke { + let function = context + .function_name_map + .get(&yaml_fn_invoke.function) + .unwrap_or_else(|| panic!("function not found: {}", yaml_fn_invoke.function)); + + let mut arguments = BTreeMap::new(); + + for (argument_name, argument_value) in &yaml_fn_invoke.arguments { + let function_argument = &function + .input_properties + .iter() + .find(|k| k.name == *argument_name) + .unwrap_or_else(|| panic!("argument not found: {}", argument_name)); + + let type_without_option = remove_option(&function_argument.r#type); + + arguments.insert( + argument_name.clone(), + map_expression(context, &type_without_option, argument_value), + ); + } + + FnInvoke { + function: function.element_id.clone(), + arguments, + } +} + fn map_array( context: &PackageContext, type_without_option: &Box, diff --git a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/complex_yaml.rs b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/complex_yaml.rs index 10434aa96..cfe7ec5c3 100644 --- a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/complex_yaml.rs +++ b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/complex_yaml.rs @@ -13,8 +13,8 @@ pub const YAML: &str = r#" validationEnabled: true source: fn::invoke: - Function: std:file - Arguments: + function: std:file + arguments: input: ./schemas/petstore.json Return: result "#; @@ -58,11 +58,11 @@ pub fn get_yaml_file() -> YamlFile { YamlExpression::Object({ let mut fn_invoke = BTreeMap::new(); fn_invoke.insert( - "Function".to_string(), + "function".to_string(), YamlExpression::String("std:file".to_string()), ); fn_invoke.insert( - "Arguments".to_string(), + "arguments".to_string(), YamlExpression::Object({ let mut arguments = BTreeMap::new(); arguments.insert( @@ -90,5 +90,6 @@ pub fn get_yaml_file() -> YamlFile { ); resources }, + variables: BTreeMap::new(), } } diff --git a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_array.rs b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_array.rs index a34aba53e..170a1137c 100644 --- a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_array.rs +++ b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_array.rs @@ -40,6 +40,7 @@ pub fn get_yaml_file() -> YamlFile { ); resources }, + variables: BTreeMap::new(), } } @@ -70,6 +71,7 @@ pub fn get_model() -> Example { ); map }, + variables: BTreeMap::new(), } } diff --git a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_empty_properties.rs b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_empty_properties.rs index dc8f63868..b069e9ce6 100644 --- a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_empty_properties.rs +++ b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_empty_properties.rs @@ -28,6 +28,7 @@ pub fn get_yaml_file() -> YamlFile { ); resources }, + variables: BTreeMap::new(), } } @@ -49,6 +50,7 @@ pub fn get_model() -> Example { ); map }, + variables: BTreeMap::new(), } } diff --git a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_escape_string.rs b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_escape_string.rs index 558591b46..43d75437c 100644 --- a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_escape_string.rs +++ b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_escape_string.rs @@ -37,6 +37,7 @@ pub(crate) fn get_yaml_file() -> YamlFile { ); resources }, + variables: BTreeMap::new(), } } @@ -63,6 +64,7 @@ pub fn get_model() -> Example { ); map }, + variables: BTreeMap::new(), } } diff --git a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_variable.rs b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_interpolation.rs similarity index 97% rename from pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_variable.rs rename to pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_interpolation.rs index 9e83b1326..4d11b5f1a 100644 --- a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_variable.rs +++ b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_interpolation.rs @@ -37,6 +37,7 @@ pub fn get_yaml_file() -> YamlFile { ); resources }, + variables: BTreeMap::new(), } } @@ -64,6 +65,7 @@ pub fn get_model() -> Example { ); map }, + variables: BTreeMap::new(), } } diff --git a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_numbers.rs b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_numbers.rs index 868b37f42..730ddd3c7 100644 --- a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_numbers.rs +++ b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_numbers.rs @@ -35,6 +35,7 @@ pub fn get_yaml_file() -> YamlFile { ); resources }, + variables: BTreeMap::new(), } } @@ -58,6 +59,7 @@ pub fn get_model() -> Example { ); map }, + variables: BTreeMap::new(), } } diff --git a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_variables.rs b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_variables.rs new file mode 100644 index 000000000..f10c74991 --- /dev/null +++ b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/example_variables.rs @@ -0,0 +1,93 @@ +use crate::code_generation::yaml::model::Example; +use crate::code_generation::yaml::model::Variable::FnInvokeVariable; +use crate::code_generation::yaml::model::{Expression, FnInvoke}; +use crate::code_generation::yaml::tests::reformat_code; +use crate::code_generation::yaml::yaml_model::{YamlExpression, YamlFnInvoke, YamlVariable}; +use crate::code_generation::YamlFile; +use crate::model::ElementId; +use std::collections::BTreeMap; + +//language=YAML +pub const YAML: &str = r#" + variables: + example: + fn::invoke: + Function: cloudflare:getGatewayCategories + Arguments: + accountId: f037e56e89293a057740de681ac9abbe +"#; + +pub fn get_yaml_file() -> YamlFile { + use crate::code_generation::yaml::yaml_model::YamlFile; + + YamlFile { + resources: BTreeMap::new(), + variables: { + let mut variables = BTreeMap::new(); + variables.insert( + "example".to_string(), + YamlVariable { + fn_invoke: YamlFnInvoke { + function: "cloudflare:getGatewayCategories".to_string(), + arguments: { + let mut arguments = BTreeMap::new(); + arguments.insert( + "accountId".to_string(), + YamlExpression::String( + "f037e56e89293a057740de681ac9abbe".to_string(), + ), + ); + arguments + }, + }, + }, + ); + variables + }, + } +} + +pub fn get_model() -> Example { + Example { + resources: BTreeMap::new(), + variables: { + let mut map = BTreeMap::new(); + map.insert( + "example".to_string(), + FnInvokeVariable(FnInvoke { + function: ElementId::new( + "cloudflare:index/getGatewayCategories:getGatewayCategories", + ) + .unwrap(), + arguments: { + let mut arguments = BTreeMap::new(); + arguments.insert( + "accountId".to_string(), + Expression::String("f037e56e89293a057740de681ac9abbe".to_string()), + ); + arguments + }, + }), + ); + map + }, + } +} + +// language=Rust +pub fn get_rust_code() -> String { + reformat_code( + r#" + use pulumi_wasm_rust::Output; + use pulumi_wasm_rust::{add_export, pulumi_main}; + #[pulumi_main] + fn test_main() -> Result<(), Error> { + let example = get_gateway_categories::invoke( + GetGatewayCategoriesArgs::builder() + .account_id("f037e56e89293a057740de681ac9abbe") + .build_struct(), + ); + } + "#, + ) +} diff --git a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/mod.rs b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/mod.rs index d155a0ce3..7b0e4d5a4 100644 --- a/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/mod.rs +++ b/pulumi_wasm_generator_lib/src/code_generation/yaml/tests/mod.rs @@ -2,8 +2,9 @@ pub(crate) mod complex_yaml; pub(crate) mod example_array; pub(crate) mod example_empty_properties; pub(crate) mod example_escape_string; +pub(crate) mod example_interpolation; pub(crate) mod example_numbers; -pub(crate) mod example_variable; +pub(crate) mod example_variables; fn reformat_code(code: &str) -> String { let syntax_tree = syn::parse_file(code).unwrap(); diff --git a/pulumi_wasm_generator_lib/src/code_generation/yaml/yaml_model.rs b/pulumi_wasm_generator_lib/src/code_generation/yaml/yaml_model.rs index 38f7ae46f..2ad641393 100644 --- a/pulumi_wasm_generator_lib/src/code_generation/yaml/yaml_model.rs +++ b/pulumi_wasm_generator_lib/src/code_generation/yaml/yaml_model.rs @@ -3,7 +3,10 @@ use std::collections::BTreeMap; #[derive(Debug, Serialize, Deserialize, PartialEq)] pub(crate) struct YamlFile { + #[serde(default)] pub(crate) resources: BTreeMap, + #[serde(default)] + pub(crate) variables: BTreeMap, } #[derive(Debug, Serialize, Deserialize, PartialEq)] @@ -15,6 +18,21 @@ pub(crate) struct YamlResource { pub(crate) properties: BTreeMap, } +#[derive(Debug, Serialize, Deserialize, PartialEq)] +pub(crate) struct YamlVariable { + #[serde(rename = "fn::invoke")] + pub fn_invoke: YamlFnInvoke, +} + +#[derive(Debug, Serialize, Deserialize, PartialEq)] +pub(crate) struct YamlFnInvoke { + #[serde(rename = "Function")] + pub(crate) function: String, + #[serde(rename = "Arguments")] + #[serde(default)] + pub(crate) arguments: BTreeMap, +} + #[derive(Debug, Serialize, Deserialize, PartialEq)] #[serde(untagged)] pub(crate) enum YamlExpression { diff --git a/pulumi_wasm_generator_lib/src/description.rs b/pulumi_wasm_generator_lib/src/description.rs new file mode 100644 index 000000000..b6d19ef70 --- /dev/null +++ b/pulumi_wasm_generator_lib/src/description.rs @@ -0,0 +1,173 @@ +use crate::code_generation::generate_code_from_string; +use crate::description::State::{ + Examples, Initial, LanguageInExamples, LanguageOutsideExamples, Shell, Yaml, +}; +use crate::model::Package; + +struct DescriptionState { + state: State, + result_lines: Vec, +} + +pub(crate) struct Description<'a> { + description_state: Wrapper, + package: &'a Package, +} + +impl<'a> Description<'a> { + pub(crate) fn create(package: &'a Package) -> Description<'a> { + Self { + description_state: Wrapper::new(), + package, + } + } + + pub(crate) fn transition(&mut self, line: &str) { + self.description_state.update(|previous_state| { + let DescriptionState { + state, + mut result_lines, + } = previous_state; + + let (new_state, lines) = match state { + Initial => Self::initial_transition(line), + Examples => Self::examples_transition(line), + Yaml(yaml_lines) => Self::yaml_transition(line, yaml_lines, self.package), + LanguageInExamples => Self::language_transition(line), + LanguageOutsideExamples => Self::language_outside_examples_transition(line), + Shell => Self::shell_transition(line), + }; + result_lines.extend(lines); + DescriptionState { + state: new_state, + result_lines, + } + }); + } + + pub(crate) fn get(self) -> Vec { + self.description_state.inner.result_lines + } + + fn initial_transition(line: &str) -> (State, Vec) { + match line.trim() { + "" | "{{% examples %}}" => (Examples, vec![]), + // Rustdoc treats ``` as rust code block. Line may contain whitespace before + "```" => (LanguageOutsideExamples, vec![line.to_string() + "sh"]), + l if l.starts_with("```") => (LanguageOutsideExamples, vec![line.to_string()]), + _ => (Initial, vec![line.to_string()]), + } + } + + fn examples_transition(line: &str) -> (State, Vec) { + match line.trim() { + "```yaml" => (Yaml(vec![]), vec![]), + "```typescript" | "```python" | "```java" | "```go" | "```csharp" => { + (LanguageInExamples, vec![]) + } + "{{% example %}}" | "{{% /example %}}" => (Examples, vec![]), + "{{% /examples %}}" | "" => (Initial, vec![]), + _ => (Examples, vec![line.to_string()]), + } + } + + fn language_transition(line: &str) -> (State, Vec) { + match line.trim() { + "```" => (Examples, vec![]), + _ => (LanguageInExamples, vec![]), + } + } + + fn shell_transition(line: &str) -> (State, Vec) { + match line.trim() { + "```" => (Initial, vec![line.to_string()]), + _ => (Shell, vec![line.to_string()]), + } + } + + fn language_outside_examples_transition(line: &str) -> (State, Vec) { + match line.trim() { + "```" => (Initial, vec![line.to_string()]), + _ => (LanguageOutsideExamples, vec![line.to_string()]), + } + } + + fn yaml_transition( + line: &str, + mut yaml_lines: Vec, + package: &Package, + ) -> (State, Vec) { + match line.trim() { + "```" => { + let yaml_str = yaml_lines.join("\n"); + let example = generate_code_from_string(yaml_str, package); + let mut new_lines = Vec::new(); + + match example { + Ok(rust_example) => { + new_lines.push("```ignore".to_string()); + new_lines.extend( + rust_example + .lines() + .map(|f| f.to_string()) + .collect::>(), + ); + new_lines.push("```".to_string()); + } + Err(err) => { + eprintln!("ERROR: {}", err); + err.chain() + .skip(1) + .for_each(|cause| eprintln!("because: {}", cause)); + new_lines.push("```yaml".to_string()); + new_lines.extend(yaml_lines.clone()); + new_lines.push("```".to_string()); + } + } + + (Examples, new_lines) + } + _ => { + yaml_lines.push(line.to_string()); + (Yaml(yaml_lines), vec![]) + } + } + } +} + +enum State { + Initial, + Examples, + Yaml(Vec), + LanguageInExamples, + LanguageOutsideExamples, + Shell, +} + +struct Wrapper { + inner: DescriptionState, +} + +impl Wrapper { + fn new() -> Self { + Wrapper { + inner: DescriptionState { + state: Initial, + result_lines: vec![], + }, + } + } + fn update(&mut self, updater: F) + where + F: FnOnce(DescriptionState) -> DescriptionState, + { + let new_inner = updater(std::mem::replace( + &mut self.inner, + DescriptionState { + state: Initial, + result_lines: vec![], + }, + )); + self.inner = new_inner; + } +} diff --git a/pulumi_wasm_generator_lib/src/dockerfixes/container/1_fixed.md b/pulumi_wasm_generator_lib/src/dockerfixes/container/1_fixed.md index 024ac1328..78eea23e4 100644 --- a/pulumi_wasm_generator_lib/src/dockerfixes/container/1_fixed.md +++ b/pulumi_wasm_generator_lib/src/dockerfixes/container/1_fixed.md @@ -139,6 +139,7 @@ prints the container ID you provide the definition for the resource as follows + ```yaml resources: foo: @@ -150,6 +151,7 @@ resources: - internal: 80 external: 8080 ``` + then the import command is as follows diff --git a/pulumi_wasm_generator_lib/src/dockerfixes/getPlugin/1_fixed.md b/pulumi_wasm_generator_lib/src/dockerfixes/getPlugin/1_fixed.md index 6cde69cdf..156de3b06 100644 --- a/pulumi_wasm_generator_lib/src/dockerfixes/getPlugin/1_fixed.md +++ b/pulumi_wasm_generator_lib/src/dockerfixes/getPlugin/1_fixed.md @@ -3,18 +3,21 @@ Reads the local Docker plugin. The plugin must be installed locally. ## Example Usage ### With alias + ```yaml variables: byAlias: fn::docker:getPlugin: alias: "sample-volume-plugin:latest" ``` + ### With ID + ```yaml variables: byId: fn::docker:getPlugin: id: "e9a9db917b3bfd6706b5d3a66d4bceb9f" ``` - + diff --git a/pulumi_wasm_generator_lib/src/dockerfixes/network/1_fixed.md b/pulumi_wasm_generator_lib/src/dockerfixes/network/1_fixed.md index 599393cc5..9cad7575a 100644 --- a/pulumi_wasm_generator_lib/src/dockerfixes/network/1_fixed.md +++ b/pulumi_wasm_generator_lib/src/dockerfixes/network/1_fixed.md @@ -96,6 +96,7 @@ prints the long ID you provide the definition for the resource as follows + ```yaml resources: foo: @@ -103,6 +104,7 @@ resources: properties: name: "foo" ``` + then the import command is as follows diff --git a/pulumi_wasm_generator_lib/src/dockerfixes/service/1_fixed.md b/pulumi_wasm_generator_lib/src/dockerfixes/service/1_fixed.md index fa739e98d..7f612f73e 100644 --- a/pulumi_wasm_generator_lib/src/dockerfixes/service/1_fixed.md +++ b/pulumi_wasm_generator_lib/src/dockerfixes/service/1_fixed.md @@ -21,6 +21,7 @@ prints this ID you provide the definition for the resource as follows + ```yaml resources: foo: @@ -35,6 +36,7 @@ resources: - targetPort: 80 publishedPort: 8080 ``` + then the import command is as follows diff --git a/pulumi_wasm_generator_lib/src/dockerfixes/serviceConfig/1_fixed.md b/pulumi_wasm_generator_lib/src/dockerfixes/serviceConfig/1_fixed.md index f5b25fe05..518f3dd79 100644 --- a/pulumi_wasm_generator_lib/src/dockerfixes/serviceConfig/1_fixed.md +++ b/pulumi_wasm_generator_lib/src/dockerfixes/serviceConfig/1_fixed.md @@ -18,6 +18,7 @@ prints the id you provide the definition for the resource as follows + ```yaml resources: foo: @@ -26,6 +27,7 @@ resources: properties: data: 'base64encode("{\"a\": \"b\"}")' ``` + then the import command is as follows diff --git a/pulumi_wasm_generator_lib/src/lib.rs b/pulumi_wasm_generator_lib/src/lib.rs index e0574e20a..d222370c2 100644 --- a/pulumi_wasm_generator_lib/src/lib.rs +++ b/pulumi_wasm_generator_lib/src/lib.rs @@ -6,6 +6,7 @@ use std::path::Path; use crate::schema::Package; use anyhow::{Context, Result}; mod code_generation; +mod description; mod model; mod output; mod schema; diff --git a/pulumi_wasm_generator_lib/src/model.rs b/pulumi_wasm_generator_lib/src/model.rs index 0e2621910..551fb2adf 100644 --- a/pulumi_wasm_generator_lib/src/model.rs +++ b/pulumi_wasm_generator_lib/src/model.rs @@ -101,6 +101,7 @@ pub(crate) struct Resource { #[derive(Debug, PartialEq, Hash, Ord, PartialOrd, Eq)] pub(crate) struct Function { + pub(crate) element_id: ElementId, // pub(crate) name: String, pub(crate) description: Option, pub(crate) input_properties: Vec, diff --git a/pulumi_wasm_generator_lib/src/schema.rs b/pulumi_wasm_generator_lib/src/schema.rs index 9a1daad9c..95ce6728d 100644 --- a/pulumi_wasm_generator_lib/src/schema.rs +++ b/pulumi_wasm_generator_lib/src/schema.rs @@ -202,6 +202,7 @@ fn function_to_model( Ok(( element_id.clone(), crate::model::Function { + element_id: element_id.clone(), description: function.description.clone(), input_properties: match &function.inputs { None => vec![], diff --git a/pulumi_wasm_generator_lib/src/utils.rs b/pulumi_wasm_generator_lib/src/utils.rs index 6ee247651..80cc00b5d 100644 --- a/pulumi_wasm_generator_lib/src/utils.rs +++ b/pulumi_wasm_generator_lib/src/utils.rs @@ -1,4 +1,4 @@ -use crate::code_generation::generate_code_from_string; +use crate::description::Description; use crate::model::ElementId; use regex::Regex; use std::collections::HashMap; @@ -91,85 +91,13 @@ pub(crate) fn to_lines( .unwrap_or("".to_string()); let lines = binding.lines(); - let mut in_yaml = false; - let mut in_language = false; - let mut in_shell = false; - - let mut yaml_lines = Vec::::new(); - let mut new_lines = Vec::::new(); + let mut description = Description::create(package); for line in lines { - if in_yaml && line.trim() == "```" { - let yaml_str = yaml_lines.join("\n"); - let example = generate_code_from_string(yaml_str, package); - - match example { - Ok(rust_example) => { - new_lines.push("```ignore".to_string()); - new_lines.extend( - rust_example - .lines() - .map(|f| f.to_string()) - .collect::>(), - ); - new_lines.push("```".to_string()); - } - Err(err) => { - eprintln!("ERROR: {}", err); - err.chain() - .skip(1) - .for_each(|cause| eprintln!("because: {}", cause)); - new_lines.push("```yaml".to_string()); - new_lines.extend(yaml_lines.clone()); - new_lines.push("```".to_string()); - } - } - } else if in_yaml { - yaml_lines.push(line.to_string()); - continue; - } - - let l = match line.trim() { - "{{% examples %}}" | "{{% /examples %}}" | "{{% example %}}" | "{{% /example %}}" => { - vec![] - } - "```yaml" => { - in_yaml = true; - vec![] - } - "```typescript" | "```python" | "```go" | "```java" | "```csharp" => { - in_language = true; - vec![] - } - "```" if in_shell => { - in_shell = false; - vec!["```".to_string()] - } - "```" if in_yaml || in_language => { - in_yaml = false; - in_language = false; - in_shell = false; - yaml_lines.clear(); - vec![] - } - _ if in_language || in_yaml => { - vec![] - } - "```" | "```sh" | "```shell" => { - in_shell = true; - vec!["```sh".to_string()] - } - "```text" => { - in_shell = true; - vec!["```text".to_string()] - } - _ => vec![line.to_string()], - }; - - new_lines.extend(l); + description.transition(line) } - new_lines + description.get() } static DOCKER_SERVICE_REPLACEMENTS: LazyLock>> =