Skip to content

Commit

Permalink
Upgrade terraform-provider-digitalocean to v2.32.0 (#541)
Browse files Browse the repository at this point in the history
This PR was generated via `$ upgrade-provider pulumi/pulumi-digitalocean
--target-version v2.32.0`.

---

- Upgrading terraform-provider-digitalocean from 2.31.0  to 2.32.0.
	Fixes #540
  • Loading branch information
iwahbe committed Nov 17, 2023
1 parent 1447f0d commit ef939de
Show file tree
Hide file tree
Showing 50 changed files with 2,455 additions and 51 deletions.
40 changes: 38 additions & 2 deletions provider/cmd/pulumi-resource-digitalocean/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"env": {
"maxItemsOne": false
},
"features": {
"maxItemsOne": false
},
"function": {
"maxItemsOne": false,
"elem": {
Expand Down Expand Up @@ -444,7 +447,19 @@
},
"digitalocean_database_user": {
"current": "digitalocean:index/databaseUser:DatabaseUser",
"majorVersion": 4
"majorVersion": 4,
"fields": {
"settings": {
"maxItemsOne": false,
"elem": {
"fields": {
"acl": {
"maxItemsOne": false
}
}
}
}
}
},
"digitalocean_domain": {
"current": "digitalocean:index/domain:Domain",
Expand Down Expand Up @@ -841,6 +856,9 @@
"env": {
"maxItemsOne": false
},
"features": {
"maxItemsOne": false
},
"function": {
"maxItemsOne": false,
"elem": {
Expand Down Expand Up @@ -1208,7 +1226,19 @@
},
"digitalocean_database_user": {
"current": "digitalocean:index/getDatabaseUser:getDatabaseUser",
"majorVersion": 4
"majorVersion": 4,
"fields": {
"settings": {
"maxItemsOne": false,
"elem": {
"fields": {
"acl": {
"maxItemsOne": false
}
}
}
}
}
},
"digitalocean_domain": {
"current": "digitalocean:index/getDomain:getDomain",
Expand Down Expand Up @@ -2053,6 +2083,9 @@
"segmentMs": "segment_ms",
"uncleanLeaderElectionEnable": "unclean_leader_election_enable"
},
"digitalocean:index/DatabaseUserSetting:DatabaseUserSetting": {
"acls": "acl"
},
"digitalocean:index/FirewallInboundRule:FirewallInboundRule": {
"portRange": "port_range",
"sourceAddresses": "source_addresses",
Expand Down Expand Up @@ -2560,6 +2593,9 @@
"clusterId": "cluster_id",
"mysqlAuthPlugin": "mysql_auth_plugin"
},
"digitalocean:index/getDatabaseUserSetting:getDatabaseUserSetting": {
"acls": "acl"
},
"digitalocean:index/getDomain:getDomain": {
"domainUrn": "urn",
"zoneFile": "zone_file"
Expand Down
130 changes: 124 additions & 6 deletions provider/cmd/pulumi-resource-digitalocean/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ require (
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/digitalocean/godo v1.105.0 // indirect
github.com/digitalocean/godo v1.105.1 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/djherbis/times v1.5.0 // indirect
github.com/edsrzf/mmap-go v1.1.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1107,8 +1107,8 @@ github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8
github.com/dgryski/go-sip13 v0.0.0-20200911182023-62edffca9245/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
github.com/digitalocean/godo v1.78.0/go.mod h1:GBmu8MkjZmNARE7IXRPmkbbnocNN8+uBm0xbEVw2LCs=
github.com/digitalocean/godo v1.81.0/go.mod h1:BPCqvwbjbGqxuUnIKB4EvS/AX7IDnNmt5fwvIkWo+ew=
github.com/digitalocean/godo v1.105.0 h1:bUfWVsyQCYZ7OQLK+p2EBFYWD5BoOgpyq/PMSQHEeMg=
github.com/digitalocean/godo v1.105.0/go.mod h1:R6EmmWI8CT1+fCtjWY9UCB+L5uufuZH13wk3YhxycCs=
github.com/digitalocean/godo v1.105.1 h1:3FjFDurw7po27Y0uHhdR+EvwNil06KCeu1Nx/0jZbmI=
github.com/digitalocean/godo v1.105.1/go.mod h1:R6EmmWI8CT1+fCtjWY9UCB+L5uufuZH13wk3YhxycCs=
github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi/U=
github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE=
github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU=
Expand Down
87 changes: 87 additions & 0 deletions sdk/dotnet/DatabaseUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,60 @@ namespace Pulumi.DigitalOcean
///
/// });
/// ```
/// ### Create a new user for a Kafka database cluster
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using DigitalOcean = Pulumi.DigitalOcean;
///
/// return await Deployment.RunAsync(() =>
/// {
/// var kafka_example = new DigitalOcean.DatabaseCluster("kafka-example", new()
/// {
/// Engine = "kafka",
/// Version = "3.5",
/// Size = "db-s-1vcpu-2gb",
/// Region = "nyc1",
/// NodeCount = 3,
/// });
///
/// var foobarTopic = new DigitalOcean.DatabaseKafkaTopic("foobarTopic", new()
/// {
/// ClusterId = digitalocean_database_cluster.Foobar.Id,
/// });
///
/// var foobarUser = new DigitalOcean.DatabaseUser("foobarUser", new()
/// {
/// ClusterId = digitalocean_database_cluster.Foobar.Id,
/// Settings = new[]
/// {
/// new DigitalOcean.Inputs.DatabaseUserSettingArgs
/// {
/// Acls = new[]
/// {
/// new DigitalOcean.Inputs.DatabaseUserSettingAclArgs
/// {
/// Topic = "topic-1",
/// Permission = "produce",
/// },
/// new DigitalOcean.Inputs.DatabaseUserSettingAclArgs
/// {
/// Topic = "topic-2",
/// Permission = "produceconsume",
/// },
/// new DigitalOcean.Inputs.DatabaseUserSettingAclArgs
/// {
/// Topic = "topic-*",
/// Permission = "consume",
/// },
/// },
/// },
/// },
/// });
///
/// });
/// ```
///
/// ## Import
///
Expand Down Expand Up @@ -114,6 +168,13 @@ public partial class DatabaseUser : global::Pulumi.CustomResource
[Output("role")]
public Output<string> Role { get; private set; } = null!;

/// <summary>
/// Contains optional settings for the user.
/// The `settings` block is documented below.
/// </summary>
[Output("settings")]
public Output<ImmutableArray<Outputs.DatabaseUserSetting>> Settings { get; private set; } = null!;


/// <summary>
/// Create a DatabaseUser resource with the given unique name, arguments, and options.
Expand Down Expand Up @@ -182,6 +243,19 @@ public sealed class DatabaseUserArgs : global::Pulumi.ResourceArgs
[Input("name")]
public Input<string>? Name { get; set; }

[Input("settings")]
private InputList<Inputs.DatabaseUserSettingArgs>? _settings;

/// <summary>
/// Contains optional settings for the user.
/// The `settings` block is documented below.
/// </summary>
public InputList<Inputs.DatabaseUserSettingArgs> Settings
{
get => _settings ?? (_settings = new InputList<Inputs.DatabaseUserSettingArgs>());
set => _settings = value;
}

public DatabaseUserArgs()
{
}
Expand Down Expand Up @@ -230,6 +304,19 @@ public Input<string>? Password
[Input("role")]
public Input<string>? Role { get; set; }

[Input("settings")]
private InputList<Inputs.DatabaseUserSettingGetArgs>? _settings;

/// <summary>
/// Contains optional settings for the user.
/// The `settings` block is documented below.
/// </summary>
public InputList<Inputs.DatabaseUserSettingGetArgs> Settings
{
get => _settings ?? (_settings = new InputList<Inputs.DatabaseUserSettingGetArgs>());
set => _settings = value;
}

public DatabaseUserState()
{
}
Expand Down
6 changes: 5 additions & 1 deletion sdk/dotnet/GetDatabaseUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public sealed class GetDatabaseUserResult
/// The role of the database user. The value will be either `primary` or `normal`.
/// </summary>
public readonly string Role;
public readonly ImmutableArray<Outputs.GetDatabaseUserSettingResult> Settings;

[OutputConstructor]
private GetDatabaseUserResult(
Expand All @@ -164,14 +165,17 @@ private GetDatabaseUserResult(

string password,

string role)
string role,

ImmutableArray<Outputs.GetDatabaseUserSettingResult> settings)
{
ClusterId = clusterId;
Id = id;
MysqlAuthPlugin = mysqlAuthPlugin;
Name = name;
Password = password;
Role = role;
Settings = settings;
}
}
}
12 changes: 12 additions & 0 deletions sdk/dotnet/Inputs/AppSpecArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ public InputList<Inputs.AppSpecEnvArgs> Envs
set => _envs = value;
}

[Input("features")]
private InputList<string>? _features;

/// <summary>
/// A list of the features applied to the app. The default buildpack can be overridden here. List of available buildpacks can be found using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/reference/apps/list-buildpacks/)
/// </summary>
public InputList<string> Features
{
get => _features ?? (_features = new InputList<string>());
set => _features = value;
}

[Input("functions")]
private InputList<Inputs.AppSpecFunctionArgs>? _functions;
public InputList<Inputs.AppSpecFunctionArgs> Functions
Expand Down
12 changes: 12 additions & 0 deletions sdk/dotnet/Inputs/AppSpecGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ public InputList<Inputs.AppSpecEnvGetArgs> Envs
set => _envs = value;
}

[Input("features")]
private InputList<string>? _features;

/// <summary>
/// A list of the features applied to the app. The default buildpack can be overridden here. List of available buildpacks can be found using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/reference/apps/list-buildpacks/)
/// </summary>
public InputList<string> Features
{
get => _features ?? (_features = new InputList<string>());
set => _features = value;
}

[Input("functions")]
private InputList<Inputs.AppSpecFunctionGetArgs>? _functions;
public InputList<Inputs.AppSpecFunctionGetArgs> Functions
Expand Down
38 changes: 38 additions & 0 deletions sdk/dotnet/Inputs/DatabaseUserSettingAclArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.DigitalOcean.Inputs
{

public sealed class DatabaseUserSettingAclArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// An identifier for the ACL, this will be automatically assigned when you create an ACL entry
/// </summary>
[Input("id")]
public Input<string>? Id { get; set; }

/// <summary>
/// The permission level applied to the ACL. This includes "admin", "consume", "produce", and "produceconsume". "admin" allows for producing and consuming as well as add/delete/update permission for topics. "consume" allows only for reading topic messages. "produce" allows only for writing topic messages. "produceconsume" allows for both reading and writing topic messages.
/// </summary>
[Input("permission", required: true)]
public Input<string> Permission { get; set; } = null!;

/// <summary>
/// A regex for matching the topic(s) that this ACL should apply to.
/// </summary>
[Input("topic", required: true)]
public Input<string> Topic { get; set; } = null!;

public DatabaseUserSettingAclArgs()
{
}
public static new DatabaseUserSettingAclArgs Empty => new DatabaseUserSettingAclArgs();
}
}
38 changes: 38 additions & 0 deletions sdk/dotnet/Inputs/DatabaseUserSettingAclGetArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.DigitalOcean.Inputs
{

public sealed class DatabaseUserSettingAclGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// An identifier for the ACL, this will be automatically assigned when you create an ACL entry
/// </summary>
[Input("id")]
public Input<string>? Id { get; set; }

/// <summary>
/// The permission level applied to the ACL. This includes "admin", "consume", "produce", and "produceconsume". "admin" allows for producing and consuming as well as add/delete/update permission for topics. "consume" allows only for reading topic messages. "produce" allows only for writing topic messages. "produceconsume" allows for both reading and writing topic messages.
/// </summary>
[Input("permission", required: true)]
public Input<string> Permission { get; set; } = null!;

/// <summary>
/// A regex for matching the topic(s) that this ACL should apply to.
/// </summary>
[Input("topic", required: true)]
public Input<string> Topic { get; set; } = null!;

public DatabaseUserSettingAclGetArgs()
{
}
public static new DatabaseUserSettingAclGetArgs Empty => new DatabaseUserSettingAclGetArgs();
}
}
34 changes: 34 additions & 0 deletions sdk/dotnet/Inputs/DatabaseUserSettingArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.DigitalOcean.Inputs
{

public sealed class DatabaseUserSettingArgs : global::Pulumi.ResourceArgs
{
[Input("acls")]
private InputList<Inputs.DatabaseUserSettingAclArgs>? _acls;

/// <summary>
/// A set of ACLs (Access Control Lists) specifying permission on topics with a Kafka cluster. The properties of an individual ACL are described below:
///
/// An individual ACL includes the following:
/// </summary>
public InputList<Inputs.DatabaseUserSettingAclArgs> Acls
{
get => _acls ?? (_acls = new InputList<Inputs.DatabaseUserSettingAclArgs>());
set => _acls = value;
}

public DatabaseUserSettingArgs()
{
}
public static new DatabaseUserSettingArgs Empty => new DatabaseUserSettingArgs();
}
}
Loading

0 comments on commit ef939de

Please sign in to comment.