Skip to content

Commit

Permalink
Regenerated SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
pierskarsenbarg committed Jan 20, 2025
1 parent 1a7908a commit 6b9c8dc
Show file tree
Hide file tree
Showing 16 changed files with 716 additions and 36 deletions.
64 changes: 61 additions & 3 deletions provider/cmd/pulumi-resource-dynatrace/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -42916,6 +42916,38 @@
}
}
},
"dynatrace:index/getApplicationDetectionRulesValue:getApplicationDetectionRulesValue": {
"properties": {
"applicationId": {
"type": "string",
"description": "Application ID\n"
},
"id": {
"type": "string",
"description": "Application Detection Rule ID\n"
},
"matcher": {
"type": "string",
"description": "Matcher\n"
},
"pattern": {
"type": "string",
"description": "Pattern\n"
}
},
"type": "object",
"required": [
"applicationId",
"id",
"matcher",
"pattern"
],
"language": {
"nodejs": {
"requiredInputs": []
}
}
},
"dynatrace:index/getDocumentsValue:getDocumentsValue": {
"properties": {
"id": {
Expand Down Expand Up @@ -59511,7 +59543,7 @@
"properties": {
"contents": {
"type": "string",
"description": "This attribute exists for backwards compatibility. You do not have to define it.\n"
"description": "Contains the JSON Code of the Dashboard\n"
}
},
"required": [
Expand All @@ -59520,15 +59552,18 @@
"inputProperties": {
"contents": {
"type": "string",
"description": "This attribute exists for backwards compatibility. You do not have to define it.\n"
"description": "Contains the JSON Code of the Dashboard\n"
}
},
"requiredInputs": [
"contents"
],
"stateInputs": {
"description": "Input properties used for looking up and filtering JsonDashboardBase resources.\n",
"properties": {
"contents": {
"type": "string",
"description": "This attribute exists for backwards compatibility. You do not have to define it.\n"
"description": "Contains the JSON Code of the Dashboard\n"
}
},
"type": "object"
Expand Down Expand Up @@ -75874,6 +75909,29 @@
]
}
},
"dynatrace:index/getApplicationDetectionRules:getApplicationDetectionRules": {
"description": "The application detection rules data source allows retrieval of all existing rules.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as dynatrace from \"@pulumi/dynatrace\";\n\nconst test = dynatrace.getApplicationDetectionRules({});\nexport const applicationDetectionRules = test;\n```\n```python\nimport pulumi\nimport pulumi_dynatrace as dynatrace\n\ntest = dynatrace.get_application_detection_rules()\npulumi.export(\"applicationDetectionRules\", test)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Dynatrace = Pulumi.Dynatrace;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Dynatrace.GetApplicationDetectionRules.Invoke();\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"applicationDetectionRules\"] = test,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttest, err := dynatrace.GetApplicationDetectionRules(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"applicationDetectionRules\", test)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.dynatrace.DynatraceFunctions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var test = DynatraceFunctions.getApplicationDetectionRules();\n\n ctx.export(\"applicationDetectionRules\", test.applyValue(getApplicationDetectionRulesResult -\u003e getApplicationDetectionRulesResult));\n }\n}\n```\n```yaml\nvariables:\n test:\n fn::invoke:\n function: dynatrace:getApplicationDetectionRules\n arguments: {}\noutputs:\n applicationDetectionRules: ${test}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n",
"outputs": {
"description": "A collection of values returned by getApplicationDetectionRules.\n",
"properties": {
"id": {
"type": "string",
"description": "The provider-assigned unique ID for this managed resource.\n"
},
"values": {
"type": "array",
"items": {
"$ref": "#/types/dynatrace:index/getApplicationDetectionRulesValue:getApplicationDetectionRulesValue"
}
}
},
"type": "object",
"required": [
"values",
"id"
]
}
},
"dynatrace:index/getAttackAlerting:getAttackAlerting": {
"description": "The `dynatrace.AttackAlerting` data source allows the attack alerting profile ID to be retrieved by its name.\n\n- `name` (String) - The name of the attack alerting profile\n\nIf multiple services match the given criteria, the first result will be retrieved.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as dynatrace from \"@pulumi/dynatrace\";\n\nconst example = dynatrace.getAttackAlerting({\n name: \"Terraform Example\",\n});\nexport const id = example.then(example =\u003e example.id);\n```\n```python\nimport pulumi\nimport pulumi_dynatrace as dynatrace\n\nexample = dynatrace.get_attack_alerting(name=\"Terraform Example\")\npulumi.export(\"id\", example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Dynatrace = Pulumi.Dynatrace;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Dynatrace.GetAttackAlerting.Invoke(new()\n {\n Name = \"Terraform Example\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"id\"] = example.Apply(getAttackAlertingResult =\u003e getAttackAlertingResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := dynatrace.LookupAttackAlerting(ctx, \u0026dynatrace.LookupAttackAlertingArgs{\n\t\t\tName: \"Terraform Example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"id\", example.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.dynatrace.DynatraceFunctions;\nimport com.pulumi.dynatrace.inputs.GetAttackAlertingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = DynatraceFunctions.getAttackAlerting(GetAttackAlertingArgs.builder()\n .name(\"Terraform Example\")\n .build());\n\n ctx.export(\"id\", example.applyValue(getAttackAlertingResult -\u003e getAttackAlertingResult.id()));\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: dynatrace:getAttackAlerting\n arguments:\n name: Terraform Example\noutputs:\n id: ${example.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n",
"inputs": {
Expand Down
111 changes: 111 additions & 0 deletions sdk/dotnet/GetApplicationDetectionRules.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
// *** 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
{
public static class GetApplicationDetectionRules
{
/// <summary>
/// The application detection rules data source allows retrieval of all existing rules.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Dynatrace = Pulumi.Dynatrace;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var test = Dynatrace.GetApplicationDetectionRules.Invoke();
///
/// return new Dictionary&lt;string, object?&gt;
/// {
/// ["applicationDetectionRules"] = test,
/// };
/// });
/// ```
/// </summary>
public static Task<GetApplicationDetectionRulesResult> InvokeAsync(InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetApplicationDetectionRulesResult>("dynatrace:index/getApplicationDetectionRules:getApplicationDetectionRules", InvokeArgs.Empty, options.WithDefaults());

/// <summary>
/// The application detection rules data source allows retrieval of all existing rules.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Dynatrace = Pulumi.Dynatrace;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var test = Dynatrace.GetApplicationDetectionRules.Invoke();
///
/// return new Dictionary&lt;string, object?&gt;
/// {
/// ["applicationDetectionRules"] = test,
/// };
/// });
/// ```
/// </summary>
public static Output<GetApplicationDetectionRulesResult> Invoke(InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetApplicationDetectionRulesResult>("dynatrace:index/getApplicationDetectionRules:getApplicationDetectionRules", InvokeArgs.Empty, options.WithDefaults());

/// <summary>
/// The application detection rules data source allows retrieval of all existing rules.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Dynatrace = Pulumi.Dynatrace;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var test = Dynatrace.GetApplicationDetectionRules.Invoke();
///
/// return new Dictionary&lt;string, object?&gt;
/// {
/// ["applicationDetectionRules"] = test,
/// };
/// });
/// ```
/// </summary>
public static Output<GetApplicationDetectionRulesResult> Invoke(InvokeOutputOptions options)
=> global::Pulumi.Deployment.Instance.Invoke<GetApplicationDetectionRulesResult>("dynatrace:index/getApplicationDetectionRules:getApplicationDetectionRules", InvokeArgs.Empty, options.WithDefaults());
}


[OutputType]
public sealed class GetApplicationDetectionRulesResult
{
/// <summary>
/// The provider-assigned unique ID for this managed resource.
/// </summary>
public readonly string Id;
public readonly ImmutableArray<Outputs.GetApplicationDetectionRulesValueResult> Values;

[OutputConstructor]
private GetApplicationDetectionRulesResult(
string id,

ImmutableArray<Outputs.GetApplicationDetectionRulesValueResult> values)
{
Id = id;
Values = values;
}
}
}
12 changes: 6 additions & 6 deletions sdk/dotnet/JsonDashboardBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pulumiverse.Dynatrace
public partial class JsonDashboardBase : global::Pulumi.CustomResource
{
/// <summary>
/// This attribute exists for backwards compatibility. You do not have to define it.
/// Contains the JSON Code of the Dashboard
/// </summary>
[Output("contents")]
public Output<string> Contents { get; private set; } = null!;
Expand All @@ -27,7 +27,7 @@ public partial class JsonDashboardBase : global::Pulumi.CustomResource
/// <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 JsonDashboardBase(string name, JsonDashboardBaseArgs? args = null, CustomResourceOptions? options = null)
public JsonDashboardBase(string name, JsonDashboardBaseArgs args, CustomResourceOptions? options = null)
: base("dynatrace:index/jsonDashboardBase:JsonDashboardBase", name, args ?? new JsonDashboardBaseArgs(), MakeResourceOptions(options, ""))
{
}
Expand Down Expand Up @@ -67,10 +67,10 @@ public static JsonDashboardBase Get(string name, Input<string> id, JsonDashboard
public sealed class JsonDashboardBaseArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// This attribute exists for backwards compatibility. You do not have to define it.
/// Contains the JSON Code of the Dashboard
/// </summary>
[Input("contents")]
public Input<string>? Contents { get; set; }
[Input("contents", required: true)]
public Input<string> Contents { get; set; } = null!;

public JsonDashboardBaseArgs()
{
Expand All @@ -81,7 +81,7 @@ public JsonDashboardBaseArgs()
public sealed class JsonDashboardBaseState : global::Pulumi.ResourceArgs
{
/// <summary>
/// This attribute exists for backwards compatibility. You do not have to define it.
/// Contains the JSON Code of the Dashboard
/// </summary>
[Input("contents")]
public Input<string>? Contents { get; set; }
Expand Down
50 changes: 50 additions & 0 deletions sdk/dotnet/Outputs/GetApplicationDetectionRulesValueResult.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// *** 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.Outputs
{

[OutputType]
public sealed class GetApplicationDetectionRulesValueResult
{
/// <summary>
/// Application ID
/// </summary>
public readonly string ApplicationId;
/// <summary>
/// Application Detection Rule ID
/// </summary>
public readonly string Id;
/// <summary>
/// Matcher
/// </summary>
public readonly string Matcher;
/// <summary>
/// Pattern
/// </summary>
public readonly string Pattern;

[OutputConstructor]
private GetApplicationDetectionRulesValueResult(
string applicationId,

string id,

string matcher,

string pattern)
{
ApplicationId = applicationId;
Id = id;
Matcher = matcher;
Pattern = pattern;
}
}
}
90 changes: 90 additions & 0 deletions sdk/go/dynatrace/getApplicationDetectionRules.go

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

Loading

0 comments on commit 6b9c8dc

Please sign in to comment.