Skip to content

Commit

Permalink
Update cloudflare (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejressel authored Nov 24, 2024
1 parent 8d14273 commit 6638cc7
Show file tree
Hide file tree
Showing 544 changed files with 63,817 additions and 24,177 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32,777 changes: 22,241 additions & 10,536 deletions providers/cloudflare.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion providers/pulumi_wasm_provider_cloudflare/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pulumi_wasm_cloudflare_provider"
version = "5.24.1-0.0.0-DEV"
version = "5.43.1-0.0.0-DEV"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
23,150 changes: 16,555 additions & 6,595 deletions providers/pulumi_wasm_provider_cloudflare/src/bindings.rs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
use std::collections::HashMap;
use crate::bindings::exports::pulumi::cloudflare::get_dcv_delegation;
use crate::bindings::component::pulumi_wasm::register_interface::{ObjectField, invoke, ResourceInvokeRequest, ResultField};
use crate::Component;

impl get_dcv_delegation::Guest for Component {
fn invoke(
args: get_dcv_delegation::Args
) -> get_dcv_delegation::Res {
pulumi_wasm_common::setup_logger();
let request = ResourceInvokeRequest {
token: "cloudflare:index/getDcvDelegation:getDcvDelegation".into(),
object: vec![
ObjectField { name: "zoneId".into(), value: args.zone_id },
],
results: vec![
ResultField { name: "hostname".into() },
ResultField { name: "id".into() },
ResultField { name: "zoneId".into() },
],
};

let o = invoke(&request);

let mut hashmap: HashMap<String, _> = o.fields.into_iter().map(|f| (f.name, f.output)).collect();

get_dcv_delegation::Res {
hostname: hashmap.remove("hostname").unwrap(),
id: hashmap.remove("id").unwrap(),
zone_id: hashmap.remove("zoneId").unwrap(),
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
use std::collections::HashMap;
use crate::bindings::exports::pulumi::cloudflare::get_gateway_app_types;
use crate::bindings::component::pulumi_wasm::register_interface::{ObjectField, invoke, ResourceInvokeRequest, ResultField};
use crate::Component;

impl get_gateway_app_types::Guest for Component {
fn invoke(
args: get_gateway_app_types::Args
) -> get_gateway_app_types::Res {
pulumi_wasm_common::setup_logger();
let request = ResourceInvokeRequest {
token: "cloudflare:index/getGatewayAppTypes:getGatewayAppTypes".into(),
object: vec![
ObjectField { name: "accountId".into(), value: args.account_id },
],
results: vec![
ResultField { name: "accountId".into() },
ResultField { name: "appTypes".into() },
ResultField { name: "id".into() },
],
};

let o = invoke(&request);

let mut hashmap: HashMap<String, _> = o.fields.into_iter().map(|f| (f.name, f.output)).collect();

get_gateway_app_types::Res {
account_id: hashmap.remove("accountId").unwrap(),
app_types: hashmap.remove("appTypes").unwrap(),
id: hashmap.remove("id").unwrap(),
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
use std::collections::HashMap;
use crate::bindings::exports::pulumi::cloudflare::get_gateway_categories;
use crate::bindings::component::pulumi_wasm::register_interface::{ObjectField, invoke, ResourceInvokeRequest, ResultField};
use crate::Component;

impl get_gateway_categories::Guest for Component {
fn invoke(
args: get_gateway_categories::Args
) -> get_gateway_categories::Res {
pulumi_wasm_common::setup_logger();
let request = ResourceInvokeRequest {
token: "cloudflare:index/getGatewayCategories:getGatewayCategories".into(),
object: vec![
ObjectField { name: "accountId".into(), value: args.account_id },
],
results: vec![
ResultField { name: "accountId".into() },
ResultField { name: "categories".into() },
ResultField { name: "id".into() },
],
};

let o = invoke(&request);

let mut hashmap: HashMap<String, _> = o.fields.into_iter().map(|f| (f.name, f.output)).collect();

get_gateway_categories::Res {
account_id: hashmap.remove("accountId").unwrap(),
categories: hashmap.remove("categories").unwrap(),
id: hashmap.remove("id").unwrap(),
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
use std::collections::HashMap;
use crate::bindings::exports::pulumi::cloudflare::get_infrastructure_access_targets;
use crate::bindings::component::pulumi_wasm::register_interface::{ObjectField, invoke, ResourceInvokeRequest, ResultField};
use crate::Component;

impl get_infrastructure_access_targets::Guest for Component {
fn invoke(
args: get_infrastructure_access_targets::Args
) -> get_infrastructure_access_targets::Res {
pulumi_wasm_common::setup_logger();
let request = ResourceInvokeRequest {
token: "cloudflare:index/getInfrastructureAccessTargets:getInfrastructureAccessTargets".into(),
object: vec![
ObjectField { name: "accountId".into(), value: args.account_id },
ObjectField { name: "createdAfter".into(), value: args.created_after },
ObjectField { name: "hostname".into(), value: args.hostname },
ObjectField { name: "hostnameContains".into(), value: args.hostname_contains },
ObjectField { name: "ipv4".into(), value: args.ipv4 },
ObjectField { name: "ipv6".into(), value: args.ipv6 },
ObjectField { name: "modifiedAfter".into(), value: args.modified_after },
ObjectField { name: "virtualNetworkId".into(), value: args.virtual_network_id },
],
results: vec![
ResultField { name: "accountId".into() },
ResultField { name: "createdAfter".into() },
ResultField { name: "hostname".into() },
ResultField { name: "hostnameContains".into() },
ResultField { name: "id".into() },
ResultField { name: "ipv4".into() },
ResultField { name: "ipv6".into() },
ResultField { name: "modifiedAfter".into() },
ResultField { name: "targets".into() },
ResultField { name: "virtualNetworkId".into() },
],
};

let o = invoke(&request);

let mut hashmap: HashMap<String, _> = o.fields.into_iter().map(|f| (f.name, f.output)).collect();

get_infrastructure_access_targets::Res {
account_id: hashmap.remove("accountId").unwrap(),
created_after: hashmap.remove("createdAfter").unwrap(),
hostname: hashmap.remove("hostname").unwrap(),
hostname_contains: hashmap.remove("hostnameContains").unwrap(),
id: hashmap.remove("id").unwrap(),
ipv4: hashmap.remove("ipv4").unwrap(),
ipv6: hashmap.remove("ipv6").unwrap(),
modified_after: hashmap.remove("modifiedAfter").unwrap(),
targets: hashmap.remove("targets").unwrap(),
virtual_network_id: hashmap.remove("virtualNetworkId").unwrap(),
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ impl get_record::Guest for Component {
ResultField { name: "content".into() },
ResultField { name: "hostname".into() },
ResultField { name: "id".into() },
ResultField { name: "locked".into() },
ResultField { name: "priority".into() },
ResultField { name: "proxiable".into() },
ResultField { name: "proxied".into() },
ResultField { name: "ttl".into() },
ResultField { name: "type".into() },
ResultField { name: "value".into() },
ResultField { name: "zoneId".into() },
ResultField { name: "zoneName".into() },
],
};

Expand All @@ -41,15 +39,13 @@ impl get_record::Guest for Component {
content: hashmap.remove("content").unwrap(),
hostname: hashmap.remove("hostname").unwrap(),
id: hashmap.remove("id").unwrap(),
locked: hashmap.remove("locked").unwrap(),
priority: hashmap.remove("priority").unwrap(),
proxiable: hashmap.remove("proxiable").unwrap(),
proxied: hashmap.remove("proxied").unwrap(),
ttl: hashmap.remove("ttl").unwrap(),
type_: hashmap.remove("type").unwrap(),
value: hashmap.remove("value").unwrap(),
zone_id: hashmap.remove("zoneId").unwrap(),
zone_name: hashmap.remove("zoneName").unwrap(),
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ impl get_tunnel::Guest for Component {
token: "cloudflare:index/getTunnel:getTunnel".into(),
object: vec![
ObjectField { name: "accountId".into(), value: args.account_id },
ObjectField { name: "isDeleted".into(), value: args.is_deleted },
ObjectField { name: "name".into(), value: args.name },
],
results: vec![
ResultField { name: "accountId".into() },
ResultField { name: "id".into() },
ResultField { name: "isDeleted".into() },
ResultField { name: "name".into() },
ResultField { name: "remoteConfig".into() },
ResultField { name: "status".into() },
Expand All @@ -31,6 +33,7 @@ impl get_tunnel::Guest for Component {
get_tunnel::Res {
account_id: hashmap.remove("accountId").unwrap(),
id: hashmap.remove("id").unwrap(),
is_deleted: hashmap.remove("isDeleted").unwrap(),
name: hashmap.remove("name").unwrap(),
remote_config: hashmap.remove("remoteConfig").unwrap(),
status: hashmap.remove("status").unwrap(),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
use std::collections::HashMap;
use crate::bindings::exports::pulumi::cloudflare::get_zero_trust_access_application;
use crate::bindings::component::pulumi_wasm::register_interface::{ObjectField, invoke, ResourceInvokeRequest, ResultField};
use crate::Component;

impl get_zero_trust_access_application::Guest for Component {
fn invoke(
args: get_zero_trust_access_application::Args
) -> get_zero_trust_access_application::Res {
pulumi_wasm_common::setup_logger();
let request = ResourceInvokeRequest {
token: "cloudflare:index/getZeroTrustAccessApplication:getZeroTrustAccessApplication".into(),
object: vec![
ObjectField { name: "accountId".into(), value: args.account_id },
ObjectField { name: "domain".into(), value: args.domain },
ObjectField { name: "name".into(), value: args.name },
ObjectField { name: "zoneId".into(), value: args.zone_id },
],
results: vec![
ResultField { name: "accountId".into() },
ResultField { name: "aud".into() },
ResultField { name: "domain".into() },
ResultField { name: "id".into() },
ResultField { name: "name".into() },
ResultField { name: "zoneId".into() },
],
};

let o = invoke(&request);

let mut hashmap: HashMap<String, _> = o.fields.into_iter().map(|f| (f.name, f.output)).collect();

get_zero_trust_access_application::Res {
account_id: hashmap.remove("accountId").unwrap(),
aud: hashmap.remove("aud").unwrap(),
domain: hashmap.remove("domain").unwrap(),
id: hashmap.remove("id").unwrap(),
name: hashmap.remove("name").unwrap(),
zone_id: hashmap.remove("zoneId").unwrap(),
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
use std::collections::HashMap;
use crate::bindings::exports::pulumi::cloudflare::get_zero_trust_access_identity_provider;
use crate::bindings::component::pulumi_wasm::register_interface::{ObjectField, invoke, ResourceInvokeRequest, ResultField};
use crate::Component;

impl get_zero_trust_access_identity_provider::Guest for Component {
fn invoke(
args: get_zero_trust_access_identity_provider::Args
) -> get_zero_trust_access_identity_provider::Res {
pulumi_wasm_common::setup_logger();
let request = ResourceInvokeRequest {
token: "cloudflare:index/getZeroTrustAccessIdentityProvider:getZeroTrustAccessIdentityProvider".into(),
object: vec![
ObjectField { name: "accountId".into(), value: args.account_id },
ObjectField { name: "name".into(), value: args.name },
ObjectField { name: "zoneId".into(), value: args.zone_id },
],
results: vec![
ResultField { name: "accountId".into() },
ResultField { name: "id".into() },
ResultField { name: "name".into() },
ResultField { name: "type".into() },
ResultField { name: "zoneId".into() },
],
};

let o = invoke(&request);

let mut hashmap: HashMap<String, _> = o.fields.into_iter().map(|f| (f.name, f.output)).collect();

get_zero_trust_access_identity_provider::Res {
account_id: hashmap.remove("accountId").unwrap(),
id: hashmap.remove("id").unwrap(),
name: hashmap.remove("name").unwrap(),
type_: hashmap.remove("type").unwrap(),
zone_id: hashmap.remove("zoneId").unwrap(),
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
use std::collections::HashMap;
use crate::bindings::exports::pulumi::cloudflare::get_zero_trust_infrastructure_access_targets;
use crate::bindings::component::pulumi_wasm::register_interface::{ObjectField, invoke, ResourceInvokeRequest, ResultField};
use crate::Component;

impl get_zero_trust_infrastructure_access_targets::Guest for Component {
fn invoke(
args: get_zero_trust_infrastructure_access_targets::Args
) -> get_zero_trust_infrastructure_access_targets::Res {
pulumi_wasm_common::setup_logger();
let request = ResourceInvokeRequest {
token: "cloudflare:index/getZeroTrustInfrastructureAccessTargets:getZeroTrustInfrastructureAccessTargets".into(),
object: vec![
ObjectField { name: "accountId".into(), value: args.account_id },
ObjectField { name: "createdAfter".into(), value: args.created_after },
ObjectField { name: "hostname".into(), value: args.hostname },
ObjectField { name: "hostnameContains".into(), value: args.hostname_contains },
ObjectField { name: "ipv4".into(), value: args.ipv4 },
ObjectField { name: "ipv6".into(), value: args.ipv6 },
ObjectField { name: "modifiedAfter".into(), value: args.modified_after },
ObjectField { name: "virtualNetworkId".into(), value: args.virtual_network_id },
],
results: vec![
ResultField { name: "accountId".into() },
ResultField { name: "createdAfter".into() },
ResultField { name: "hostname".into() },
ResultField { name: "hostnameContains".into() },
ResultField { name: "id".into() },
ResultField { name: "ipv4".into() },
ResultField { name: "ipv6".into() },
ResultField { name: "modifiedAfter".into() },
ResultField { name: "targets".into() },
ResultField { name: "virtualNetworkId".into() },
],
};

let o = invoke(&request);

let mut hashmap: HashMap<String, _> = o.fields.into_iter().map(|f| (f.name, f.output)).collect();

get_zero_trust_infrastructure_access_targets::Res {
account_id: hashmap.remove("accountId").unwrap(),
created_after: hashmap.remove("createdAfter").unwrap(),
hostname: hashmap.remove("hostname").unwrap(),
hostname_contains: hashmap.remove("hostnameContains").unwrap(),
id: hashmap.remove("id").unwrap(),
ipv4: hashmap.remove("ipv4").unwrap(),
ipv6: hashmap.remove("ipv6").unwrap(),
modified_after: hashmap.remove("modifiedAfter").unwrap(),
targets: hashmap.remove("targets").unwrap(),
virtual_network_id: hashmap.remove("virtualNetworkId").unwrap(),
}

}
}
Loading

0 comments on commit 6638cc7

Please sign in to comment.