From f3b26040f72452db1bddcde5899f46d992e5a951 Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Fri, 6 Dec 2024 02:23:15 +0100 Subject: [PATCH 1/6] Description state machine --- .../function/get_access_identity_provider.rs | 2 - .../src/function/get_account_roles.rs | 2 - .../src/function/get_accounts.rs | 2 - .../get_api_token_permission_groups.rs | 2 - .../src/function/get_device_posture_rules.rs | 2 - .../src/function/get_devices.rs | 2 - .../src/function/get_dlp_datasets.rs | 2 - .../src/function/get_gateway_app_types.rs | 2 - .../src/function/get_gateway_categories.rs | 2 - .../get_infrastructure_access_targets.rs | 2 - .../src/function/get_ip_ranges.rs | 2 - .../src/function/get_list.rs | 2 - .../src/function/get_lists.rs | 2 - .../src/function/get_load_balancer_pools.rs | 2 - .../src/function/get_origin_ca_certificate.rs | 2 - .../get_origin_ca_root_certificate.rs | 2 - .../src/function/get_record.rs | 2 - .../src/function/get_rulesets.rs | 2 - .../src/function/get_tunnel.rs | 2 - .../function/get_tunnel_virtual_network.rs | 2 - .../src/function/get_user.rs | 2 - ...ero_trust_infrastructure_access_targets.rs | 2 - .../src/function/get_zone.rs | 2 - .../src/function/get_zone_cache_reserve.rs | 2 - .../src/function/get_zone_dnssec.rs | 2 - .../src/resource/access_ca_certificate.rs | 2 - .../src/resource/access_custom_page.rs | 2 - .../src/resource/access_identity_provider.rs | 2 - .../resource/access_mutual_tls_certificate.rs | 2 - .../access_mutual_tls_hostname_settings.rs | 2 - .../src/resource/access_organization.rs | 2 - .../src/resource/access_rule.rs | 2 - .../src/resource/account.rs | 2 - .../src/resource/account_member.rs | 2 - .../src/resource/address_map.rs | 2 - .../src/resource/api_shield.rs | 2 - .../src/resource/api_shield_operation.rs | 2 - ...ld_operation_schema_validation_settings.rs | 2 - .../src/resource/api_shield_schema.rs | 2 - .../api_shield_schema_validation_settings.rs | 2 - .../src/resource/argo.rs | 2 - .../resource/authenticated_origin_pulls.rs | 2 - .../authenticated_origin_pulls_certificate.rs | 2 - .../src/resource/bot_management.rs | 2 - .../src/resource/byo_ip_prefix.rs | 2 - .../src/resource/cloud_connector_rules.rs | 2 - .../src/resource/custom_hostname.rs | 2 - .../custom_hostname_fallback_origin.rs | 2 - .../src/resource/custom_pages.rs | 2 - .../src/resource/custom_ssl.rs | 2 - .../src/resource/d1_database.rs | 2 - .../src/resource/device_dex_test.rs | 2 - .../src/resource/device_managed_networks.rs | 2 - .../resource/device_policy_certificates.rs | 2 - .../resource/device_posture_integration.rs | 2 - .../src/resource/device_posture_rule.rs | 2 - .../src/resource/device_settings_policy.rs | 2 - .../src/resource/dlp_profile.rs | 2 - .../src/resource/email_routing_address.rs | 2 - .../src/resource/email_routing_catch_all.rs | 2 - .../src/resource/email_routing_rule.rs | 2 - .../src/resource/email_routing_settings.rs | 2 - .../src/resource/filter.rs | 2 - .../src/resource/firewall_rule.rs | 2 - .../src/resource/gre_tunnel.rs | 2 - .../src/resource/healthcheck.rs | 2 - .../src/resource/hostname_tls_setting.rs | 2 - .../resource/hostname_tls_setting_ciphers.rs | 2 - .../src/resource/hyperdrive_config.rs | 2 - .../resource/infrastructure_access_target.rs | 2 - .../src/resource/ipsec_tunnel.rs | 2 - .../src/resource/keyless_certificate.rs | 2 - .../src/resource/list_item.rs | 2 - .../src/resource/load_balancer.rs | 2 - .../src/resource/load_balancer_pool.rs | 2 - .../src/resource/logpull_retention.rs | 2 - .../resource/logpush_ownership_challenge.rs | 2 - .../src/resource/magic_firewall_ruleset.rs | 2 - .../src/resource/magic_wan_gre_tunnel.rs | 2 - .../src/resource/magic_wan_ipsec_tunnel.rs | 2 - .../src/resource/magic_wan_static_route.rs | 2 - .../src/resource/managed_headers.rs | 2 - .../src/resource/mtls_certificate.rs | 2 - .../resource/notification_policy_webhooks.rs | 2 - .../resource/observatory_scheduled_test.rs | 2 - .../src/resource/origin_ca_certificate.rs | 2 - .../src/resource/page_rule.rs | 2 - .../src/resource/pages_domain.rs | 2 - .../src/resource/queue.rs | 2 - .../src/resource/r2_bucket.rs | 2 - .../src/resource/rate_limit.rs | 2 - .../src/resource/record.rs | 2 - .../src/resource/regional_hostname.rs | 2 - .../src/resource/regional_tiered_cache.rs | 2 - .../src/resource/spectrum_application.rs | 2 - .../src/resource/static_route.rs | 2 - .../src/resource/teams_account.rs | 2 - .../src/resource/teams_list.rs | 2 - .../src/resource/teams_location.rs | 2 - .../src/resource/teams_proxy_endpoint.rs | 2 - .../src/resource/teams_rule.rs | 2 - .../src/resource/tiered_cache.rs | 2 - .../src/resource/total_tls.rs | 2 - .../src/resource/tunnel.rs | 2 - .../src/resource/tunnel_config.rs | 2 - .../src/resource/tunnel_virtual_network.rs | 2 - .../src/resource/turnstile_widget.rs | 2 - .../resource/url_normalization_settings.rs | 2 - .../src/resource/user_agent_blocking_rule.rs | 2 - .../src/resource/waiting_room.rs | 2 - .../src/resource/waiting_room_event.rs | 2 - .../src/resource/waiting_room_rules.rs | 2 - .../src/resource/waiting_room_settings.rs | 2 - .../src/resource/web_analytics_rule.rs | 2 - .../src/resource/web_analytics_site.rs | 2 - .../src/resource/worker_cron_trigger.rs | 2 - .../src/resource/worker_domain.rs | 2 - .../src/resource/worker_route.rs | 2 - .../src/resource/worker_script.rs | 2 - .../src/resource/worker_secret.rs | 2 - .../src/resource/workers_cron_trigger.rs | 2 - .../src/resource/workers_domain.rs | 2 - ...orkers_for_platforms_dispatch_namespace.rs | 2 - .../workers_for_platforms_namespace.rs | 2 - .../src/resource/workers_kv.rs | 2 - .../src/resource/workers_kv_namespace.rs | 2 - .../src/resource/workers_route.rs | 2 - .../src/resource/workers_script.rs | 2 - .../src/resource/workers_secret.rs | 2 - .../resource/zero_trust_access_custom_page.rs | 2 - .../zero_trust_access_identity_provider.rs | 2 - .../zero_trust_access_mtls_certificate.rs | 2 - ...ero_trust_access_mtls_hostname_settings.rs | 2 - ...ro_trust_access_short_lived_certificate.rs | 2 - .../zero_trust_device_certificates.rs | 2 - .../zero_trust_device_managed_networks.rs | 2 - .../zero_trust_device_posture_integration.rs | 2 - .../zero_trust_device_posture_rule.rs | 2 - .../resource/zero_trust_device_profiles.rs | 2 - .../src/resource/zero_trust_dex_test.rs | 2 - .../src/resource/zero_trust_dlp_profile.rs | 2 - .../src/resource/zero_trust_dns_location.rs | 2 - .../src/resource/zero_trust_gateway_policy.rs | 2 - .../zero_trust_gateway_proxy_endpoint.rs | 2 - .../resource/zero_trust_gateway_settings.rs | 2 - ...zero_trust_infrastructure_access_target.rs | 2 - .../src/resource/zero_trust_list.rs | 2 - .../resource/zero_trust_tunnel_cloudflared.rs | 2 - .../zero_trust_tunnel_cloudflared_config.rs | 2 - .../zero_trust_tunnel_virtual_network.rs | 2 - .../src/resource/zone.rs | 2 - .../src/resource/zone_cache_reserve.rs | 2 - .../src/resource/zone_cache_variants.rs | 2 - .../src/resource/zone_dnssec.rs | 2 - .../src/resource/zone_hold.rs | 2 - .../src/resource/zone_lockdown.rs | 2 - .../src/resource/zone_settings_override.rs | 4 +- ...page_rule_actions_cache_key_fields_user.rs | 2 - .../src/function/get_network.rs | 2 - .../src/function/get_registry_image.rs | 2 - .../src/function/get_remote_image.rs | 2 - .../src/resource/container.rs | 30 +- .../src/resource/image.rs | 465 +++++++++++++++++- .../src/resource/network.rs | 17 +- .../src/resource/plugin.rs | 2 - .../src/resource/registry_image.rs | 2 - .../src/resource/remote_image.rs | 6 - .../src/resource/secret.rs | 2 +- .../src/resource/service.rs | 45 +- .../src/resource/service_config.rs | 21 +- .../src/resource/volume.rs | 2 - .../src/resource/random_bytes.rs | 2 - .../src/resource/random_id.rs | 2 - .../src/resource/random_integer.rs | 2 - .../src/resource/random_password.rs | 2 - .../src/resource/random_pet.rs | 2 - .../src/resource/random_shuffle.rs | 2 - .../src/resource/random_string.rs | 2 - .../src/resource/random_uuid.rs | 2 - pulumi_wasm_generator_lib/src/description.rs | 158 ++++++ pulumi_wasm_generator_lib/src/lib.rs | 1 + pulumi_wasm_generator_lib/src/utils.rs | 80 +-- 182 files changed, 665 insertions(+), 506 deletions(-) create mode 100644 pulumi_wasm_generator_lib/src/description.rs 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..769ab21d5 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,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/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..8555c7724 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -11,7 +10,6 @@ //! Arguments: //! name: example account //! ``` -//! #[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..7d33379cc 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,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! all: @@ -18,7 +17,6 @@ //! # Get user level "Memberships Read" permission ID. //! userMembershipsReadId: ${all.user"Memberships Read"[%!s(MISSING)]} //! ``` -//! 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..b9955888d 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -13,7 +12,6 @@ //! name: check for /dev/random //! type: file //! ``` -//! #[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..dd06d1510 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -11,7 +10,6 @@ //! Arguments: //! accountId: f037e56e89293a057740de681ac9abbe //! ``` -//! #[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..f52b58976 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -11,7 +10,6 @@ //! Arguments: //! accountId: f037e56e89293a057740de681ac9abbe //! ``` -//! #[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..72bcf3b76 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -11,7 +10,6 @@ //! Arguments: //! accountId: f037e56e89293a057740de681ac9abbe //! ``` -//! #[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..aa7e339ea 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -11,7 +10,6 @@ //! Arguments: //! accountId: f037e56e89293a057740de681ac9abbe //! ``` -//! #[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..a5809b562 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -16,7 +15,6 @@ //! # output the list of targets the data source contains //! targets: ${example.targets} //! ``` -//! #[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..03a7aa714 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -12,7 +11,6 @@ //! accountId: f037e56e89293a057740de681ac9abbe //! name: list_name //! ``` -//! #[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..f10b908fc 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -11,7 +10,6 @@ //! Arguments: //! accountId: f037e56e89293a057740de681ac9abbe //! ``` -//! #[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..11c60c045 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -13,7 +12,6 @@ //! filter: //! name: example-lb-pool //! ``` -//! #[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..16ecbf645 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -11,7 +10,6 @@ //! Arguments: //! id: REPLACE_ME //! ``` -//! #[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..03a47949f 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,7 +4,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -13,7 +12,6 @@ //! Arguments: //! algorithm: rsa //! ``` -//! #[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..4639cb921 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -12,7 +11,6 @@ //! zoneId: 0da42c8d2132a9ddaf714f9e7c920711 //! hostname: example.com //! ``` -//! #[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..e57fab1a9 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -13,7 +12,6 @@ //! filter: //! name: .*OWASP.* //! ``` -//! #[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..9470c35b1 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -12,7 +11,6 @@ //! accountId: f037e56e89293a057740de681ac9abbe //! name: my-tunnel //! ``` -//! #[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..3e2c6d47f 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -12,7 +11,6 @@ //! accountId: f037e56e89293a057740de681ac9abbe //! name: example //! ``` -//! #[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..e37327f44 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -16,7 +15,6 @@ //! # output the list of targets the data source contains //! targets: ${example.targets} //! ``` -//! #[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..6d5b183c1 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,7 +8,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -26,7 +25,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..3eb57f7c4 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,7 +3,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -12,7 +11,6 @@ //! Arguments: //! zoneId: 0da42c8d2132a9ddaf714f9e7c920711 //! ``` -//! #[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..b267320e8 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! example: @@ -11,7 +10,6 @@ //! Arguments: //! zoneId: 0da42c8d2132a9ddaf714f9e7c920711 //! ``` -//! #[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..2e897e32d 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 @@ -11,7 +11,7 @@ //! for a feature that is not available on the plan configured for the zone will //! result in an error: //! -//! ```sh +//! ``` //! Error: invalid zone setting "\" (value: \) found - cannot be set as it is read only //! ``` //! @@ -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..33c6e79e0 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! main: @@ -11,7 +10,6 @@ //! Arguments: //! name: main //! ``` -//! #[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..4d382a763 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; @@ -17,7 +16,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..bf7eaef3e 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,7 +2,6 @@ //! //! ## Example Usage //! -//! //! ```yaml //! variables: //! latest: @@ -26,7 +25,6 @@ //! Arguments: //! name: nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2 //! ``` -//! #[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..99fce1eff 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 //! @@ -39,24 +37,16 @@ //! //! you provide the definition for the resource as follows //! -//! ```ignore -//! use pulumi_wasm_rust::Output; -//! use pulumi_wasm_rust::{add_export, pulumi_main}; -//! #[pulumi_main] -//! fn test_main() -> Result<(), Error> { -//! let foo = container::create( -//! "foo", -//! ContainerArgs::builder() -//! .image("nginx") -//! .name("foo") -//! .ports( -//! vec![ -//! ContainerPort::builder().external(8080).internal(80).build_struct(), -//! ], -//! ) -//! .build_struct(), -//! ); -//! } +//! ```yaml +//! resources: +//! foo: +//! type: docker:Container +//! properties: +//! name: "foo" +//! image: "nginx" +//! ports: +//! - internal: 80 +//! external: 8080 //! ``` //! //! then the import command is as follows 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..676576ed4 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,12 +50,97 @@ //! stack-name: org-name/stack-name //! env: //! PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} -//! ``` +//! ``` //! //! +//! {{% examples %}} //! ## Example Usage +//! {{% example %}} //! ### A Docker image build //! +//! ```typescript +//! import * as pulumi from "@pulumi/pulumi"; +//! import * as docker from "@pulumi/docker"; +//! +//! const demoImage = new docker.Image("demo-image", { +//! build: { +//! context: ".", +//! dockerfile: "Dockerfile", +//! platform: "linux/amd64", +//! }, +//! imageName: "username/image:tag1", +//! skipPush: true, +//! }); +//! export const imageName = demoImage.imageName; +//! ``` +//! ```python +//! import pulumi +//! import pulumi_docker as docker +//! +//! demo_image = docker.Image("demo-image", +//! build=docker.DockerBuildArgs( +//! context=".", +//! dockerfile="Dockerfile", +//! platform="linux/amd64", +//! ), +//! image_name="username/image:tag1", +//! skip_push=True) +//! pulumi.export("imageName", demo_image.image_name) +//! ``` +//! ```csharp +//! using System.Collections.Generic; +//! using System.Linq; +//! using Pulumi; +//! using Docker = Pulumi.Docker; +//! +//! return await Deployment.RunAsync(() => +//! { +//! var demoImage = new Docker.Image("demo-image", new() +//! { +//! Build = new Docker.Inputs.DockerBuildArgs +//! { +//! Context = ".", +//! Dockerfile = "Dockerfile", +//! Platform = "linux/amd64", +//! }, +//! ImageName = "username/image:tag1", +//! SkipPush = true, +//! }); +//! +//! return new Dictionary +//! { +//! ["imageName"] = demoImage.ImageName, +//! }; +//! }); +//! +//! ``` +//! ```go +//! package main +//! +//! import ( +//! "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" +//! "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +//! ) +//! +//! func main() { +//! pulumi.Run(func(ctx *pulumi.Context) error { +//! demoImage, err := docker.NewImage(ctx, "demo-image", &docker.ImageArgs{ +//! Build: &docker.DockerBuildArgs{ +//! Context: pulumi.String("."), +//! Dockerfile: pulumi.String("Dockerfile"), +//! Platform: pulumi.String("linux/amd64"), +//! }, +//! ImageName: pulumi.String("username/image:tag1"), +//! SkipPush: pulumi.Bool(true), +//! }) +//! if err != nil { +//! return err +//! } +//! ctx.Export("imageName", demoImage.ImageName) +//! return nil +//! }) +//! } +//! ``` //! ```yaml //! config: {} //! description: A Docker image build @@ -77,8 +162,125 @@ //! runtime: yaml //! variables: {} //! ``` +//! ```java +//! package generated_program; +//! +//! import com.pulumi.Context; +//! import com.pulumi.Pulumi; +//! import com.pulumi.core.Output; +//! import com.pulumi.docker.Image; +//! import com.pulumi.docker.ImageArgs; +//! import com.pulumi.docker.inputs.DockerBuildArgs; +//! import java.util.List; +//! import java.util.ArrayList; +//! import java.util.Map; +//! import java.io.File; +//! import java.nio.file.Files; +//! import java.nio.file.Paths; +//! +//! public class App { +//! public static void main(String[] args) { +//! Pulumi.run(App::stack); +//! } +//! +//! public static void stack(Context ctx) { +//! var demoImage = new Image("demoImage", ImageArgs.builder() +//! .build(DockerBuildArgs.builder() +//! .context(".") +//! .dockerfile("Dockerfile") +//! .platform("linux/amd64") +//! .build()) +//! .imageName("username/image:tag1") +//! .skipPush(true) +//! .build()); +//! +//! ctx.export("imageName", demoImage.imageName()); +//! } +//! } +//! ``` +//! {{% /example %}} +//! {{% example %}} //! ### A Docker image build and push //! +//! ```typescript +//! import * as pulumi from "@pulumi/pulumi"; +//! import * as docker from "@pulumi/docker"; +//! +//! const demoPushImage = new docker.Image("demo-push-image", { +//! build: { +//! context: ".", +//! dockerfile: "Dockerfile", +//! }, +//! imageName: "docker.io/username/push-image:tag1", +//! }); +//! export const imageName = demoPushImage.imageName; +//! export const repoDigest = demoPushImage.repoDigest; +//! ``` +//! ```python +//! import pulumi +//! import pulumi_docker as docker +//! +//! demo_push_image = docker.Image("demo-push-image", +//! build=docker.DockerBuildArgs( +//! context=".", +//! dockerfile="Dockerfile", +//! ), +//! image_name="docker.io/username/push-image:tag1") +//! pulumi.export("imageName", demo_push_image.image_name) +//! pulumi.export("repoDigest", demo_push_image.repo_digest) +//! ``` +//! ```csharp +//! using System.Collections.Generic; +//! using System.Linq; +//! using Pulumi; +//! using Docker = Pulumi.Docker; +//! +//! return await Deployment.RunAsync(() => +//! { +//! var demoPushImage = new Docker.Image("demo-push-image", new() +//! { +//! Build = new Docker.Inputs.DockerBuildArgs +//! { +//! Context = ".", +//! Dockerfile = "Dockerfile", +//! }, +//! ImageName = "docker.io/username/push-image:tag1", +//! }); +//! +//! return new Dictionary +//! { +//! ["imageName"] = demoPushImage.ImageName, +//! ["repoDigest"] = demoPushImage.RepoDigest, +//! }; +//! }); +//! +//! ``` +//! ```go +//! package main +//! +//! import ( +//! "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" +//! "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +//! ) +//! +//! func main() { +//! pulumi.Run(func(ctx *pulumi.Context) error { +//! demoPushImage, err := docker.NewImage(ctx, "demo-push-image", &docker.ImageArgs{ +//! Build: &docker.DockerBuildArgs{ +//! Context: pulumi.String("."), +//! Dockerfile: pulumi.String("Dockerfile"), +//! }, +//! ImageName: pulumi.String("docker.io/username/push-image:tag1"), +//! }) +//! if err != nil { +//! return err +//! } +//! ctx.Export("imageName", demoPushImage.ImageName) +//! ctx.Export("repoDigest", demoPushImage.RepoDigest) +//! return nil +//! }) +//! } +//! ``` //! ```yaml //! config: {} //! description: A Docker image build and push @@ -99,8 +301,205 @@ //! runtime: yaml //! variables: {} //! ``` +//! ```java +//! package generated_program; +//! +//! import com.pulumi.Context; +//! import com.pulumi.Pulumi; +//! import com.pulumi.core.Output; +//! import com.pulumi.docker.Image; +//! import com.pulumi.docker.ImageArgs; +//! import com.pulumi.docker.inputs.DockerBuildArgs; +//! import java.util.List; +//! import java.util.ArrayList; +//! import java.util.Map; +//! import java.io.File; +//! import java.nio.file.Files; +//! import java.nio.file.Paths; +//! +//! public class App { +//! public static void main(String[] args) { +//! Pulumi.run(App::stack); +//! } +//! +//! public static void stack(Context ctx) { +//! var demoPushImage = new Image("demoPushImage", ImageArgs.builder() +//! .build(DockerBuildArgs.builder() +//! .context(".") +//! .dockerfile("Dockerfile") +//! .build()) +//! .imageName("docker.io/username/push-image:tag1") +//! .build()); +//! +//! ctx.export("imageName", demoPushImage.imageName()); +//! ctx.export("repoDigest", demoPushImage.repoDigest()); +//! } +//! } +//! ``` +//! {{% /example %}} +//! {{% example %}} //! ### Docker image build using caching with AWS Elastic Container Registry //! +//! ```typescript +//! import * as pulumi from "@pulumi/pulumi"; +//! import * as aws from "@pulumi/aws"; +//! import * as docker from "@pulumi/docker"; +//! +//! const ecrRepository = new aws.ecr.Repository("ecr-repository", {name: "docker-repository"}); +//! const authToken = aws.ecr.getAuthorizationTokenOutput({ +//! registryId: ecrRepository.registryId, +//! }); +//! const myAppImage = new docker.Image("my-app-image", { +//! build: { +//! args: { +//! BUILDKIT_INLINE_CACHE: "1", +//! }, +//! cacheFrom: { +//! images: [pulumi.interpolate`${ecrRepository.repositoryUrl}:latest`], +//! }, +//! context: "app/", +//! dockerfile: "Dockerfile", +//! }, +//! imageName: pulumi.interpolate`${ecrRepository.repositoryUrl}:latest`, +//! registry: { +//! password: pulumi.secret(authToken.apply(authToken => authToken.password)), +//! server: ecrRepository.repositoryUrl, +//! }, +//! }); +//! export const imageName = myAppImage.imageName; +//! ``` +//! ```python +//! import pulumi +//! import pulumi_aws as aws +//! import pulumi_docker as docker +//! +//! ecr_repository = aws.ecr.Repository("ecr-repository", name="docker-repository") +//! auth_token = aws.ecr.get_authorization_token_output(registry_id=ecr_repository.registry_id) +//! my_app_image = docker.Image("my-app-image", +//! build=docker.DockerBuildArgs( +//! args={ +//! "BUILDKIT_INLINE_CACHE": "1", +//! }, +//! cache_from=docker.CacheFromArgs( +//! images=[ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:latest")], +//! ), +//! context="app/", +//! dockerfile="Dockerfile", +//! ), +//! image_name=ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:latest"), +//! registry=docker.RegistryArgs( +//! password=pulumi.Output.secret(auth_token.password), +//! server=ecr_repository.repository_url, +//! )) +//! pulumi.export("imageName", my_app_image.image_name) +//! ``` +//! ```csharp +//! using System.Collections.Generic; +//! using System.Linq; +//! using Pulumi; +//! using Aws = Pulumi.Aws; +//! using Docker = Pulumi.Docker; +//! +//! return await Deployment.RunAsync(() => +//! { +//! var ecrRepository = new Aws.Ecr.Repository("ecr-repository", new() +//! { +//! Name = "docker-repository", +//! }); +//! +//! var authToken = Aws.Ecr.GetAuthorizationToken.Invoke(new() +//! { +//! RegistryId = ecrRepository.RegistryId, +//! }); +//! +//! var myAppImage = new Docker.Image("my-app-image", new() +//! { +//! Build = new Docker.Inputs.DockerBuildArgs +//! { +//! Args = +//! { +//! { "BUILDKIT_INLINE_CACHE", "1" }, +//! }, +//! CacheFrom = new Docker.Inputs.CacheFromArgs +//! { +//! Images = new[] +//! { +//! ecrRepository.RepositoryUrl.Apply(repositoryUrl => $"{repositoryUrl}:latest"), +//! }, +//! }, +//! Context = "app/", +//! Dockerfile = "Dockerfile", +//! }, +//! ImageName = ecrRepository.RepositoryUrl.Apply(repositoryUrl => $"{repositoryUrl}:latest"), +//! Registry = new Docker.Inputs.RegistryArgs +//! { +//! Password = Output.CreateSecret(authToken.Apply(getAuthorizationTokenResult => getAuthorizationTokenResult.Password)), +//! Server = ecrRepository.RepositoryUrl, +//! }, +//! }); +//! +//! return new Dictionary +//! { +//! ["imageName"] = myAppImage.ImageName, +//! }; +//! }); +//! +//! ``` +//! ```go +//! package main +//! +//! import ( +//! "fmt" +//! +//! "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ecr" +//! "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" +//! "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +//! ) +//! +//! func main() { +//! pulumi.Run(func(ctx *pulumi.Context) error { +//! ecrRepository, err := ecr.NewRepository(ctx, "ecr-repository", &ecr.RepositoryArgs{ +//! Name: pulumi.String("docker-repository"), +//! }) +//! if err != nil { +//! return err +//! } +//! authToken := ecr.GetAuthorizationTokenOutput(ctx, ecr.GetAuthorizationTokenOutputArgs{ +//! RegistryId: ecrRepository.RegistryId, +//! }, nil) +//! myAppImage, err := docker.NewImage(ctx, "my-app-image", &docker.ImageArgs{ +//! Build: &docker.DockerBuildArgs{ +//! Args: pulumi.StringMap{ +//! "BUILDKIT_INLINE_CACHE": pulumi.String("1"), +//! }, +//! CacheFrom: &docker.CacheFromArgs{ +//! Images: pulumi.StringArray{ +//! ecrRepository.RepositoryUrl.ApplyT(func(repositoryUrl string) (string, error) { +//! return fmt.Sprintf("%v:latest", repositoryUrl), nil +//! }).(pulumi.StringOutput), +//! }, +//! }, +//! Context: pulumi.String("app/"), +//! Dockerfile: pulumi.String("Dockerfile"), +//! }, +//! ImageName: ecrRepository.RepositoryUrl.ApplyT(func(repositoryUrl string) (string, error) { +//! return fmt.Sprintf("%v:latest", repositoryUrl), nil +//! }).(pulumi.StringOutput), +//! Registry: &docker.RegistryArgs{ +//! Password: pulumi.ToSecret(authToken.ApplyT(func(authToken ecr.GetAuthorizationTokenResult) (*string, error) { +//! return &authToken.Password, nil +//! }).(pulumi.StringPtrOutput)).(pulumi.StringOutput), +//! Server: ecrRepository.RepositoryUrl, +//! }, +//! }) +//! if err != nil { +//! return err +//! } +//! ctx.Export("imageName", myAppImage.ImageName) +//! return nil +//! }) +//! } +//! ``` //! ```yaml //! config: {} //! description: Docker image build using caching with AWS Elastic Container Registry @@ -136,6 +535,64 @@ //! fn::aws:ecr:getAuthorizationToken: //! registryId: ${ecr-repository.registryId} //! ``` +//! ```java +//! package generated_program; +//! +//! import com.pulumi.Context; +//! import com.pulumi.Pulumi; +//! import com.pulumi.core.Output; +//! import com.pulumi.aws.ecr.Repository; +//! import com.pulumi.aws.ecr.RepositoryArgs; +//! import com.pulumi.aws.ecr.EcrFunctions; +//! import com.pulumi.aws.ecr.inputs.GetAuthorizationTokenArgs; +//! import com.pulumi.docker.Image; +//! import com.pulumi.docker.ImageArgs; +//! import com.pulumi.docker.inputs.DockerBuildArgs; +//! import com.pulumi.docker.inputs.CacheFromArgs; +//! import com.pulumi.docker.inputs.RegistryArgs; +//! import java.util.List; +//! import java.util.ArrayList; +//! import java.util.Map; +//! import java.io.File; +//! import java.nio.file.Files; +//! import java.nio.file.Paths; +//! +//! public class App { +//! public static void main(String[] args) { +//! Pulumi.run(App::stack); +//! } +//! +//! public static void stack(Context ctx) { +//! var ecrRepository = new Repository("ecrRepository", RepositoryArgs.builder() +//! .name("docker-repository") +//! .build()); +//! +//! final var authToken = EcrFunctions.getAuthorizationToken(GetAuthorizationTokenArgs.builder() +//! .registryId(ecrRepository.registryId()) +//! .build()); +//! +//! var myAppImage = new Image("myAppImage", ImageArgs.builder() +//! .build(DockerBuildArgs.builder() +//! .args(Map.of("BUILDKIT_INLINE_CACHE", "1")) +//! .cacheFrom(CacheFromArgs.builder() +//! .images(ecrRepository.repositoryUrl().applyValue(repositoryUrl -> String.format("%s:latest", repositoryUrl))) +//! .build()) +//! .context("app/") +//! .dockerfile("Dockerfile") +//! .build()) +//! .imageName(ecrRepository.repositoryUrl().applyValue(repositoryUrl -> String.format("%s:latest", repositoryUrl))) +//! .registry(RegistryArgs.builder() +//! .password(Output.ofSecret(authToken.applyValue(getAuthorizationTokenResult -> getAuthorizationTokenResult).applyValue(authToken -> authToken.applyValue(getAuthorizationTokenResult -> getAuthorizationTokenResult.password())))) +//! .server(ecrRepository.repositoryUrl()) +//! .build()) +//! .build()); +//! +//! ctx.export("imageName", myAppImage.imageName()); +//! } +//! } +//! ``` +//! {{% /example %}} +//! {{% /examples %}} #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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..076dd4952 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 //! ```` //! @@ -35,13 +33,12 @@ //! //! you provide the definition for the resource as follows //! -//! ```ignore -//! use pulumi_wasm_rust::Output; -//! use pulumi_wasm_rust::{add_export, pulumi_main}; -//! #[pulumi_main] -//! fn test_main() -> Result<(), Error> { -//! let foo = network::create("foo", NetworkArgs::builder().name("foo").build_struct()); -//! } +//! ```yaml +//! resources: +//! foo: +//! type: docker:Network +//! properties: +//! name: "foo" //! ``` //! //! then the import command is as follows 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..0d8d9374d 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,14 +20,12 @@ //! ); //! } //! ``` -//! //! //! ### 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}; @@ -43,14 +40,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 +61,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/secret.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource/secret.rs index 6da96c6bc..e2b1f5fb9 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/secret.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/secret.rs @@ -2,7 +2,7 @@ //! //! ## Import //! -//! ```sh +//! ``` //! # Docker secret cannot be imported as the secret data, once set, is never exposed again. //! ``` 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..87f053ca2 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 //! ``` //! @@ -21,36 +21,19 @@ //! //! you provide the definition for the resource as follows //! -//! ```ignore -//! use pulumi_wasm_rust::Output; -//! use pulumi_wasm_rust::{add_export, pulumi_main}; -//! #[pulumi_main] -//! fn test_main() -> Result<(), Error> { -//! let foo = service::create( -//! "foo", -//! ServiceArgs::builder() -//! .endpoint_spec( -//! ServiceEndpointSpec::builder() -//! .ports( -//! vec![ -//! ServiceEndpointSpecPort::builder().publishedPort(8080) -//! .targetPort(80).build_struct(), -//! ], -//! ) -//! .build_struct(), -//! ) -//! .task_spec( -//! ServiceTaskSpec::builder() -//! .containerSpec( -//! ServiceTaskSpecContainerSpec::builder() -//! .image("nginx") -//! .build_struct(), -//! ) -//! .build_struct(), -//! ) -//! .build_struct(), -//! ); -//! } +//! ```yaml +//! resources: +//! foo: +//! type: docker:Service +//! name: foo +//! properties: +//! taskSpec: +//! containerSpec: +//! image: "nginx" +//! endpointSpec: +//! ports: +//! - targetPort: 80 +//! publishedPort: 8080 //! ``` //! //! then the import command is as follows 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..76ff2eb20 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 - //! ``` //! @@ -18,18 +18,13 @@ //! //! you provide the definition for the resource as follows //! -//! ```ignore -//! use pulumi_wasm_rust::Output; -//! use pulumi_wasm_rust::{add_export, pulumi_main}; -//! #[pulumi_main] -//! fn test_main() -> Result<(), Error> { -//! let foo = service_config::create( -//! "foo", -//! ServiceConfigArgs::builder() -//! .data("base64encode(\"{\\\"a\\\": \\\"b\\\"}\")") -//! .build_struct(), -//! ); -//! } +//! ```yaml +//! resources: +//! foo: +//! type: docker:ServiceConfig +//! name: foo +//! properties: +//! data: 'base64encode("{\"a\": \"b\"}")' //! ``` //! //! then the import command is as follows 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/providers/pulumi_wasm_provider_random_rust/src/resource/random_bytes.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_bytes.rs index e4d4c1884..0ff6bc597 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_bytes.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_bytes.rs @@ -1,7 +1,5 @@ //! The resource `random.RandomBytes` generates random bytes that are intended to be used as a secret, or key. Use this in preference to `random.RandomId` when the output is considered sensitive, and should not be displayed in the CLI. //! -//! ## Example Usage -//! //! ```yaml //! resources: //! jwtSecretRandomBytes: diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_id.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_id.rs index cd6d1963e..4ead79fd1 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_id.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_id.rs @@ -13,8 +13,6 @@ //! unique names during the brief period where both the old and new resources //! exist concurrently. //! -//! ## Example Usage -//! //! ```yaml //! resources: //! # The following example shows how to generate a unique name for an AWS EC2 diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_integer.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_integer.rs index 82e9202c0..0ace882b8 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_integer.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_integer.rs @@ -2,8 +2,6 @@ //! //! This resource can be used in conjunction with resources that have the `create_before_destroy` lifecycle flag set, to avoid conflicts with unique names during the brief period where both the old and new resources exist concurrently. //! -//! ## Example Usage -//! //! ```yaml //! resources: //! # The following example shows how to generate a random priority diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_password.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_password.rs index 0b03b51f7..5721d7084 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_password.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_password.rs @@ -2,8 +2,6 @@ //! //! This resource *does* use a cryptographic random number generator. //! -//! ## Example Usage -//! //! ```yaml //! resources: //! password: diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_pet.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_pet.rs index 548dd09b1..b473644ee 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_pet.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_pet.rs @@ -2,8 +2,6 @@ //! //! This resource can be used in conjunction with resources that have the `create_before_destroy` lifecycle flag set, to avoid conflicts with unique names during the brief period where both the old and new resources exist concurrently. //! -//! ## Example Usage -//! //! ```yaml //! resources: //! # The following example shows how to generate a unique pet name diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_shuffle.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_shuffle.rs index 8d4f55930..ce5d36ebb 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_shuffle.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_shuffle.rs @@ -1,7 +1,5 @@ //! The resource `random.RandomShuffle` generates a random permutation of a list of strings given as an argument. //! -//! ## Example Usage -//! //! ```yaml //! resources: //! az: diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_string.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_string.rs index 849e3514c..bad7ac1e0 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_string.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_string.rs @@ -4,8 +4,6 @@ //! //! Historically this resource's intended usage has been ambiguous as the original example used it in a password. For backwards compatibility it will continue to exist. For unique ids please use random_id, for sensitive random values please use random_password. //! -//! ## Example Usage -//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_uuid.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_uuid.rs index 76cd6d6f3..38c0ee093 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_uuid.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_uuid.rs @@ -2,8 +2,6 @@ //! //! This resource uses [hashicorp/go-uuid](https://github.com/hashicorp/go-uuid) to generate a UUID-formatted string for use with services needing a unique string identifier. //! -//! ## Example Usage -//! //! ```yaml //! resources: //! testRandomUuid: diff --git a/pulumi_wasm_generator_lib/src/description.rs b/pulumi_wasm_generator_lib/src/description.rs new file mode 100644 index 000000000..394eaad23 --- /dev/null +++ b/pulumi_wasm_generator_lib/src/description.rs @@ -0,0 +1,158 @@ +use crate::code_generation::generate_code_from_string; +use crate::description::State::{Examples, Initial, Language, 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), + Language => Self::language_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![]), + "```" | "```sh" | "```shell" | "```text" => (Shell, 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" => (Language, vec![]), + "{{% example %}}" | "{{% /example %}}" => (Examples, vec![]), + "{{% /examples %}}" | "" => (Initial, vec![]), + _ => (Examples, vec![]), + } + } + + fn language_transition(line: &str) -> (State, Vec) { + match line.trim() { + "```" => (Examples, vec![]), + _ => (Language, vec![]), + } + } + + fn shell_transition(line: &str) -> (State, Vec) { + match line.trim() { + "```" => (Initial, vec![line.to_string()]), + _ => (Shell, 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), + Language, + 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/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/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>> = From 5d2029d5893a1d160a85bc3ad3cabbaea23a42bf Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Fri, 6 Dec 2024 18:36:49 +0100 Subject: [PATCH 2/6] Generate YAML variables --- .../src/resource/zone_settings_override.rs | 2 +- .../src/function/get_plugin.rs | 1 - .../src/resource/image.rs | 464 ------------------ .../src/resource/network.rs | 13 +- .../src/resource/secret.rs | 2 +- .../src/resource/service.rs | 43 +- .../src/resource/service_config.rs | 19 +- pulumi_wasm_generator_lib/src/description.rs | 33 +- .../src/dockerfixes/getPlugin/1_fixed.md | 5 +- .../src/dockerfixes/network/1_fixed.md | 2 + .../src/dockerfixes/service/1_fixed.md | 2 + .../src/dockerfixes/serviceConfig/1_fixed.md | 2 + 12 files changed, 84 insertions(+), 504 deletions(-) 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 2e897e32d..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 @@ -11,7 +11,7 @@ //! for a feature that is not available on the plan configured for the zone will //! result in an error: //! -//! ``` +//! ```sh //! Error: invalid zone setting "\" (value: \) found - cannot be set as it is read only //! ``` //! 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/resource/image.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource/image.rs index 676576ed4..629e06118 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/image.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/image.rs @@ -53,94 +53,6 @@ //! ``` //! //! -//! {{% examples %}} -//! ## Example Usage -//! {{% example %}} -//! ### A Docker image build -//! -//! ```typescript -//! import * as pulumi from "@pulumi/pulumi"; -//! import * as docker from "@pulumi/docker"; -//! -//! const demoImage = new docker.Image("demo-image", { -//! build: { -//! context: ".", -//! dockerfile: "Dockerfile", -//! platform: "linux/amd64", -//! }, -//! imageName: "username/image:tag1", -//! skipPush: true, -//! }); -//! export const imageName = demoImage.imageName; -//! ``` -//! ```python -//! import pulumi -//! import pulumi_docker as docker -//! -//! demo_image = docker.Image("demo-image", -//! build=docker.DockerBuildArgs( -//! context=".", -//! dockerfile="Dockerfile", -//! platform="linux/amd64", -//! ), -//! image_name="username/image:tag1", -//! skip_push=True) -//! pulumi.export("imageName", demo_image.image_name) -//! ``` -//! ```csharp -//! using System.Collections.Generic; -//! using System.Linq; -//! using Pulumi; -//! using Docker = Pulumi.Docker; -//! -//! return await Deployment.RunAsync(() => -//! { -//! var demoImage = new Docker.Image("demo-image", new() -//! { -//! Build = new Docker.Inputs.DockerBuildArgs -//! { -//! Context = ".", -//! Dockerfile = "Dockerfile", -//! Platform = "linux/amd64", -//! }, -//! ImageName = "username/image:tag1", -//! SkipPush = true, -//! }); -//! -//! return new Dictionary -//! { -//! ["imageName"] = demoImage.ImageName, -//! }; -//! }); -//! -//! ``` -//! ```go -//! package main -//! -//! import ( -//! "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" -//! "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -//! ) -//! -//! func main() { -//! pulumi.Run(func(ctx *pulumi.Context) error { -//! demoImage, err := docker.NewImage(ctx, "demo-image", &docker.ImageArgs{ -//! Build: &docker.DockerBuildArgs{ -//! Context: pulumi.String("."), -//! Dockerfile: pulumi.String("Dockerfile"), -//! Platform: pulumi.String("linux/amd64"), -//! }, -//! ImageName: pulumi.String("username/image:tag1"), -//! SkipPush: pulumi.Bool(true), -//! }) -//! if err != nil { -//! return err -//! } -//! ctx.Export("imageName", demoImage.ImageName) -//! return nil -//! }) -//! } -//! ``` //! ```yaml //! config: {} //! description: A Docker image build @@ -162,125 +74,6 @@ //! runtime: yaml //! variables: {} //! ``` -//! ```java -//! package generated_program; -//! -//! import com.pulumi.Context; -//! import com.pulumi.Pulumi; -//! import com.pulumi.core.Output; -//! import com.pulumi.docker.Image; -//! import com.pulumi.docker.ImageArgs; -//! import com.pulumi.docker.inputs.DockerBuildArgs; -//! import java.util.List; -//! import java.util.ArrayList; -//! import java.util.Map; -//! import java.io.File; -//! import java.nio.file.Files; -//! import java.nio.file.Paths; -//! -//! public class App { -//! public static void main(String[] args) { -//! Pulumi.run(App::stack); -//! } -//! -//! public static void stack(Context ctx) { -//! var demoImage = new Image("demoImage", ImageArgs.builder() -//! .build(DockerBuildArgs.builder() -//! .context(".") -//! .dockerfile("Dockerfile") -//! .platform("linux/amd64") -//! .build()) -//! .imageName("username/image:tag1") -//! .skipPush(true) -//! .build()); -//! -//! ctx.export("imageName", demoImage.imageName()); -//! } -//! } -//! ``` -//! {{% /example %}} -//! {{% example %}} -//! ### A Docker image build and push -//! -//! ```typescript -//! import * as pulumi from "@pulumi/pulumi"; -//! import * as docker from "@pulumi/docker"; -//! -//! const demoPushImage = new docker.Image("demo-push-image", { -//! build: { -//! context: ".", -//! dockerfile: "Dockerfile", -//! }, -//! imageName: "docker.io/username/push-image:tag1", -//! }); -//! export const imageName = demoPushImage.imageName; -//! export const repoDigest = demoPushImage.repoDigest; -//! ``` -//! ```python -//! import pulumi -//! import pulumi_docker as docker -//! -//! demo_push_image = docker.Image("demo-push-image", -//! build=docker.DockerBuildArgs( -//! context=".", -//! dockerfile="Dockerfile", -//! ), -//! image_name="docker.io/username/push-image:tag1") -//! pulumi.export("imageName", demo_push_image.image_name) -//! pulumi.export("repoDigest", demo_push_image.repo_digest) -//! ``` -//! ```csharp -//! using System.Collections.Generic; -//! using System.Linq; -//! using Pulumi; -//! using Docker = Pulumi.Docker; -//! -//! return await Deployment.RunAsync(() => -//! { -//! var demoPushImage = new Docker.Image("demo-push-image", new() -//! { -//! Build = new Docker.Inputs.DockerBuildArgs -//! { -//! Context = ".", -//! Dockerfile = "Dockerfile", -//! }, -//! ImageName = "docker.io/username/push-image:tag1", -//! }); -//! -//! return new Dictionary -//! { -//! ["imageName"] = demoPushImage.ImageName, -//! ["repoDigest"] = demoPushImage.RepoDigest, -//! }; -//! }); -//! -//! ``` -//! ```go -//! package main -//! -//! import ( -//! "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" -//! "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -//! ) -//! -//! func main() { -//! pulumi.Run(func(ctx *pulumi.Context) error { -//! demoPushImage, err := docker.NewImage(ctx, "demo-push-image", &docker.ImageArgs{ -//! Build: &docker.DockerBuildArgs{ -//! Context: pulumi.String("."), -//! Dockerfile: pulumi.String("Dockerfile"), -//! }, -//! ImageName: pulumi.String("docker.io/username/push-image:tag1"), -//! }) -//! if err != nil { -//! return err -//! } -//! ctx.Export("imageName", demoPushImage.ImageName) -//! ctx.Export("repoDigest", demoPushImage.RepoDigest) -//! return nil -//! }) -//! } -//! ``` //! ```yaml //! config: {} //! description: A Docker image build and push @@ -301,205 +94,6 @@ //! runtime: yaml //! variables: {} //! ``` -//! ```java -//! package generated_program; -//! -//! import com.pulumi.Context; -//! import com.pulumi.Pulumi; -//! import com.pulumi.core.Output; -//! import com.pulumi.docker.Image; -//! import com.pulumi.docker.ImageArgs; -//! import com.pulumi.docker.inputs.DockerBuildArgs; -//! import java.util.List; -//! import java.util.ArrayList; -//! import java.util.Map; -//! import java.io.File; -//! import java.nio.file.Files; -//! import java.nio.file.Paths; -//! -//! public class App { -//! public static void main(String[] args) { -//! Pulumi.run(App::stack); -//! } -//! -//! public static void stack(Context ctx) { -//! var demoPushImage = new Image("demoPushImage", ImageArgs.builder() -//! .build(DockerBuildArgs.builder() -//! .context(".") -//! .dockerfile("Dockerfile") -//! .build()) -//! .imageName("docker.io/username/push-image:tag1") -//! .build()); -//! -//! ctx.export("imageName", demoPushImage.imageName()); -//! ctx.export("repoDigest", demoPushImage.repoDigest()); -//! } -//! } -//! ``` -//! {{% /example %}} -//! {{% example %}} -//! ### Docker image build using caching with AWS Elastic Container Registry -//! -//! ```typescript -//! import * as pulumi from "@pulumi/pulumi"; -//! import * as aws from "@pulumi/aws"; -//! import * as docker from "@pulumi/docker"; -//! -//! const ecrRepository = new aws.ecr.Repository("ecr-repository", {name: "docker-repository"}); -//! const authToken = aws.ecr.getAuthorizationTokenOutput({ -//! registryId: ecrRepository.registryId, -//! }); -//! const myAppImage = new docker.Image("my-app-image", { -//! build: { -//! args: { -//! BUILDKIT_INLINE_CACHE: "1", -//! }, -//! cacheFrom: { -//! images: [pulumi.interpolate`${ecrRepository.repositoryUrl}:latest`], -//! }, -//! context: "app/", -//! dockerfile: "Dockerfile", -//! }, -//! imageName: pulumi.interpolate`${ecrRepository.repositoryUrl}:latest`, -//! registry: { -//! password: pulumi.secret(authToken.apply(authToken => authToken.password)), -//! server: ecrRepository.repositoryUrl, -//! }, -//! }); -//! export const imageName = myAppImage.imageName; -//! ``` -//! ```python -//! import pulumi -//! import pulumi_aws as aws -//! import pulumi_docker as docker -//! -//! ecr_repository = aws.ecr.Repository("ecr-repository", name="docker-repository") -//! auth_token = aws.ecr.get_authorization_token_output(registry_id=ecr_repository.registry_id) -//! my_app_image = docker.Image("my-app-image", -//! build=docker.DockerBuildArgs( -//! args={ -//! "BUILDKIT_INLINE_CACHE": "1", -//! }, -//! cache_from=docker.CacheFromArgs( -//! images=[ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:latest")], -//! ), -//! context="app/", -//! dockerfile="Dockerfile", -//! ), -//! image_name=ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:latest"), -//! registry=docker.RegistryArgs( -//! password=pulumi.Output.secret(auth_token.password), -//! server=ecr_repository.repository_url, -//! )) -//! pulumi.export("imageName", my_app_image.image_name) -//! ``` -//! ```csharp -//! using System.Collections.Generic; -//! using System.Linq; -//! using Pulumi; -//! using Aws = Pulumi.Aws; -//! using Docker = Pulumi.Docker; -//! -//! return await Deployment.RunAsync(() => -//! { -//! var ecrRepository = new Aws.Ecr.Repository("ecr-repository", new() -//! { -//! Name = "docker-repository", -//! }); -//! -//! var authToken = Aws.Ecr.GetAuthorizationToken.Invoke(new() -//! { -//! RegistryId = ecrRepository.RegistryId, -//! }); -//! -//! var myAppImage = new Docker.Image("my-app-image", new() -//! { -//! Build = new Docker.Inputs.DockerBuildArgs -//! { -//! Args = -//! { -//! { "BUILDKIT_INLINE_CACHE", "1" }, -//! }, -//! CacheFrom = new Docker.Inputs.CacheFromArgs -//! { -//! Images = new[] -//! { -//! ecrRepository.RepositoryUrl.Apply(repositoryUrl => $"{repositoryUrl}:latest"), -//! }, -//! }, -//! Context = "app/", -//! Dockerfile = "Dockerfile", -//! }, -//! ImageName = ecrRepository.RepositoryUrl.Apply(repositoryUrl => $"{repositoryUrl}:latest"), -//! Registry = new Docker.Inputs.RegistryArgs -//! { -//! Password = Output.CreateSecret(authToken.Apply(getAuthorizationTokenResult => getAuthorizationTokenResult.Password)), -//! Server = ecrRepository.RepositoryUrl, -//! }, -//! }); -//! -//! return new Dictionary -//! { -//! ["imageName"] = myAppImage.ImageName, -//! }; -//! }); -//! -//! ``` -//! ```go -//! package main -//! -//! import ( -//! "fmt" -//! -//! "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ecr" -//! "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" -//! "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -//! ) -//! -//! func main() { -//! pulumi.Run(func(ctx *pulumi.Context) error { -//! ecrRepository, err := ecr.NewRepository(ctx, "ecr-repository", &ecr.RepositoryArgs{ -//! Name: pulumi.String("docker-repository"), -//! }) -//! if err != nil { -//! return err -//! } -//! authToken := ecr.GetAuthorizationTokenOutput(ctx, ecr.GetAuthorizationTokenOutputArgs{ -//! RegistryId: ecrRepository.RegistryId, -//! }, nil) -//! myAppImage, err := docker.NewImage(ctx, "my-app-image", &docker.ImageArgs{ -//! Build: &docker.DockerBuildArgs{ -//! Args: pulumi.StringMap{ -//! "BUILDKIT_INLINE_CACHE": pulumi.String("1"), -//! }, -//! CacheFrom: &docker.CacheFromArgs{ -//! Images: pulumi.StringArray{ -//! ecrRepository.RepositoryUrl.ApplyT(func(repositoryUrl string) (string, error) { -//! return fmt.Sprintf("%v:latest", repositoryUrl), nil -//! }).(pulumi.StringOutput), -//! }, -//! }, -//! Context: pulumi.String("app/"), -//! Dockerfile: pulumi.String("Dockerfile"), -//! }, -//! ImageName: ecrRepository.RepositoryUrl.ApplyT(func(repositoryUrl string) (string, error) { -//! return fmt.Sprintf("%v:latest", repositoryUrl), nil -//! }).(pulumi.StringOutput), -//! Registry: &docker.RegistryArgs{ -//! Password: pulumi.ToSecret(authToken.ApplyT(func(authToken ecr.GetAuthorizationTokenResult) (*string, error) { -//! return &authToken.Password, nil -//! }).(pulumi.StringPtrOutput)).(pulumi.StringOutput), -//! Server: ecrRepository.RepositoryUrl, -//! }, -//! }) -//! if err != nil { -//! return err -//! } -//! ctx.Export("imageName", myAppImage.ImageName) -//! return nil -//! }) -//! } -//! ``` //! ```yaml //! config: {} //! description: Docker image build using caching with AWS Elastic Container Registry @@ -535,64 +129,6 @@ //! fn::aws:ecr:getAuthorizationToken: //! registryId: ${ecr-repository.registryId} //! ``` -//! ```java -//! package generated_program; -//! -//! import com.pulumi.Context; -//! import com.pulumi.Pulumi; -//! import com.pulumi.core.Output; -//! import com.pulumi.aws.ecr.Repository; -//! import com.pulumi.aws.ecr.RepositoryArgs; -//! import com.pulumi.aws.ecr.EcrFunctions; -//! import com.pulumi.aws.ecr.inputs.GetAuthorizationTokenArgs; -//! import com.pulumi.docker.Image; -//! import com.pulumi.docker.ImageArgs; -//! import com.pulumi.docker.inputs.DockerBuildArgs; -//! import com.pulumi.docker.inputs.CacheFromArgs; -//! import com.pulumi.docker.inputs.RegistryArgs; -//! import java.util.List; -//! import java.util.ArrayList; -//! import java.util.Map; -//! import java.io.File; -//! import java.nio.file.Files; -//! import java.nio.file.Paths; -//! -//! public class App { -//! public static void main(String[] args) { -//! Pulumi.run(App::stack); -//! } -//! -//! public static void stack(Context ctx) { -//! var ecrRepository = new Repository("ecrRepository", RepositoryArgs.builder() -//! .name("docker-repository") -//! .build()); -//! -//! final var authToken = EcrFunctions.getAuthorizationToken(GetAuthorizationTokenArgs.builder() -//! .registryId(ecrRepository.registryId()) -//! .build()); -//! -//! var myAppImage = new Image("myAppImage", ImageArgs.builder() -//! .build(DockerBuildArgs.builder() -//! .args(Map.of("BUILDKIT_INLINE_CACHE", "1")) -//! .cacheFrom(CacheFromArgs.builder() -//! .images(ecrRepository.repositoryUrl().applyValue(repositoryUrl -> String.format("%s:latest", repositoryUrl))) -//! .build()) -//! .context("app/") -//! .dockerfile("Dockerfile") -//! .build()) -//! .imageName(ecrRepository.repositoryUrl().applyValue(repositoryUrl -> String.format("%s:latest", repositoryUrl))) -//! .registry(RegistryArgs.builder() -//! .password(Output.ofSecret(authToken.applyValue(getAuthorizationTokenResult -> getAuthorizationTokenResult).applyValue(authToken -> authToken.applyValue(getAuthorizationTokenResult -> getAuthorizationTokenResult.password())))) -//! .server(ecrRepository.repositoryUrl()) -//! .build()) -//! .build()); -//! -//! ctx.export("imageName", myAppImage.imageName()); -//! } -//! } -//! ``` -//! {{% /example %}} -//! {{% /examples %}} #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] 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 076dd4952..a699dd37c 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/network.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/network.rs @@ -33,12 +33,13 @@ //! //! you provide the definition for the resource as follows //! -//! ```yaml -//! resources: -//! foo: -//! type: docker:Network -//! properties: -//! name: "foo" +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let foo = network::create("foo", NetworkArgs::builder().name("foo").build_struct()); +//! } //! ``` //! //! then the import command is as follows diff --git a/providers/pulumi_wasm_provider_docker_rust/src/resource/secret.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource/secret.rs index e2b1f5fb9..6da96c6bc 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/secret.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/secret.rs @@ -2,7 +2,7 @@ //! //! ## Import //! -//! ``` +//! ```sh //! # Docker secret cannot be imported as the secret data, once set, is never exposed again. //! ``` 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 87f053ca2..d5906964a 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/service.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/service.rs @@ -21,19 +21,36 @@ //! //! you provide the definition for the resource as follows //! -//! ```yaml -//! resources: -//! foo: -//! type: docker:Service -//! name: foo -//! properties: -//! taskSpec: -//! containerSpec: -//! image: "nginx" -//! endpointSpec: -//! ports: -//! - targetPort: 80 -//! publishedPort: 8080 +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let foo = service::create( +//! "foo", +//! ServiceArgs::builder() +//! .endpoint_spec( +//! ServiceEndpointSpec::builder() +//! .ports( +//! vec![ +//! ServiceEndpointSpecPort::builder().publishedPort(8080) +//! .targetPort(80).build_struct(), +//! ], +//! ) +//! .build_struct(), +//! ) +//! .task_spec( +//! ServiceTaskSpec::builder() +//! .containerSpec( +//! ServiceTaskSpecContainerSpec::builder() +//! .image("nginx") +//! .build_struct(), +//! ) +//! .build_struct(), +//! ) +//! .build_struct(), +//! ); +//! } //! ``` //! //! then the import command is as follows 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 76ff2eb20..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 @@ -18,13 +18,18 @@ //! //! you provide the definition for the resource as follows //! -//! ```yaml -//! resources: -//! foo: -//! type: docker:ServiceConfig -//! name: foo -//! properties: -//! data: 'base64encode("{\"a\": \"b\"}")' +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let foo = service_config::create( +//! "foo", +//! ServiceConfigArgs::builder() +//! .data("base64encode(\"{\\\"a\\\": \\\"b\\\"}\")") +//! .build_struct(), +//! ); +//! } //! ``` //! //! then the import command is as follows diff --git a/pulumi_wasm_generator_lib/src/description.rs b/pulumi_wasm_generator_lib/src/description.rs index 394eaad23..3f787d058 100644 --- a/pulumi_wasm_generator_lib/src/description.rs +++ b/pulumi_wasm_generator_lib/src/description.rs @@ -1,5 +1,7 @@ use crate::code_generation::generate_code_from_string; -use crate::description::State::{Examples, Initial, Language, Shell, YAML}; +use crate::description::State::{ + Examples, Initial, LanguageInExamples, LanguageOutsideExamples, Shell, Yaml, +}; use crate::model::Package; struct DescriptionState { @@ -30,8 +32,9 @@ impl<'a> Description<'a> { 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), - Language => Self::language_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); @@ -49,15 +52,17 @@ impl<'a> Description<'a> { fn initial_transition(line: &str) -> (State, Vec) { match line.trim() { "" | "{{% examples %}}" => (Examples, vec![]), - "```" | "```sh" | "```shell" | "```text" => (Shell, vec![line.to_string()]), + // Rustdoc treats ``` as rust code block + "```" => (Shell, vec!["```sh".to_string()]), + 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" => (Language, vec![]), + "```yaml" => (Yaml(vec![]), vec![]), + "```typescript" | "```python" | "```java" | "```go" => (LanguageInExamples, vec![]), "{{% example %}}" | "{{% /example %}}" => (Examples, vec![]), "{{% /examples %}}" | "" => (Initial, vec![]), _ => (Examples, vec![]), @@ -67,7 +72,7 @@ impl<'a> Description<'a> { fn language_transition(line: &str) -> (State, Vec) { match line.trim() { "```" => (Examples, vec![]), - _ => (Language, vec![]), + _ => (LanguageInExamples, vec![]), } } @@ -78,6 +83,13 @@ impl<'a> Description<'a> { } } + 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, @@ -115,7 +127,7 @@ impl<'a> Description<'a> { } _ => { yaml_lines.push(line.to_string()); - (YAML(yaml_lines), vec![]) + (Yaml(yaml_lines), vec![]) } } } @@ -124,8 +136,9 @@ impl<'a> Description<'a> { enum State { Initial, Examples, - YAML(Vec), - Language, + Yaml(Vec), + LanguageInExamples, + LanguageOutsideExamples, Shell, } 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 From 2ab399c4c72243b94608f699f49ce7d65163edd0 Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Fri, 6 Dec 2024 18:40:00 +0100 Subject: [PATCH 3/6] Generate YAML variables --- .../src/resource/container.rs | 28 ++++++++++++------- pulumi_wasm_generator_lib/src/description.rs | 2 +- .../src/dockerfixes/container/1_fixed.md | 2 ++ 3 files changed, 21 insertions(+), 11 deletions(-) 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 99fce1eff..1e8d0515a 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/container.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/container.rs @@ -37,16 +37,24 @@ //! //! you provide the definition for the resource as follows //! -//! ```yaml -//! resources: -//! foo: -//! type: docker:Container -//! properties: -//! name: "foo" -//! image: "nginx" -//! ports: -//! - internal: 80 -//! external: 8080 +//! ```ignore +//! use pulumi_wasm_rust::Output; +//! use pulumi_wasm_rust::{add_export, pulumi_main}; +//! #[pulumi_main] +//! fn test_main() -> Result<(), Error> { +//! let foo = container::create( +//! "foo", +//! ContainerArgs::builder() +//! .image("nginx") +//! .name("foo") +//! .ports( +//! vec![ +//! ContainerPort::builder().external(8080).internal(80).build_struct(), +//! ], +//! ) +//! .build_struct(), +//! ); +//! } //! ``` //! //! then the import command is as follows diff --git a/pulumi_wasm_generator_lib/src/description.rs b/pulumi_wasm_generator_lib/src/description.rs index 3f787d058..910ebd95f 100644 --- a/pulumi_wasm_generator_lib/src/description.rs +++ b/pulumi_wasm_generator_lib/src/description.rs @@ -53,7 +53,7 @@ impl<'a> Description<'a> { match line.trim() { "" | "{{% examples %}}" => (Examples, vec![]), // Rustdoc treats ``` as rust code block - "```" => (Shell, vec!["```sh".to_string()]), + "```" => (LanguageOutsideExamples, vec!["```sh".to_string()]), l if l.starts_with("```") => (LanguageOutsideExamples, vec![line.to_string()]), _ => (Initial, vec![line.to_string()]), } 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 From 58a7138fb56ef7076fd3bbf423c3a2d8f9db94ec Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Fri, 6 Dec 2024 18:42:40 +0100 Subject: [PATCH 4/6] Generate YAML variables --- pulumi_wasm_generator_lib/src/description.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pulumi_wasm_generator_lib/src/description.rs b/pulumi_wasm_generator_lib/src/description.rs index 910ebd95f..e701bcd50 100644 --- a/pulumi_wasm_generator_lib/src/description.rs +++ b/pulumi_wasm_generator_lib/src/description.rs @@ -52,8 +52,8 @@ impl<'a> Description<'a> { fn initial_transition(line: &str) -> (State, Vec) { match line.trim() { "" | "{{% examples %}}" => (Examples, vec![]), - // Rustdoc treats ``` as rust code block - "```" => (LanguageOutsideExamples, vec!["```sh".to_string()]), + // 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()]), } From 4be001a600c9616f645df8492c0dfde0f720b645 Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Fri, 6 Dec 2024 18:45:09 +0100 Subject: [PATCH 5/6] Generate YAML variables --- .../pulumi_wasm_provider_docker_rust/src/resource/image.rs | 7 +++++++ .../src/resource/random_bytes.rs | 2 ++ .../src/resource/random_id.rs | 2 ++ .../src/resource/random_integer.rs | 2 ++ .../src/resource/random_password.rs | 2 ++ .../src/resource/random_pet.rs | 2 ++ .../src/resource/random_shuffle.rs | 2 ++ .../src/resource/random_string.rs | 2 ++ .../src/resource/random_uuid.rs | 2 ++ pulumi_wasm_generator_lib/src/description.rs | 4 ++-- 10 files changed, 25 insertions(+), 2 deletions(-) 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 629e06118..09789cb6d 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource/image.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource/image.rs @@ -53,6 +53,9 @@ //! ``` //! //! +//! ## Example Usage +//! ### A Docker image build +//! //! ```yaml //! config: {} //! description: A Docker image build @@ -74,6 +77,8 @@ //! runtime: yaml //! variables: {} //! ``` +//! ### A Docker image build and push +//! //! ```yaml //! config: {} //! description: A Docker image build and push @@ -94,6 +99,8 @@ //! runtime: yaml //! variables: {} //! ``` +//! ### Docker image build using caching with AWS Elastic Container Registry +//! //! ```yaml //! config: {} //! description: Docker image build using caching with AWS Elastic Container Registry diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_bytes.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_bytes.rs index 0ff6bc597..e4d4c1884 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_bytes.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_bytes.rs @@ -1,5 +1,7 @@ //! The resource `random.RandomBytes` generates random bytes that are intended to be used as a secret, or key. Use this in preference to `random.RandomId` when the output is considered sensitive, and should not be displayed in the CLI. //! +//! ## Example Usage +//! //! ```yaml //! resources: //! jwtSecretRandomBytes: diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_id.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_id.rs index 4ead79fd1..cd6d1963e 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_id.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_id.rs @@ -13,6 +13,8 @@ //! unique names during the brief period where both the old and new resources //! exist concurrently. //! +//! ## Example Usage +//! //! ```yaml //! resources: //! # The following example shows how to generate a unique name for an AWS EC2 diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_integer.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_integer.rs index 0ace882b8..82e9202c0 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_integer.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_integer.rs @@ -2,6 +2,8 @@ //! //! This resource can be used in conjunction with resources that have the `create_before_destroy` lifecycle flag set, to avoid conflicts with unique names during the brief period where both the old and new resources exist concurrently. //! +//! ## Example Usage +//! //! ```yaml //! resources: //! # The following example shows how to generate a random priority diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_password.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_password.rs index 5721d7084..0b03b51f7 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_password.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_password.rs @@ -2,6 +2,8 @@ //! //! This resource *does* use a cryptographic random number generator. //! +//! ## Example Usage +//! //! ```yaml //! resources: //! password: diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_pet.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_pet.rs index b473644ee..548dd09b1 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_pet.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_pet.rs @@ -2,6 +2,8 @@ //! //! This resource can be used in conjunction with resources that have the `create_before_destroy` lifecycle flag set, to avoid conflicts with unique names during the brief period where both the old and new resources exist concurrently. //! +//! ## Example Usage +//! //! ```yaml //! resources: //! # The following example shows how to generate a unique pet name diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_shuffle.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_shuffle.rs index ce5d36ebb..8d4f55930 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_shuffle.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_shuffle.rs @@ -1,5 +1,7 @@ //! The resource `random.RandomShuffle` generates a random permutation of a list of strings given as an argument. //! +//! ## Example Usage +//! //! ```yaml //! resources: //! az: diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_string.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_string.rs index bad7ac1e0..849e3514c 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_string.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_string.rs @@ -4,6 +4,8 @@ //! //! Historically this resource's intended usage has been ambiguous as the original example used it in a password. For backwards compatibility it will continue to exist. For unique ids please use random_id, for sensitive random values please use random_password. //! +//! ## Example Usage +//! //! ```ignore //! use pulumi_wasm_rust::Output; //! use pulumi_wasm_rust::{add_export, pulumi_main}; diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource/random_uuid.rs b/providers/pulumi_wasm_provider_random_rust/src/resource/random_uuid.rs index 38c0ee093..76cd6d6f3 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource/random_uuid.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource/random_uuid.rs @@ -2,6 +2,8 @@ //! //! This resource uses [hashicorp/go-uuid](https://github.com/hashicorp/go-uuid) to generate a UUID-formatted string for use with services needing a unique string identifier. //! +//! ## Example Usage +//! //! ```yaml //! resources: //! testRandomUuid: diff --git a/pulumi_wasm_generator_lib/src/description.rs b/pulumi_wasm_generator_lib/src/description.rs index e701bcd50..6481077bc 100644 --- a/pulumi_wasm_generator_lib/src/description.rs +++ b/pulumi_wasm_generator_lib/src/description.rs @@ -62,10 +62,10 @@ impl<'a> Description<'a> { fn examples_transition(line: &str) -> (State, Vec) { match line.trim() { "```yaml" => (Yaml(vec![]), vec![]), - "```typescript" | "```python" | "```java" | "```go" => (LanguageInExamples, vec![]), + "```typescript" | "```python" | "```java" | "```go" | "```csharp" => (LanguageInExamples, vec![]), "{{% example %}}" | "{{% /example %}}" => (Examples, vec![]), "{{% /examples %}}" | "" => (Initial, vec![]), - _ => (Examples, vec![]), + _ => (Examples, vec![line.to_string()]), } } From 8cf88c15de7647eb2205278fc9300e91020f6a54 Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Fri, 6 Dec 2024 18:49:11 +0100 Subject: [PATCH 6/6] Generate YAML variables --- pulumi_wasm_generator_lib/src/description.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pulumi_wasm_generator_lib/src/description.rs b/pulumi_wasm_generator_lib/src/description.rs index 6481077bc..b6d19ef70 100644 --- a/pulumi_wasm_generator_lib/src/description.rs +++ b/pulumi_wasm_generator_lib/src/description.rs @@ -62,7 +62,9 @@ impl<'a> Description<'a> { fn examples_transition(line: &str) -> (State, Vec) { match line.trim() { "```yaml" => (Yaml(vec![]), vec![]), - "```typescript" | "```python" | "```java" | "```go" | "```csharp" => (LanguageInExamples, vec![]), + "```typescript" | "```python" | "```java" | "```go" | "```csharp" => { + (LanguageInExamples, vec![]) + } "{{% example %}}" | "{{% /example %}}" => (Examples, vec![]), "{{% /examples %}}" | "" => (Initial, vec![]), _ => (Examples, vec![line.to_string()]),