Skip to content

Commit

Permalink
Build SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
guineveresaenger committed Nov 28, 2022
1 parent b7ae08f commit c32b008
Show file tree
Hide file tree
Showing 175 changed files with 1,369 additions and 1,019 deletions.
4 changes: 2 additions & 2 deletions sdk/dotnet/AccessCaCertificate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ namespace Pulumi.Cloudflare
///
/// ## Import
///
/// # Account level CA certificate import.
/// Account level CA certificate import.
///
/// ```sh
/// $ pulumi import cloudflare:index/accessCaCertificate:AccessCaCertificate example account/<account_id>/<certificate_id>
/// ```
///
/// # Zone level CA certificate import.
/// Zone level CA certificate import.
///
/// ```sh
/// $ pulumi import cloudflare:index/accessCaCertificate:AccessCaCertificate example account/<zone_id>/<certificate_id>
Expand Down
54 changes: 54 additions & 0 deletions sdk/dotnet/AccessGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,60 @@ namespace Pulumi.Cloudflare
/// scope. For example, an access token that is scoped to the "example.com"
/// zone needs to use the `zone_id` argument.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using Pulumi;
/// using Cloudflare = Pulumi.Cloudflare;
///
/// return await Deployment.RunAsync(() =>
/// {
/// // Allowing access to `[email protected]` email address only
/// var testGroupAccessGroup = new Cloudflare.AccessGroup("testGroupAccessGroup", new()
/// {
/// AccountId = "f037e56e89293a057740de681ac9abbe",
/// Name = "staging group",
/// Includes = new[]
/// {
/// new Cloudflare.Inputs.AccessGroupIncludeArgs
/// {
/// Emails = new[]
/// {
/// "[email protected]",
/// },
/// },
/// },
/// });
///
/// // Allowing `[email protected]` to access but only when coming from a
/// // specific IP.
/// var testGroupIndex_accessGroupAccessGroup = new Cloudflare.AccessGroup("testGroupIndex/accessGroupAccessGroup", new()
/// {
/// AccountId = "f037e56e89293a057740de681ac9abbe",
/// Name = "staging group",
/// Includes = new[]
/// {
/// new Cloudflare.Inputs.AccessGroupIncludeArgs
/// {
/// Emails = new[]
/// {
/// "[email protected]",
/// },
/// },
/// },
/// Requires =
/// {
/// { "ips", new[]
/// {
/// @var.Office_ip,
/// } },
/// },
/// });
///
/// });
/// ```
///
/// ## Import
///
/// ```sh
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/AccessMutualTlsCertificate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ namespace Pulumi.Cloudflare
///
/// ## Import
///
/// # Account level import.
/// Account level import.
///
/// ```sh
/// $ pulumi import cloudflare:index/accessMutualTlsCertificate:AccessMutualTlsCertificate example account/<account_id>/<mutual_tls_certificate_id>
/// ```
///
/// # Zone level import.
/// Zone level import.
///
/// ```sh
/// $ pulumi import cloudflare:index/accessMutualTlsCertificate:AccessMutualTlsCertificate example zone/<zone_id>/<mutual_tls_certificate_id>
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/AccessPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ namespace Pulumi.Cloudflare
///
/// ## Import
///
/// # Account level import.
/// Account level import.
///
/// ```sh
/// $ pulumi import cloudflare:index/accessPolicy:AccessPolicy example account/<account_id>/<application_id>/<policy_id>
/// ```
///
/// # Zone level import.
/// Zone level import.
///
/// ```sh
/// $ pulumi import cloudflare:index/accessPolicy:AccessPolicy example zone/<zone_id>/<application_id>/<policy_id>
Expand Down
6 changes: 3 additions & 3 deletions sdk/dotnet/AccessRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ namespace Pulumi.Cloudflare
///
/// ## Import
///
/// # User level access rule import.
/// User level access rule import.
///
/// ```sh
/// $ pulumi import cloudflare:index/accessRule:AccessRule default user/<user_id>/<rule_id>
/// ```
///
/// # Zone level access rule import.
/// Zone level access rule import.
///
/// ```sh
/// $ pulumi import cloudflare:index/accessRule:AccessRule default zone/<zone_id>/<rule_id>
/// ```
///
/// # Account level access rule import.
/// Account level access rule import.
///
/// ```sh
/// $ pulumi import cloudflare:index/accessRule:AccessRule default account/<account_id>/<rule_id>
Expand Down
20 changes: 17 additions & 3 deletions sdk/dotnet/AccessServiceToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace Pulumi.Cloudflare
///
/// ## Import
///
/// # If you are importing an Access Service Token you will not have the # client_secret available in the state for use. The client_secret is only # available once, at creation. In most cases, it is better to just create a new # resource should you need to reference it in other resources.
/// If you are importing an Access Service Token you will not have the client_secret available in the state for use. The client_secret is only available once, at creation. In most cases, it is better to just create a new resource should you need to reference it in other resources.
///
/// ```sh
/// $ pulumi import cloudflare:index/accessServiceToken:AccessServiceToken example <account_id>/<service_token_id>
Expand Down Expand Up @@ -109,6 +109,10 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
AdditionalSecretOutputs =
{
"clientSecret",
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down Expand Up @@ -176,11 +180,21 @@ public sealed class AccessServiceTokenState : global::Pulumi.ResourceArgs
[Input("clientId")]
public Input<string>? ClientId { get; set; }

[Input("clientSecret")]
private Input<string>? _clientSecret;

/// <summary>
/// A secret for interacting with Access protocols.
/// </summary>
[Input("clientSecret")]
public Input<string>? ClientSecret { get; set; }
public Input<string>? ClientSecret
{
get => _clientSecret;
set
{
var emptySecret = Output.CreateSecret(0);
_clientSecret = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}

/// <summary>
/// Date when the token expires.
Expand Down
18 changes: 16 additions & 2 deletions sdk/dotnet/ApiToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
AdditionalSecretOutputs =
{
"value",
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down Expand Up @@ -210,11 +214,21 @@ public InputList<Inputs.ApiTokenPolicyGetArgs> Policies
[Input("status")]
public Input<string>? Status { get; set; }

[Input("value")]
private Input<string>? _value;

/// <summary>
/// The value of the API Token.
/// </summary>
[Input("value")]
public Input<string>? Value { get; set; }
public Input<string>? Value
{
get => _value;
set
{
var emptySecret = Output.CreateSecret(0);
_value = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}

public ApiTokenState()
{
Expand Down
32 changes: 28 additions & 4 deletions sdk/dotnet/ArgoTunnel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
AdditionalSecretOutputs =
{
"secret",
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down Expand Up @@ -132,11 +136,21 @@ public sealed class ArgoTunnelArgs : global::Pulumi.ResourceArgs
[Input("name", required: true)]
public Input<string> Name { get; set; } = null!;

[Input("secret", required: true)]
private Input<string>? _secret;

/// <summary>
/// 32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
/// </summary>
[Input("secret", required: true)]
public Input<string> Secret { get; set; } = null!;
public Input<string>? Secret
{
get => _secret;
set
{
var emptySecret = Output.CreateSecret(0);
_secret = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}

public ArgoTunnelArgs()
{
Expand Down Expand Up @@ -164,11 +178,21 @@ public sealed class ArgoTunnelState : global::Pulumi.ResourceArgs
[Input("name")]
public Input<string>? Name { get; set; }

[Input("secret")]
private Input<string>? _secret;

/// <summary>
/// 32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
/// </summary>
[Input("secret")]
public Input<string>? Secret { get; set; }
public Input<string>? Secret
{
get => _secret;
set
{
var emptySecret = Output.CreateSecret(0);
_secret = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}

/// <summary>
/// Token used by a connector to authenticate and run the tunnel.
Expand Down
6 changes: 3 additions & 3 deletions sdk/dotnet/AuthenticatedOriginPulls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ namespace Pulumi.Cloudflare
///
/// ## Import
///
/// Authenticated Origin Pull configuration can be imported using a composite ID formed of the zone ID, the form of Authenticated Origin Pulls, and the certificate ID, with each section filled or left blank e.g. # Import Authenticated Origin Pull configuration
/// Authenticated Origin Pull configuration can be imported using a composite ID formed of the zone ID, the form of Authenticated Origin Pulls, and the certificate ID, with each section filled or left blank e.g. Import Authenticated Origin Pull configuration
///
/// ```sh
/// $ pulumi import cloudflare:index/authenticatedOriginPulls:AuthenticatedOriginPulls my_aop 023e105f4ecef8ad9ca31a8372d0c353//
/// ```
///
/// # Import Per-Zone Authenticated Origin Pull configuration
/// Import Per-Zone Authenticated Origin Pull configuration
///
/// ```sh
/// $ pulumi import cloudflare:index/authenticatedOriginPulls:AuthenticatedOriginPulls my_per_zone_aop 023e105f4ecef8ad9ca31a8372d0c353/2458ce5a-0c35-4c7f-82c7-8e9487d3ff60/
/// ```
///
/// # Import Per-Hostname Authenticated Origin Pull configuration
/// Import Per-Hostname Authenticated Origin Pull configuration
///
/// ```sh
/// $ pulumi import cloudflare:index/authenticatedOriginPulls:AuthenticatedOriginPulls my_per_hostname_aop 023e105f4ecef8ad9ca31a8372d0c353/2458ce5a-0c35-4c7f-82c7-8e9487d3ff60/aop.example.com
Expand Down
36 changes: 30 additions & 6 deletions sdk/dotnet/AuthenticatedOriginPullsCertificate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ namespace Pulumi.Cloudflare
///
/// ## Import
///
/// Authenticated Origin Pull certificates can be imported using a composite ID formed of the zone ID, the form of Authenticated Origin Pulls, and the certificate ID, e.g. # Import Per-Zone Authenticated Origin Pull certificate
/// Authenticated Origin Pull certificates can be imported using a composite ID formed of the zone ID, the form of Authenticated Origin Pulls, and the certificate ID, e.g. Import Per-Zone Authenticated Origin Pull certificate
///
/// ```sh
/// $ pulumi import cloudflare:index/authenticatedOriginPullsCertificate:AuthenticatedOriginPullsCertificate 2458ce5a-0c35-4c7f-82c7-8e9487d3ff60 023e105f4ecef8ad9ca31a8372d0c353/per-zone/2458ce5a-0c35-4c7f-82c7-8e9487d3ff60
/// ```
///
/// # Import Per-Hostname Authenticated Origin Pull certificate
/// Import Per-Hostname Authenticated Origin Pull certificate
///
/// ```sh
/// $ pulumi import cloudflare:index/authenticatedOriginPullsCertificate:AuthenticatedOriginPullsCertificate 2458ce5a-0c35-4c7f-82c7-8e9487d3ff60 023e105f4ecef8ad9ca31a8372d0c353/per-hostname/2458ce5a-0c35-4c7f-82c7-8e9487d3ff60
Expand Down Expand Up @@ -124,6 +124,10 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
AdditionalSecretOutputs =
{
"privateKey",
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down Expand Up @@ -153,11 +157,21 @@ public sealed class AuthenticatedOriginPullsCertificateArgs : global::Pulumi.Res
[Input("certificate", required: true)]
public Input<string> Certificate { get; set; } = null!;

[Input("privateKey", required: true)]
private Input<string>? _privateKey;

/// <summary>
/// The private key of the client certificate.
/// </summary>
[Input("privateKey", required: true)]
public Input<string> PrivateKey { get; set; } = null!;
public Input<string>? PrivateKey
{
get => _privateKey;
set
{
var emptySecret = Output.CreateSecret(0);
_privateKey = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}

/// <summary>
/// The form of Authenticated Origin Pulls to upload the certificate to.
Expand Down Expand Up @@ -191,11 +205,21 @@ public sealed class AuthenticatedOriginPullsCertificateState : global::Pulumi.Re
[Input("issuer")]
public Input<string>? Issuer { get; set; }

[Input("privateKey")]
private Input<string>? _privateKey;

/// <summary>
/// The private key of the client certificate.
/// </summary>
[Input("privateKey")]
public Input<string>? PrivateKey { get; set; }
public Input<string>? PrivateKey
{
get => _privateKey;
set
{
var emptySecret = Output.CreateSecret(0);
_privateKey = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}

[Input("serialNumber")]
public Input<string>? SerialNumber { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void Set(T value)
}
}

private static readonly Pulumi.Config __config = new Pulumi.Config("cloudflare");
private static readonly global::Pulumi.Config __config = new global::Pulumi.Config("cloudflare");

private static readonly __Value<string?> _accountId = new __Value<string?>(() => __config.Get("accountId"));
/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/GetAccessIdentityProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static class GetAccessIdentityProvider
/// {{% /examples %}}
/// </summary>
public static Task<GetAccessIdentityProviderResult> InvokeAsync(GetAccessIdentityProviderArgs args, InvokeOptions? options = null)
=> Pulumi.Deployment.Instance.InvokeAsync<GetAccessIdentityProviderResult>("cloudflare:index/getAccessIdentityProvider:getAccessIdentityProvider", args ?? new GetAccessIdentityProviderArgs(), options.WithDefaults());
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetAccessIdentityProviderResult>("cloudflare:index/getAccessIdentityProvider:getAccessIdentityProvider", args ?? new GetAccessIdentityProviderArgs(), options.WithDefaults());

/// <summary>
/// Use this data source to lookup a single [Access Identity Provider][access_identity_provider_guide] by name.
Expand Down Expand Up @@ -93,7 +93,7 @@ public static Task<GetAccessIdentityProviderResult> InvokeAsync(GetAccessIdentit
/// {{% /examples %}}
/// </summary>
public static Output<GetAccessIdentityProviderResult> Invoke(GetAccessIdentityProviderInvokeArgs args, InvokeOptions? options = null)
=> Pulumi.Deployment.Instance.Invoke<GetAccessIdentityProviderResult>("cloudflare:index/getAccessIdentityProvider:getAccessIdentityProvider", args ?? new GetAccessIdentityProviderInvokeArgs(), options.WithDefaults());
=> global::Pulumi.Deployment.Instance.Invoke<GetAccessIdentityProviderResult>("cloudflare:index/getAccessIdentityProvider:getAccessIdentityProvider", args ?? new GetAccessIdentityProviderInvokeArgs(), options.WithDefaults());
}


Expand Down
Loading

0 comments on commit c32b008

Please sign in to comment.