Skip to content

Commit

Permalink
Merge pull request #47 from lbrlabs/grafana_1_31_1
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxxstorm authored Nov 28, 2022
2 parents 648cf0d + eda688a commit 7bed54d
Show file tree
Hide file tree
Showing 227 changed files with 4,199 additions and 1,973 deletions.
426 changes: 420 additions & 6 deletions go.work.sum

Large diffs are not rendered by default.

432 changes: 230 additions & 202 deletions provider/cmd/pulumi-resource-grafana/schema.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ go 1.19
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220824175045-450992f2f5b9

require (
github.com/grafana/terraform-provider-grafana v1.30.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.33.0
github.com/pulumi/pulumi/sdk/v3 v3.44.3
github.com/grafana/terraform-provider-grafana v1.31.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.30.0
github.com/pulumi/pulumi/sdk/v3 v3.40.0
)

require (
Expand Down
1 change: 1 addition & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ func Provider() tfbridge.ProviderInfo {
"grafana_role_assignment": {Tok: grafanaResource(grafanaMod, "RoleAssignment")},
"grafana_rule_group": {Tok: grafanaResource(grafanaMod, "RuleGroup")},
"grafana_service_account": {Tok: grafanaResource(grafanaMod, "ServiceAccount")},
"grafana_service_account_permission": {Tok: grafanaResource(grafanaMod, "ServiceAccountPermission")},
"grafana_service_account_token": {Tok: grafanaResource(grafanaMod, "ServiceAccountToken")},
"grafana_synthetic_monitoring_check": {Tok: grafanaResource(grafanaMod, "SyntheticMonitoringCheck")},
"grafana_synthetic_monitoring_installation": {Tok: grafanaResource(grafanaMod, "SyntheticMonitoringInstallation")},
Expand Down
16 changes: 2 additions & 14 deletions sdk/dotnet/Grafana/AlertNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
{
Version = Utilities.Version,
PluginDownloadURL = "github://api.github.com/lbrlabs",
AdditionalSecretOutputs =
{
"secureSettings",
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down Expand Up @@ -183,11 +179,7 @@ public sealed class AlertNotificationArgs : global::Pulumi.ResourceArgs
public InputMap<object> SecureSettings
{
get => _secureSettings ?? (_secureSettings = new InputMap<object>());
set
{
var emptySecret = Output.CreateSecret(ImmutableDictionary.Create<string, object>());
_secureSettings = Output.All(value, emptySecret).Apply(v => v[0]);
}
set => _secureSettings = value;
}

/// <summary>
Expand Down Expand Up @@ -261,11 +253,7 @@ public sealed class AlertNotificationState : global::Pulumi.ResourceArgs
public InputMap<object> SecureSettings
{
get => _secureSettings ?? (_secureSettings = new InputMap<object>());
set
{
var emptySecret = Output.CreateSecret(ImmutableDictionary.Create<string, object>());
_secureSettings = Output.All(value, emptySecret).Apply(v => v[0]);
}
set => _secureSettings = value;
}

/// <summary>
Expand Down
15 changes: 1 addition & 14 deletions sdk/dotnet/Grafana/ApiKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
{
Version = Utilities.Version,
PluginDownloadURL = "github://api.github.com/lbrlabs",
AdditionalSecretOutputs =
{
"key",
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down Expand Up @@ -151,16 +147,7 @@ public sealed class ApiKeyState : global::Pulumi.ResourceArgs
public Input<string>? Expiration { get; set; }

[Input("key")]
private Input<string>? _key;
public Input<string>? Key
{
get => _key;
set
{
var emptySecret = Output.CreateSecret(0);
_key = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}
public Input<string>? Key { get; set; }

[Input("name")]
public Input<string>? Name { get; set; }
Expand Down
18 changes: 2 additions & 16 deletions sdk/dotnet/Grafana/CloudApiKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
{
Version = Utilities.Version,
PluginDownloadURL = "github://api.github.com/lbrlabs",
AdditionalSecretOutputs =
{
"key",
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down Expand Up @@ -148,21 +144,11 @@ public sealed class CloudApiKeyState : global::Pulumi.ResourceArgs
[Input("cloudOrgSlug")]
public Input<string>? CloudOrgSlug { get; set; }

[Input("key")]
private Input<string>? _key;

/// <summary>
/// The generated API key.
/// </summary>
public Input<string>? Key
{
get => _key;
set
{
var emptySecret = Output.CreateSecret(0);
_key = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}
[Input("key")]
public Input<string>? Key { get; set; }

/// <summary>
/// Name of the API key.
Expand Down
9 changes: 6 additions & 3 deletions sdk/dotnet/Grafana/CloudStack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ public partial class CloudStack : global::Pulumi.CustomResource

/// <summary>
/// Region slug to assign to this stack.
/// Changing region will destroy the existing stack and create a new one in the desired region
/// Changing region will destroy the existing stack and create a new one in the desired region.
/// Available input au (GCP Australia), eu (GCP Belgium), us (GCP US Central), prod-ap-southeast-0 (GCP Singapore), prod-gb-south-0 (GCP UK), prod-ap-south-0 (GCP India), prod-sa-east-0 (GCP Brazil)
/// </summary>
[Output("regionSlug")]
public Output<string?> RegionSlug { get; private set; } = null!;
Expand Down Expand Up @@ -266,7 +267,8 @@ public sealed class CloudStackArgs : global::Pulumi.ResourceArgs

/// <summary>
/// Region slug to assign to this stack.
/// Changing region will destroy the existing stack and create a new one in the desired region
/// Changing region will destroy the existing stack and create a new one in the desired region.
/// Available input au (GCP Australia), eu (GCP Belgium), us (GCP US Central), prod-ap-southeast-0 (GCP Singapore), prod-gb-south-0 (GCP UK), prod-ap-south-0 (GCP India), prod-sa-east-0 (GCP Brazil)
/// </summary>
[Input("regionSlug")]
public Input<string>? RegionSlug { get; set; }
Expand Down Expand Up @@ -420,7 +422,8 @@ public sealed class CloudStackState : global::Pulumi.ResourceArgs

/// <summary>
/// Region slug to assign to this stack.
/// Changing region will destroy the existing stack and create a new one in the desired region
/// Changing region will destroy the existing stack and create a new one in the desired region.
/// Available input au (GCP Australia), eu (GCP Belgium), us (GCP US Central), prod-ap-southeast-0 (GCP Singapore), prod-gb-south-0 (GCP UK), prod-ap-south-0 (GCP India), prod-sa-east-0 (GCP Brazil)
/// </summary>
[Input("regionSlug")]
public Input<string>? RegionSlug { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Grafana/ContactPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Lbrlabs.PulumiPackage.Grafana
/// <summary>
/// Manages Grafana Alerting contact points.
///
/// * [Official documentation](https://grafana.com/docs/grafana/next/alerting/contact-points)
/// * [Official documentation](https://grafana.com/docs/grafana/latest/alerting/contact-points)
/// * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#contact-points)
///
/// This resource requires Grafana 9.1.0 or later.
Expand Down
Loading

0 comments on commit 7bed54d

Please sign in to comment.