Skip to content

Commit

Permalink
Upgrade terraform-provider-sumologic to v2.26.0 (#156)
Browse files Browse the repository at this point in the history
Looking good! No breaking changes found.

New resources:

index/mutingSchedule.MutingSchedule
  • Loading branch information
pulumi-bot committed Sep 7, 2023
1 parent 23a0563 commit e768b35
Show file tree
Hide file tree
Showing 43 changed files with 13,255 additions and 12 deletions.
7,852 changes: 7,852 additions & 0 deletions provider/cmd/pulumi-resource-sumologic/bridge-metadata.json

Large diffs are not rendered by default.

251 changes: 247 additions & 4 deletions provider/cmd/pulumi-resource-sumologic/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 @@ -5,7 +5,7 @@ go 1.21
require (
github.com/SumoLogic/terraform-provider-sumologic v0.0.0
github.com/hashicorp/terraform-plugin-sdk v1.17.2
github.com/pulumi/pulumi-terraform-bridge/v3 v3.56.2
github.com/pulumi/pulumi-terraform-bridge/v3 v3.58.0
github.com/pulumi/pulumi/sdk/v3 v3.76.1
)

Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1702,8 +1702,8 @@ github.com/pulumi/pulumi-java/pkg v0.9.4 h1:gIQZmlUI1o9ye8CL2XFqtmAX6Lwr9uj/+Hzj
github.com/pulumi/pulumi-java/pkg v0.9.4/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1/go.mod h1:7OeUPH8rpt5ipyj9EFcnXpuzQ8SHL0dyqdfa8nOacdk=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.56.2 h1:NY9kPxzquV8rW/YYYlu0o7LLF/NmfUGEY/uZ06h/CMw=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.56.2/go.mod h1:ykaml8e6XS/yI9JOcNZ+6gLirs6EWTB0FmjbT+JyEdU=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.58.0 h1:1vQokJDOEQQuPAsvIHoqb0x7yGflfmXYcjkHrT5tkXg=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.58.0/go.mod h1:ykaml8e6XS/yI9JOcNZ+6gLirs6EWTB0FmjbT+JyEdU=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 h1:rIzMmtcVpPX8ynaz6/nW5AHNY63DiNfCohqmxWvMpM4=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4/go.mod h1:Kt8RIZWa/N8rW3+0g6NrqCBmF3o+HuIhFaZpssEkG6w=
github.com/pulumi/pulumi-yaml v1.1.1 h1:8pyBNIU8+ym0wYpjhsCqN+cutygfK1XbhY2YEeNfyXY=
Expand Down
16 changes: 14 additions & 2 deletions sdk/dotnet/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
AdditionalSecretOutputs =
{
"headers",
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down Expand Up @@ -215,7 +219,11 @@ public InputMap<string> CustomHeaders
public InputMap<string> Headers
{
get => _headers ?? (_headers = new InputMap<string>());
set => _headers = value;
set
{
var emptySecret = Output.CreateSecret(ImmutableDictionary.Create<string, string>());
_headers = Output.All(value, emptySecret).Apply(v => v[0]);
}
}

/// <summary>
Expand Down Expand Up @@ -297,7 +305,11 @@ public InputMap<string> CustomHeaders
public InputMap<string> Headers
{
get => _headers ?? (_headers = new InputMap<string>());
set => _headers = value;
set
{
var emptySecret = Output.CreateSecret(ImmutableDictionary.Create<string, string>());
_headers = Output.All(value, emptySecret).Apply(v => v[0]);
}
}

/// <summary>
Expand Down
40 changes: 40 additions & 0 deletions sdk/dotnet/Inputs/MutingScheduleMonitorArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// *** 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.SumoLogic.Inputs
{

public sealed class MutingScheduleMonitorArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// True if the schedule applies to all monitors
///
/// [1]: https://help.sumologic.com/docs/alerts/monitors/muting-schedules/
/// </summary>
[Input("all")]
public Input<bool>? All { get; set; }

[Input("ids")]
private InputList<string>? _ids;

/// <summary>
/// List of monitor Ids in hex. Must be empty if `all` is true.
/// </summary>
public InputList<string> Ids
{
get => _ids ?? (_ids = new InputList<string>());
set => _ids = value;
}

public MutingScheduleMonitorArgs()
{
}
public static new MutingScheduleMonitorArgs Empty => new MutingScheduleMonitorArgs();
}
}
40 changes: 40 additions & 0 deletions sdk/dotnet/Inputs/MutingScheduleMonitorGetArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// *** 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.SumoLogic.Inputs
{

public sealed class MutingScheduleMonitorGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// True if the schedule applies to all monitors
///
/// [1]: https://help.sumologic.com/docs/alerts/monitors/muting-schedules/
/// </summary>
[Input("all")]
public Input<bool>? All { get; set; }

[Input("ids")]
private InputList<string>? _ids;

/// <summary>
/// List of monitor Ids in hex. Must be empty if `all` is true.
/// </summary>
public InputList<string> Ids
{
get => _ids ?? (_ids = new InputList<string>());
set => _ids = value;
}

public MutingScheduleMonitorGetArgs()
{
}
public static new MutingScheduleMonitorGetArgs Empty => new MutingScheduleMonitorGetArgs();
}
}
55 changes: 55 additions & 0 deletions sdk/dotnet/Inputs/MutingScheduleScheduleArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// *** 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.SumoLogic.Inputs
{

public sealed class MutingScheduleScheduleArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Duration of the muting in minutes
/// </summary>
[Input("duration", required: true)]
public Input<int> Duration { get; set; } = null!;

/// <summary>
/// RRule (Recurrence Rule) Below are some examples of how to represent recurring events using the RRULE format:
/// A rule occurring on the third Sunday of April would be as follows: `FREQ=YEARLY;BYMONTH=4;BYDAY=SU;BYSETPOS=3`
/// An event occurring on the first and second Monday of October would be specified by the rule: `FREQ=YEARLY;BYMONTH=10;BYDAY=MO;BYSETPOS=1,2`
/// Event that repeats monthly: every 29th of every other month! `FREQ=MONTHLY;INTERVAL=2;BYMONTHDAY=29`
/// (https://freetools.textmagic.com/rrule-generator)
/// </summary>
[Input("rrule")]
public Input<string>? Rrule { get; set; }

/// <summary>
/// Schedule start date in the format of `yyyy-mm-dd`
/// </summary>
[Input("startDate", required: true)]
public Input<string> StartDate { get; set; } = null!;

/// <summary>
/// Schedule start time in the format of `hh:mm`
/// </summary>
[Input("startTime", required: true)]
public Input<string> StartTime { get; set; } = null!;

/// <summary>
/// Time zone for the schedule per
/// [IANA Time Zone Database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
/// </summary>
[Input("timezone", required: true)]
public Input<string> Timezone { get; set; } = null!;

public MutingScheduleScheduleArgs()
{
}
public static new MutingScheduleScheduleArgs Empty => new MutingScheduleScheduleArgs();
}
}
55 changes: 55 additions & 0 deletions sdk/dotnet/Inputs/MutingScheduleScheduleGetArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// *** 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.SumoLogic.Inputs
{

public sealed class MutingScheduleScheduleGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Duration of the muting in minutes
/// </summary>
[Input("duration", required: true)]
public Input<int> Duration { get; set; } = null!;

/// <summary>
/// RRule (Recurrence Rule) Below are some examples of how to represent recurring events using the RRULE format:
/// A rule occurring on the third Sunday of April would be as follows: `FREQ=YEARLY;BYMONTH=4;BYDAY=SU;BYSETPOS=3`
/// An event occurring on the first and second Monday of October would be specified by the rule: `FREQ=YEARLY;BYMONTH=10;BYDAY=MO;BYSETPOS=1,2`
/// Event that repeats monthly: every 29th of every other month! `FREQ=MONTHLY;INTERVAL=2;BYMONTHDAY=29`
/// (https://freetools.textmagic.com/rrule-generator)
/// </summary>
[Input("rrule")]
public Input<string>? Rrule { get; set; }

/// <summary>
/// Schedule start date in the format of `yyyy-mm-dd`
/// </summary>
[Input("startDate", required: true)]
public Input<string> StartDate { get; set; } = null!;

/// <summary>
/// Schedule start time in the format of `hh:mm`
/// </summary>
[Input("startTime", required: true)]
public Input<string> StartTime { get; set; } = null!;

/// <summary>
/// Time zone for the schedule per
/// [IANA Time Zone Database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
/// </summary>
[Input("timezone", required: true)]
public Input<string> Timezone { get; set; } = null!;

public MutingScheduleScheduleGetArgs()
{
}
public static new MutingScheduleScheduleGetArgs Empty => new MutingScheduleScheduleGetArgs();
}
}
30 changes: 30 additions & 0 deletions sdk/dotnet/Monitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,12 @@ public partial class Monitor : global::Pulumi.CustomResource
[Output("statuses")]
public Output<ImmutableArray<string>> Statuses { get; private set; } = null!;

/// <summary>
/// A map defining tag keys and tag values for the Monitor.
/// </summary>
[Output("tags")]
public Output<ImmutableDictionary<string, string>?> Tags { get; private set; } = null!;

/// <summary>
/// Defines the conditions of when to send notifications. NOTE: `trigger_conditions` supplants the `triggers` argument.
/// </summary>
Expand Down Expand Up @@ -607,6 +613,18 @@ public InputList<string> Statuses
set => _statuses = value;
}

[Input("tags")]
private InputMap<string>? _tags;

/// <summary>
/// A map defining tag keys and tag values for the Monitor.
/// </summary>
public InputMap<string> Tags
{
get => _tags ?? (_tags = new InputMap<string>());
set => _tags = value;
}

/// <summary>
/// Defines the conditions of when to send notifications. NOTE: `trigger_conditions` supplants the `triggers` argument.
/// </summary>
Expand Down Expand Up @@ -803,6 +821,18 @@ public InputList<string> Statuses
set => _statuses = value;
}

[Input("tags")]
private InputMap<string>? _tags;

/// <summary>
/// A map defining tag keys and tag values for the Monitor.
/// </summary>
public InputMap<string> Tags
{
get => _tags ?? (_tags = new InputMap<string>());
set => _tags = value;
}

/// <summary>
/// Defines the conditions of when to send notifications. NOTE: `trigger_conditions` supplants the `triggers` argument.
/// </summary>
Expand Down
Loading

0 comments on commit e768b35

Please sign in to comment.