Skip to content

Commit

Permalink
make build_sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot committed Oct 25, 2023
1 parent 179235d commit f4d8717
Show file tree
Hide file tree
Showing 48 changed files with 2,664 additions and 0 deletions.
28 changes: 28 additions & 0 deletions sdk/dotnet/Certificate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,34 @@ namespace Pulumi.Kong
///
/// For more information on creating certificates in Kong [see their documentation](https://docs.konghq.com/gateway-oss/2.5.x/admin-api/#certificate-object)
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Kong = Pulumi.Kong;
///
/// return await Deployment.RunAsync(() =>
/// {
/// var certificate = new Kong.Certificate("certificate", new()
/// {
/// Cert = "public key --- 123 ----",
/// PrivateKey = "private key --- 456 ----",
/// Snis = new[]
/// {
/// "foo.com",
/// "bar.com",
/// },
/// Tags = new[]
/// {
/// "myTag",
/// },
/// });
///
/// });
/// ```
///
/// ## Import
///
/// To import a certificate
Expand Down
23 changes: 23 additions & 0 deletions sdk/dotnet/Consumer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,29 @@ namespace Pulumi.Kong
///
/// The consumer resource maps directly onto the json for creating a Consumer in Kong. For more information on the parameters [see the Kong Consumer create documentation](https://docs.konghq.com/gateway-oss/2.5.x/admin-api/#consumer-object).
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Kong = Pulumi.Kong;
///
/// return await Deployment.RunAsync(() =>
/// {
/// var consumer = new Kong.Consumer("consumer", new()
/// {
/// CustomId = "123",
/// Tags = new[]
/// {
/// "mySuperTag",
/// },
/// Username = "User1",
/// });
///
/// });
/// ```
///
/// ## Import
///
/// To import a consumer
Expand Down
39 changes: 39 additions & 0 deletions sdk/dotnet/ConsumerAcl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,45 @@ namespace Pulumi.Kong
/// ## # kong.ConsumerAcl
///
/// Consumer ACL is a resource that allows you to configure the acl plugin for a consumer.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Kong = Pulumi.Kong;
///
/// return await Deployment.RunAsync(() =>
/// {
/// var myConsumer = new Kong.Consumer("myConsumer", new()
/// {
/// CustomId = "123",
/// Username = "User1",
/// });
///
/// var aclPlugin = new Kong.Plugin("aclPlugin", new()
/// {
/// ConfigJson = @" {
/// ""allow"": [""group1"", ""group2""]
/// }
///
/// ",
/// });
///
/// var consumerAcl = new Kong.ConsumerAcl("consumerAcl", new()
/// {
/// ConsumerId = myConsumer.Id,
/// Group = "group2",
/// Tags = new[]
/// {
/// "myTag",
/// "otherTag",
/// },
/// });
///
/// });
/// ```
/// </summary>
[KongResourceType("kong:index/consumerAcl:ConsumerAcl")]
public partial class ConsumerAcl : global::Pulumi.CustomResource
Expand Down
33 changes: 33 additions & 0 deletions sdk/dotnet/ConsumerBasicAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,39 @@ namespace Pulumi.Kong
/// ## # kong.ConsumerBasicAuth
///
/// Consumer basic auth is a resource that allows you to configure the basic auth plugin for a consumer.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Kong = Pulumi.Kong;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var myConsumer = new Kong.Consumer("myConsumer", new()
/// {
/// CustomId = "123",
/// Username = "User1",
/// });
///
/// var basicAuthPlugin = new Kong.Plugin("basicAuthPlugin");
///
/// var consumerBasicAuth = new Kong.ConsumerBasicAuth("consumerBasicAuth", new()
/// {
/// ConsumerId = myConsumer.Id,
/// Password = "bar_updated",
/// Tags = new[]
/// {
/// "myTag",
/// "anotherTag",
/// },
/// Username = "foo_updated",
/// });
///
/// });
/// ```
/// </summary>
[KongResourceType("kong:index/consumerBasicAuth:ConsumerBasicAuth")]
public partial class ConsumerBasicAuth : global::Pulumi.CustomResource
Expand Down
37 changes: 37 additions & 0 deletions sdk/dotnet/ConsumerJwtAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,43 @@ namespace Pulumi.Kong
/// ## # kong.ConsumerJwtAuth
///
/// Consumer jwt auth is a resource that allows you to configure the jwt auth plugin for a consumer.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Kong = Pulumi.Kong;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var myConsumer = new Kong.Consumer("myConsumer", new()
/// {
/// CustomId = "123",
/// Username = "User1",
/// });
///
/// var jwtPlugin = new Kong.Plugin("jwtPlugin", new()
/// {
/// ConfigJson = @" {
/// ""claims_to_verify"": [""exp""]
/// }
///
/// ",
/// });
///
/// var consumerJwtConfig = new Kong.ConsumerJwtAuth("consumerJwtConfig", new()
/// {
/// Algorithm = "HS256",
/// ConsumerId = myConsumer.Id,
/// Key = "my_key",
/// RsaPublicKey = "foo",
/// Secret = "my_secret",
/// });
///
/// });
/// ```
/// </summary>
[KongResourceType("kong:index/consumerJwtAuth:ConsumerJwtAuth")]
public partial class ConsumerJwtAuth : global::Pulumi.CustomResource
Expand Down
32 changes: 32 additions & 0 deletions sdk/dotnet/ConsumerKeyAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,38 @@ namespace Pulumi.Kong
/// ## # kong.ConsumerKeyAuth
///
/// Resource that allows you to configure the [Key Authentication](https://docs.konghq.com/hub/kong-inc/key-auth/) plugin for a consumer.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Kong = Pulumi.Kong;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var myConsumer = new Kong.Consumer("myConsumer", new()
/// {
/// Username = "User1",
/// CustomId = "123",
/// });
///
/// var keyAuthPlugin = new Kong.Plugin("keyAuthPlugin");
///
/// var consumerKeyAuth = new Kong.ConsumerKeyAuth("consumerKeyAuth", new()
/// {
/// ConsumerId = myConsumer.Id,
/// Key = "secret",
/// Tags = new[]
/// {
/// "myTag",
/// "anotherTag",
/// },
/// });
///
/// });
/// ```
/// </summary>
[KongResourceType("kong:index/consumerKeyAuth:ConsumerKeyAuth")]
public partial class ConsumerKeyAuth : global::Pulumi.CustomResource
Expand Down
48 changes: 48 additions & 0 deletions sdk/dotnet/ConsumerOauth2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,54 @@ namespace Pulumi.Kong
/// ## # kong.ConsumerOauth2
///
/// Resource that allows you to configure the OAuth2 plugin credentials for a consumer.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Kong = Pulumi.Kong;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var myConsumer = new Kong.Consumer("myConsumer", new()
/// {
/// CustomId = "123",
/// Username = "User1",
/// });
///
/// var oauth2Plugin = new Kong.Plugin("oauth2Plugin", new()
/// {
/// ConfigJson = @" {
/// ""global_credentials"": true,
/// ""enable_password_grant"": true,
/// ""token_expiration"": 180,
/// ""refresh_token_ttl"": 180,
/// ""provision_key"": ""testprovisionkey""
/// }
///
/// ",
/// });
///
/// var consumerOauth2 = new Kong.ConsumerOauth2("consumerOauth2", new()
/// {
/// ClientId = "client_id",
/// ClientSecret = "client_secret",
/// ConsumerId = myConsumer.Id,
/// RedirectUris = new[]
/// {
/// "https://asdf.com/callback",
/// "https://test.cl/callback",
/// },
/// Tags = new[]
/// {
/// "myTag",
/// },
/// });
///
/// });
/// ```
/// </summary>
[KongResourceType("kong:index/consumerOauth2:ConsumerOauth2")]
public partial class ConsumerOauth2 : global::Pulumi.CustomResource
Expand Down
Loading

0 comments on commit f4d8717

Please sign in to comment.