Skip to content

Commit

Permalink
Merge pull request #139 from pulumiverse/dependabot/go_modules/provid…
Browse files Browse the repository at this point in the history
…er/modules-06f0961511

provider(deps): bump github.com/dynatrace-oss/terraform-provider-dynatrace from 1.69.1 to 1.70.0 in /provider in the modules group
  • Loading branch information
pierskarsenbarg authored Nov 17, 2024
2 parents 401431e + 0393974 commit 73d9ae4
Show file tree
Hide file tree
Showing 48 changed files with 4,704 additions and 80 deletions.
233 changes: 221 additions & 12 deletions provider/cmd/pulumi-resource-dynatrace/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 @@ -7,7 +7,7 @@ toolchain go1.23.2
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240520223432-0c0bf0d65f10

require (
github.com/dynatrace-oss/terraform-provider-dynatrace v1.69.1
github.com/dynatrace-oss/terraform-provider-dynatrace v1.70.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.94.0
github.com/pulumi/pulumi/sdk/v3 v3.137.0
)
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1335,8 +1335,8 @@ github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cn
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
github.com/dynatrace-oss/terraform-provider-dynatrace v1.69.1 h1:TpbK/WaWaiQCbPKNqa2tnJzsRN7Sx6wGroV3lWxK4sA=
github.com/dynatrace-oss/terraform-provider-dynatrace v1.69.1/go.mod h1:xZtzuinFwp66xA4IliYJ6SFuxEBJPr95p3tGBOWtr/s=
github.com/dynatrace-oss/terraform-provider-dynatrace v1.70.0 h1:BmKTGpv2ruMK4lgMSqe2X8kyctZsBfQPxXBqGgFp/Hs=
github.com/dynatrace-oss/terraform-provider-dynatrace v1.70.0/go.mod h1:xZtzuinFwp66xA4IliYJ6SFuxEBJPr95p3tGBOWtr/s=
github.com/dynatrace/dynatrace-configuration-as-code-core v0.7.0 h1:ITdHSNd3VCEF0NJqg5GKFstAqQWq0gG4Mcri8OPU9nM=
github.com/dynatrace/dynatrace-configuration-as-code-core v0.7.0/go.mod h1:MASzWOV2hzoo8nbXuMcgMIB3XmGrcm16Fc0rakhwiTw=
github.com/edsrzf/mmap-go v1.1.0 h1:6EUwBLQ/Mcr1EYLE4Tn1VdW1A4ckqCQWZBw8Hr0kjpQ=
Expand Down
8 changes: 8 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ func Provider() tfbridge.ProviderInfo {
"dynatrace_cloudfoundry_credentials": {Tok: dynatraceResource(mainMod, "CloudfoundryCredentials")},
"dynatrace_cloud_foundry": {Tok: dynatraceResource(mainMod, "CloudFoundry")},
"dynatrace_cloudapp_workloaddetection": {Tok: dynatraceResource(mainMod, "CloudappWorkloaddetection")},
"dynatrace_cloud_development_environments": {
Tok: tfbridge.MakeResource(mainPkg, mainMod, "CloudDevelopmentEnvironments"),
Fields: map[string]*tfbridge.SchemaInfo{
"cloud_development_environments": {
CSharpName: "Environments",
},
},
},
"dynatrace_connectivity_alerts": {
Tok: dynatraceResource(mainMod, "ConnectivityAlerts"),
Fields: map[string]*tfbridge.SchemaInfo{"connectivity_alerts": {CSharpName: "EnableConnectivityAlerts"}},
Expand Down
106 changes: 106 additions & 0 deletions sdk/dotnet/CloudDevelopmentEnvironments.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
// *** 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;
using Pulumi;

namespace Pulumiverse.Dynatrace
{
[DynatraceResourceType("dynatrace:index/cloudDevelopmentEnvironments:CloudDevelopmentEnvironments")]
public partial class CloudDevelopmentEnvironments : global::Pulumi.CustomResource
{
/// <summary>
/// The URL to allow app development from. E.g. `https://*.my-company.my-cde-provider.com`.
/// </summary>
[Output("cloudDevelopmentEnvironments")]
public Output<ImmutableArray<string>> Environments { get; private set; } = null!;


/// <summary>
/// Create a CloudDevelopmentEnvironments resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public CloudDevelopmentEnvironments(string name, CloudDevelopmentEnvironmentsArgs? args = null, CustomResourceOptions? options = null)
: base("dynatrace:index/cloudDevelopmentEnvironments:CloudDevelopmentEnvironments", name, args ?? new CloudDevelopmentEnvironmentsArgs(), MakeResourceOptions(options, ""))
{
}

private CloudDevelopmentEnvironments(string name, Input<string> id, CloudDevelopmentEnvironmentsState? state = null, CustomResourceOptions? options = null)
: base("dynatrace:index/cloudDevelopmentEnvironments:CloudDevelopmentEnvironments", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "github://api.github.com/pulumiverse",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing CloudDevelopmentEnvironments resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="state">Any extra arguments used during the lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static CloudDevelopmentEnvironments Get(string name, Input<string> id, CloudDevelopmentEnvironmentsState? state = null, CustomResourceOptions? options = null)
{
return new CloudDevelopmentEnvironments(name, id, state, options);
}
}

public sealed class CloudDevelopmentEnvironmentsArgs : global::Pulumi.ResourceArgs
{
[Input("cloudDevelopmentEnvironments")]
private InputList<string>? _cloudDevelopmentEnvironments;

/// <summary>
/// The URL to allow app development from. E.g. `https://*.my-company.my-cde-provider.com`.
/// </summary>
public InputList<string> Environments
{
get => _cloudDevelopmentEnvironments ?? (_cloudDevelopmentEnvironments = new InputList<string>());
set => _cloudDevelopmentEnvironments = value;
}

public CloudDevelopmentEnvironmentsArgs()
{
}
public static new CloudDevelopmentEnvironmentsArgs Empty => new CloudDevelopmentEnvironmentsArgs();
}

public sealed class CloudDevelopmentEnvironmentsState : global::Pulumi.ResourceArgs
{
[Input("cloudDevelopmentEnvironments")]
private InputList<string>? _cloudDevelopmentEnvironments;

/// <summary>
/// The URL to allow app development from. E.g. `https://*.my-company.my-cde-provider.com`.
/// </summary>
public InputList<string> Environments
{
get => _cloudDevelopmentEnvironments ?? (_cloudDevelopmentEnvironments = new InputList<string>());
set => _cloudDevelopmentEnvironments = value;
}

public CloudDevelopmentEnvironmentsState()
{
}
public static new CloudDevelopmentEnvironmentsState Empty => new CloudDevelopmentEnvironmentsState();
}
}
213 changes: 211 additions & 2 deletions sdk/dotnet/DirectShares.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,224 @@ namespace Pulumiverse.Dynatrace
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using System.Text.Json;
/// using Pulumi;
/// using Dynatrace = Pulumiverse.Dynatrace;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var @this = new Dynatrace.DirectShares("this", new()
/// var thisDocument = new Dynatrace.Document("thisDocument", new()
/// {
/// Type = "dashboard",
/// Content = JsonSerializer.Serialize(new Dictionary&lt;string, object?&gt;
/// {
/// ["version"] = 13,
/// ["variables"] = new[]
/// {
/// },
/// ["tiles"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["0"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["type"] = "markdown",
/// ["title"] = "",
/// ["content"] = "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)",
/// },
/// ["1"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["type"] = "data",
/// ["title"] = "",
/// ["query"] = "timeseries avg(dt.host.cpu.user)",
/// ["queryConfig"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["additionalFilters"] = new Dictionary&lt;string, object?&gt;
/// {
/// },
/// ["version"] = "4.3.1",
/// ["datatype"] = "metrics",
/// ["metricKey"] = "dt.host.cpu.user",
/// ["aggregation"] = "avg",
/// ["by"] = new[]
/// {
/// },
/// },
/// ["subType"] = "dql-builder-metrics",
/// ["visualization"] = "lineChart",
/// ["visualizationSettings"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["thresholds"] = new[]
/// {
/// },
/// ["chartSettings"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["gapPolicy"] = "connect",
/// ["circleChartSettings"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["groupingThresholdType"] = "relative",
/// ["groupingThresholdValue"] = 0,
/// ["valueType"] = "relative",
/// },
/// ["categoryOverrides"] = new Dictionary&lt;string, object?&gt;
/// {
/// },
/// ["fieldMapping"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["timestamp"] = "timeframe",
/// ["leftAxisValues"] = new[]
/// {
/// "avg(dt.host.cpu.user)",
/// },
/// ["leftAxisDimensions"] = new[]
/// {
/// },
/// ["fields"] = new[]
/// {
/// },
/// ["values"] = new[]
/// {
/// },
/// },
/// },
/// ["singleValue"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["showLabel"] = true,
/// ["label"] = "",
/// ["prefixIcon"] = "",
/// ["autoscale"] = true,
/// ["alignment"] = "center",
/// ["colorThresholdTarget"] = "value",
/// },
/// ["table"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["rowDensity"] = "condensed",
/// ["enableSparklines"] = false,
/// ["hiddenColumns"] = new[]
/// {
/// },
/// ["lineWrapIds"] = new[]
/// {
/// },
/// ["columnWidths"] = new Dictionary&lt;string, object?&gt;
/// {
/// },
/// },
/// },
/// },
/// ["2"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["type"] = "data",
/// ["title"] = "",
/// ["query"] = "timeseries avg(dt.host.memory.used)",
/// ["queryConfig"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["additionalFilters"] = new Dictionary&lt;string, object?&gt;
/// {
/// },
/// ["version"] = "4.3.1",
/// ["datatype"] = "metrics",
/// ["metricKey"] = "dt.host.memory.used",
/// ["aggregation"] = "avg",
/// ["by"] = new[]
/// {
/// },
/// },
/// ["subType"] = "dql-builder-metrics",
/// ["visualization"] = "lineChart",
/// ["visualizationSettings"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["thresholds"] = new[]
/// {
/// },
/// ["chartSettings"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["gapPolicy"] = "connect",
/// ["circleChartSettings"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["groupingThresholdType"] = "relative",
/// ["groupingThresholdValue"] = 0,
/// ["valueType"] = "relative",
/// },
/// ["categoryOverrides"] = new Dictionary&lt;string, object?&gt;
/// {
/// },
/// ["fieldMapping"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["timestamp"] = "timeframe",
/// ["leftAxisValues"] = new[]
/// {
/// "avg(dt.host.memory.used)",
/// },
/// ["leftAxisDimensions"] = new[]
/// {
/// },
/// ["fields"] = new[]
/// {
/// },
/// ["values"] = new[]
/// {
/// },
/// },
/// ["categoricalBarChartSettings"] = new Dictionary&lt;string, object?&gt;
/// {
/// },
/// },
/// ["singleValue"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["showLabel"] = true,
/// ["label"] = "",
/// ["prefixIcon"] = "",
/// ["autoscale"] = true,
/// ["alignment"] = "center",
/// ["colorThresholdTarget"] = "value",
/// },
/// ["table"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["rowDensity"] = "condensed",
/// ["enableSparklines"] = false,
/// ["hiddenColumns"] = new[]
/// {
/// },
/// ["lineWrapIds"] = new[]
/// {
/// },
/// ["columnWidths"] = new Dictionary&lt;string, object?&gt;
/// {
/// },
/// },
/// },
/// },
/// },
/// ["layouts"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["0"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["x"] = 0,
/// ["y"] = 0,
/// ["w"] = 24,
/// ["h"] = 14,
/// },
/// ["1"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["x"] = 0,
/// ["y"] = 14,
/// ["w"] = 9,
/// ["h"] = 6,
/// },
/// ["2"] = new Dictionary&lt;string, object?&gt;
/// {
/// ["x"] = 15,
/// ["y"] = 14,
/// ["w"] = 9,
/// ["h"] = 6,
/// },
/// },
/// }),
/// });
///
/// var thisDirectShares = new Dynatrace.DirectShares("thisDirectShares", new()
/// {
/// DocumentId = thisDocument.Id,
/// Access = "read-write",
/// DocumentId = "441564f0-23c9-40ef-b344-18c02c23d712",
/// Recipients = new Dynatrace.Inputs.DirectSharesRecipientsArgs
/// {
/// Recipients = new[]
Expand Down
Loading

0 comments on commit 73d9ae4

Please sign in to comment.