-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into string_const
- Loading branch information
Showing
49 changed files
with
1,953 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,12 @@ jobs: | |
workspaces: | | ||
./ | ||
pulumi_wasm_generator_lib/tests/output/cyclic-types/ | ||
pulumi_wasm_generator_lib/tests/output/functions-secrets/ | ||
pulumi_wasm_generator_lib/tests/output/mini-awsnative/ | ||
pulumi_wasm_generator_lib/tests/output/output-funcs/ | ||
pulumi_wasm_generator_lib/tests/output/output-funcs-edgeorder/ | ||
pulumi_wasm_generator_lib/tests/output/unions-inline/ | ||
pulumi_wasm_generator_lib/tests/output/unions-inside-arrays/ | ||
- name: Regenerate provider list | ||
run: just regenerate-provider-list | ||
- name: Check | ||
|
@@ -204,7 +209,12 @@ jobs: | |
workspaces: | | ||
./ | ||
pulumi_wasm_generator_lib/tests/output/cyclic-types/ | ||
pulumi_wasm_generator_lib/tests/output/functions-secrets/ | ||
pulumi_wasm_generator_lib/tests/output/mini-awsnative/ | ||
pulumi_wasm_generator_lib/tests/output/output-funcs/ | ||
pulumi_wasm_generator_lib/tests/output/output-funcs-edgeorder/ | ||
pulumi_wasm_generator_lib/tests/output/unions-inline/ | ||
pulumi_wasm_generator_lib/tests/output/unions-inside-arrays/ | ||
- uses: benjlevesque/[email protected] | ||
id: short-sha | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
pulumi_wasm_generator_lib/tests/output/output-funcs-edgeorder/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "main" | ||
version = "0.0.1" | ||
edition = "2021" | ||
|
||
[workspace] | ||
members = [ | ||
"provider", | ||
"lib" | ||
] | ||
|
||
[workspace.dependencies] | ||
wit-bindgen-rt = "0.33.0" | ||
wit-bindgen = "0.33.0" | ||
automod = "1.0.14" | ||
pulumi_wasm_common = { path = "../../../../pulumi_wasm_common" } | ||
pulumi_wasm_rust = { path = "../../../../pulumi_wasm_rust" } | ||
pulumi_wasm_wit = { path = "../../../../pulumi_wasm_wit" } | ||
pulumi_wasm_provider_common = { path = "../../../../pulumi_wasm_provider_common" } | ||
serde = "1.0.197" | ||
bon = "2.2.1" |
12 changes: 12 additions & 0 deletions
12
pulumi_wasm_generator_lib/tests/output/output-funcs-edgeorder/lib/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[package] | ||
name = "pulumi_wasm_myedgeorder" | ||
version = "0.0.1-0.0.0-DEV" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
wit-bindgen.workspace = true | ||
pulumi_wasm_rust.workspace = true | ||
serde.workspace = true | ||
pulumi_wasm_wit = { workspace = true, features = ["client"] } | ||
bon.workspace = true | ||
pulumi_wasm_provider_common.workspace = true |
44 changes: 44 additions & 0 deletions
44
...generator_lib/tests/output/output-funcs-edgeorder/lib/src/function/list_configurations.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
//! The list of configurations. | ||
//! API Version: 2020-12-01-preview. | ||
#[derive(bon::Builder, Clone)] | ||
#[builder(finish_fn = build_struct)] | ||
pub struct ListConfigurationsArgs { | ||
/// Holds details about product hierarchy information and filterable property. | ||
#[builder(into)] | ||
pub configuration_filters: pulumi_wasm_rust::Output<Vec<crate::types::ConfigurationFilters>>, | ||
/// Customer subscription properties. Clients can display available products to unregistered customers by explicitly passing subscription details | ||
#[builder(into, default = ::pulumi_wasm_rust::Output::empty())] | ||
pub customer_subscription_details: pulumi_wasm_rust::Output<Option<crate::types::CustomerSubscriptionDetails>>, | ||
/// $skipToken is supported on list of configurations, which provides the next page in the list of configurations. | ||
#[builder(into, default = ::pulumi_wasm_rust::Output::empty())] | ||
pub skip_token: pulumi_wasm_rust::Output<Option<String>>, | ||
} | ||
|
||
pub struct ListConfigurationsResult { | ||
/// Link for the next set of configurations. | ||
pub next_link: pulumi_wasm_rust::Output<Option<String>>, | ||
/// List of configurations. | ||
pub value: pulumi_wasm_rust::Output<Vec<crate::types::ConfigurationResponse>>, | ||
} | ||
|
||
/// | ||
/// Registers a new resource with the given unique name and arguments | ||
/// | ||
pub fn invoke( | ||
args: ListConfigurationsArgs | ||
) -> ListConfigurationsResult { | ||
|
||
let result = crate::bindings::pulumi::myedgeorder::list_configurations::invoke( | ||
&crate::bindings::pulumi::myedgeorder::list_configurations::Args { | ||
configuration_filters: &args.configuration_filters.get_inner(), | ||
customer_subscription_details: &args.customer_subscription_details.get_inner(), | ||
skip_token: &args.skip_token.get_inner(), | ||
} | ||
); | ||
|
||
ListConfigurationsResult { | ||
next_link: crate::into_domain(result.next_link), | ||
value: crate::into_domain(result.value), | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...nerator_lib/tests/output/output-funcs-edgeorder/lib/src/function/list_product_families.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//! The list of product families. | ||
//! API Version: 2020-12-01-preview. | ||
#[derive(bon::Builder, Clone)] | ||
#[builder(finish_fn = build_struct)] | ||
pub struct ListProductFamiliesArgs { | ||
/// Customer subscription properties. Clients can display available products to unregistered customers by explicitly passing subscription details | ||
#[builder(into, default = ::pulumi_wasm_rust::Output::empty())] | ||
pub customer_subscription_details: pulumi_wasm_rust::Output<Option<crate::types::CustomerSubscriptionDetails>>, | ||
/// $expand is supported on configurations parameter for product, which provides details on the configurations for the product. | ||
#[builder(into, default = ::pulumi_wasm_rust::Output::empty())] | ||
pub expand: pulumi_wasm_rust::Output<Option<String>>, | ||
/// Dictionary of filterable properties on product family. | ||
#[builder(into)] | ||
pub filterable_properties: pulumi_wasm_rust::Output<std::collections::HashMap<String, Vec<crate::types::FilterableProperty>>>, | ||
/// $skipToken is supported on list of product families, which provides the next page in the list of product families. | ||
#[builder(into, default = ::pulumi_wasm_rust::Output::empty())] | ||
pub skip_token: pulumi_wasm_rust::Output<Option<String>>, | ||
} | ||
|
||
pub struct ListProductFamiliesResult { | ||
/// Link for the next set of product families. | ||
pub next_link: pulumi_wasm_rust::Output<Option<String>>, | ||
/// List of product families. | ||
pub value: pulumi_wasm_rust::Output<Vec<crate::types::ProductFamilyResponse>>, | ||
} | ||
|
||
/// | ||
/// Registers a new resource with the given unique name and arguments | ||
/// | ||
pub fn invoke( | ||
args: ListProductFamiliesArgs | ||
) -> ListProductFamiliesResult { | ||
|
||
let result = crate::bindings::pulumi::myedgeorder::list_product_families::invoke( | ||
&crate::bindings::pulumi::myedgeorder::list_product_families::Args { | ||
customer_subscription_details: &args.customer_subscription_details.get_inner(), | ||
expand: &args.expand.get_inner(), | ||
filterable_properties: &args.filterable_properties.get_inner(), | ||
skip_token: &args.skip_token.get_inner(), | ||
} | ||
); | ||
|
||
ListProductFamiliesResult { | ||
next_link: crate::into_domain(result.next_link), | ||
value: crate::into_domain(result.value), | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
pulumi_wasm_generator_lib/tests/output/output-funcs-edgeorder/lib/src/function/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pub mod list_configurations; | ||
pub mod list_product_families; |
22 changes: 22 additions & 0 deletions
22
pulumi_wasm_generator_lib/tests/output/output-funcs-edgeorder/lib/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use pulumi_wasm_rust::Output; | ||
use pulumi_wasm_wit::client_bindings::component::pulumi_wasm::output_interface::Output as WitOutput; | ||
#[allow(clippy::doc_lazy_continuation, clippy::tabs_in_doc_comments)] | ||
mod function; | ||
pub use function::*; | ||
#[allow(clippy::doc_lazy_continuation, clippy::tabs_in_doc_comments)] | ||
mod types; | ||
pub use types::*; | ||
|
||
mod bindings { | ||
wit_bindgen::generate!({ | ||
// the name of the world in the `*.wit` input file | ||
world: "myedgeorder-pulumi-client", | ||
with: { | ||
"component:pulumi-wasm/[email protected]": pulumi_wasm_wit::client_bindings::component::pulumi_wasm::output_interface | ||
} | ||
}); | ||
} | ||
|
||
fn into_domain<F: serde::Serialize>(output: WitOutput) -> Output<F> { | ||
unsafe { Output::<F>::new_from_handle(output) } | ||
} |
Empty file.
18 changes: 18 additions & 0 deletions
18
...ib/tests/output/output-funcs-edgeorder/lib/src/types/availability_information_response.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//! Availability information of a product system. | ||
#[derive(serde::Deserialize, serde::Serialize, bon::Builder, Debug, PartialEq, Clone)] | ||
#[builder(finish_fn = build_struct)] | ||
pub struct AvailabilityInformationResponse { | ||
/// Current availability stage of the product. Availability stage | ||
#[builder(into)] | ||
#[serde(rename = "availabilityStage")] | ||
pub r#availability_stage: Box<String>, | ||
/// Reason why the product is disabled. | ||
#[builder(into)] | ||
#[serde(rename = "disabledReason")] | ||
pub r#disabled_reason: Box<String>, | ||
/// Message for why the product is disabled. | ||
#[builder(into)] | ||
#[serde(rename = "disabledReasonMessage")] | ||
pub r#disabled_reason_message: Box<String>, | ||
} |
22 changes: 22 additions & 0 deletions
22
...r_lib/tests/output/output-funcs-edgeorder/lib/src/types/billing_meter_details_response.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//! Holds billing meter details for each type of billing | ||
#[derive(serde::Deserialize, serde::Serialize, bon::Builder, Debug, PartialEq, Clone)] | ||
#[builder(finish_fn = build_struct)] | ||
pub struct BillingMeterDetailsResponse { | ||
/// Frequency of recurrence | ||
#[builder(into)] | ||
#[serde(rename = "frequency")] | ||
pub r#frequency: Box<String>, | ||
/// Represents MeterDetails | ||
#[builder(into)] | ||
#[serde(rename = "meterDetails")] | ||
pub r#meter_details: Box<pulumi_wasm_provider_common::OneOf2<crate::types::Pav2MeterDetailsResponse, crate::types::PurchaseMeterDetailsResponse>>, | ||
/// Represents Metering type (eg one-time or recurrent) | ||
#[builder(into)] | ||
#[serde(rename = "meteringType")] | ||
pub r#metering_type: Box<String>, | ||
/// Represents Billing type name | ||
#[builder(into)] | ||
#[serde(rename = "name")] | ||
pub r#name: Box<String>, | ||
} |
14 changes: 14 additions & 0 deletions
14
..._generator_lib/tests/output/output-funcs-edgeorder/lib/src/types/configuration_filters.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//! Configuration filters | ||
#[derive(serde::Deserialize, serde::Serialize, bon::Builder, Debug, PartialEq, Clone)] | ||
#[builder(finish_fn = build_struct)] | ||
pub struct ConfigurationFilters { | ||
/// Filters specific to product | ||
#[builder(into, default = Box::new(None))] | ||
#[serde(rename = "filterableProperty")] | ||
pub r#filterable_property: Box<Option<Vec<crate::types::FilterableProperty>>>, | ||
/// Product hierarchy information | ||
#[builder(into)] | ||
#[serde(rename = "hierarchyInformation")] | ||
pub r#hierarchy_information: Box<crate::types::HierarchyInformation>, | ||
} |
Oops, something went wrong.