Skip to content

Commit

Permalink
Upgrade terraform-provider-minio to v1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aq17 committed Jan 25, 2023
1 parent e6f89c1 commit 9a5b6c0
Show file tree
Hide file tree
Showing 78 changed files with 7,570 additions and 543 deletions.
375 changes: 344 additions & 31 deletions provider/cmd/pulumi-resource-minio/schema.json

Large diffs are not rendered by default.

184 changes: 100 additions & 84 deletions provider/go.mod

Large diffs are not rendered by default.

1,658 changes: 1,408 additions & 250 deletions provider/go.sum

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ func Provider() tfbridge.ProviderInfo {
Config: map[string]*tfbridge.SchemaInfo{},
Resources: map[string]*tfbridge.ResourceInfo{
"minio_s3_bucket": {Tok: makeResource(mainMod, "S3Bucket")},
"minio_s3_bucket_notification": {Tok: makeResource(mainMod, "S3BucketNotification")},
"minio_s3_bucket_policy": {Tok: makeResource(mainMod, "S3BucketPolicy")},
"minio_s3_bucket_versioning": {Tok: makeResource(mainMod, "S3BucketVersioning")},
"minio_s3_object": {Tok: makeResource(mainMod, "S3Object")},
"minio_iam_group": {Tok: makeResource(mainMod, "IamGroup")},
"minio_iam_group_membership": {Tok: makeResource(mainMod, "IamGroupMembership")},
Expand All @@ -89,6 +91,7 @@ func Provider() tfbridge.ProviderInfo {
"minio_iam_group_policy_attachment": {Tok: makeResource(mainMod, "IamGroupPolicyAttachment")},
"minio_iam_group_user_attachment": {Tok: makeResource(mainMod, "IamGroupUserAttachment")},
"minio_ilm_policy": {Tok: makeResource(mainMod, "IlmPolicy")},
"minio_iam_service_account": {Tok: makeResource(mainMod, "IamServiceAccount")},
},
DataSources: map[string]*tfbridge.DataSourceInfo{
"minio_iam_policy_document": {Tok: makeDataSource(mainMod, "getIamPolicyDocument")},
Expand Down
35 changes: 34 additions & 1 deletion sdk/dotnet/Config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void Set(T value)
}
}

private static readonly Pulumi.Config __config = new Pulumi.Config("minio");
private static readonly global::Pulumi.Config __config = new global::Pulumi.Config("minio");

private static readonly __Value<string?> _minioAccessKey = new __Value<string?>(() => __config.Get("minioAccessKey"));
/// <summary>
Expand Down Expand Up @@ -67,6 +67,9 @@ public static string? MinioCertFile
}

private static readonly __Value<bool?> _minioInsecure = new __Value<bool?>(() => __config.GetBoolean("minioInsecure"));
/// <summary>
/// Disable SSL certificate verification (default: false)
/// </summary>
public static bool? MinioInsecure
{
get => _minioInsecure.Get();
Expand All @@ -80,6 +83,16 @@ public static string? MinioKeyFile
set => _minioKeyFile.Set(value);
}

private static readonly __Value<string?> _minioPassword = new __Value<string?>(() => __config.Get("minioPassword"));
/// <summary>
/// Minio Password
/// </summary>
public static string? MinioPassword
{
get => _minioPassword.Get();
set => _minioPassword.Set(value);
}

private static readonly __Value<string?> _minioRegion = new __Value<string?>(() => __config.Get("minioRegion"));
/// <summary>
/// Minio Region (default: us-east-1)
Expand Down Expand Up @@ -110,6 +123,16 @@ public static string? MinioServer
set => _minioServer.Set(value);
}

private static readonly __Value<string?> _minioSessionToken = new __Value<string?>(() => __config.Get("minioSessionToken"));
/// <summary>
/// Minio Session Token
/// </summary>
public static string? MinioSessionToken
{
get => _minioSessionToken.Get();
set => _minioSessionToken.Set(value);
}

private static readonly __Value<bool?> _minioSsl = new __Value<bool?>(() => __config.GetBoolean("minioSsl"));
/// <summary>
/// Minio SSL enabled (default: false)
Expand All @@ -120,5 +143,15 @@ public static bool? MinioSsl
set => _minioSsl.Set(value);
}

private static readonly __Value<string?> _minioUser = new __Value<string?>(() => __config.Get("minioUser"));
/// <summary>
/// Minio User
/// </summary>
public static string? MinioUser
{
get => _minioUser.Get();
set => _minioUser.Set(value);
}

}
}
4 changes: 2 additions & 2 deletions sdk/dotnet/GetIamPolicyDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static class GetIamPolicyDocument
/// {{% /examples %}}
/// </summary>
public static Task<GetIamPolicyDocumentResult> InvokeAsync(GetIamPolicyDocumentArgs? args = null, InvokeOptions? options = null)
=> Pulumi.Deployment.Instance.InvokeAsync<GetIamPolicyDocumentResult>("minio:index/getIamPolicyDocument:getIamPolicyDocument", args ?? new GetIamPolicyDocumentArgs(), options.WithDefaults());
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetIamPolicyDocumentResult>("minio:index/getIamPolicyDocument:getIamPolicyDocument", args ?? new GetIamPolicyDocumentArgs(), options.WithDefaults());

/// <summary>
/// {{% examples %}}
Expand Down Expand Up @@ -171,7 +171,7 @@ public static Task<GetIamPolicyDocumentResult> InvokeAsync(GetIamPolicyDocumentA
/// {{% /examples %}}
/// </summary>
public static Output<GetIamPolicyDocumentResult> Invoke(GetIamPolicyDocumentInvokeArgs? args = null, InvokeOptions? options = null)
=> Pulumi.Deployment.Instance.Invoke<GetIamPolicyDocumentResult>("minio:index/getIamPolicyDocument:getIamPolicyDocument", args ?? new GetIamPolicyDocumentInvokeArgs(), options.WithDefaults());
=> global::Pulumi.Deployment.Instance.Invoke<GetIamPolicyDocumentResult>("minio:index/getIamPolicyDocument:getIamPolicyDocument", args ?? new GetIamPolicyDocumentInvokeArgs(), options.WithDefaults());
}


Expand Down
182 changes: 182 additions & 0 deletions sdk/dotnet/IamServiceAccount.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
// *** 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.Minio
{
/// <summary>
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using Pulumi;
/// using Minio = Pulumi.Minio;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var test = new Minio.IamUser("test", new()
/// {
/// ForceDestroy = true,
/// Tags =
/// {
/// { "tag-key", "tag-value" },
/// },
/// });
///
/// var testServiceAccount = new Minio.IamServiceAccount("testServiceAccount", new()
/// {
/// TargetUser = test.Name,
/// });
///
/// return new Dictionary&lt;string, object?&gt;
/// {
/// ["minioUser"] = testServiceAccount.AccessKey,
/// ["minioPassword"] = testServiceAccount.SecretKey,
/// };
/// });
/// ```
/// </summary>
[MinioResourceType("minio:index/iamServiceAccount:IamServiceAccount")]
public partial class IamServiceAccount : global::Pulumi.CustomResource
{
[Output("accessKey")]
public Output<string> AccessKey { get; private set; } = null!;

/// <summary>
/// Disable service account
/// </summary>
[Output("disableUser")]
public Output<bool?> DisableUser { get; private set; } = null!;

[Output("secretKey")]
public Output<string> SecretKey { get; private set; } = null!;

[Output("status")]
public Output<string> Status { get; private set; } = null!;

[Output("targetUser")]
public Output<string> TargetUser { get; private set; } = null!;

/// <summary>
/// rotate secret key
/// </summary>
[Output("updateSecret")]
public Output<bool?> UpdateSecret { get; private set; } = null!;


/// <summary>
/// Create a IamServiceAccount 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 IamServiceAccount(string name, IamServiceAccountArgs args, CustomResourceOptions? options = null)
: base("minio:index/iamServiceAccount:IamServiceAccount", name, args ?? new IamServiceAccountArgs(), MakeResourceOptions(options, ""))
{
}

private IamServiceAccount(string name, Input<string> id, IamServiceAccountState? state = null, CustomResourceOptions? options = null)
: base("minio:index/iamServiceAccount:IamServiceAccount", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
AdditionalSecretOutputs =
{
"secretKey",
},
};
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 IamServiceAccount 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 IamServiceAccount Get(string name, Input<string> id, IamServiceAccountState? state = null, CustomResourceOptions? options = null)
{
return new IamServiceAccount(name, id, state, options);
}
}

public sealed class IamServiceAccountArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Disable service account
/// </summary>
[Input("disableUser")]
public Input<bool>? DisableUser { get; set; }

[Input("targetUser", required: true)]
public Input<string> TargetUser { get; set; } = null!;

/// <summary>
/// rotate secret key
/// </summary>
[Input("updateSecret")]
public Input<bool>? UpdateSecret { get; set; }

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

public sealed class IamServiceAccountState : global::Pulumi.ResourceArgs
{
[Input("accessKey")]
public Input<string>? AccessKey { get; set; }

/// <summary>
/// Disable service account
/// </summary>
[Input("disableUser")]
public Input<bool>? DisableUser { get; set; }

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

[Input("status")]
public Input<string>? Status { get; set; }

[Input("targetUser")]
public Input<string>? TargetUser { get; set; }

/// <summary>
/// rotate secret key
/// </summary>
[Input("updateSecret")]
public Input<bool>? UpdateSecret { get; set; }

public IamServiceAccountState()
{
}
public static new IamServiceAccountState Empty => new IamServiceAccountState();
}
}
26 changes: 24 additions & 2 deletions sdk/dotnet/IamUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
AdditionalSecretOutputs =
{
"secret",
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down Expand Up @@ -132,7 +136,16 @@ public sealed class IamUserArgs : global::Pulumi.ResourceArgs
public Input<string>? Name { get; set; }

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

[Input("tags")]
private InputMap<object>? _tags;
Expand Down Expand Up @@ -172,7 +185,16 @@ public sealed class IamUserState : global::Pulumi.ResourceArgs
public Input<string>? Name { get; set; }

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

[Input("status")]
public Input<string>? Status { get; set; }
Expand Down
43 changes: 43 additions & 0 deletions sdk/dotnet/Inputs/S3BucketNotificationQueueArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// *** 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.Minio.Inputs
{

public sealed class S3BucketNotificationQueueArgs : global::Pulumi.ResourceArgs
{
[Input("events", required: true)]
private InputList<string>? _events;
public InputList<string> Events
{
get => _events ?? (_events = new InputList<string>());
set => _events = value;
}

[Input("filterPrefix")]
public Input<string>? FilterPrefix { get; set; }

[Input("filterSuffix")]
public Input<string>? FilterSuffix { get; set; }

/// <summary>
/// The ID of this resource.
/// </summary>
[Input("id")]
public Input<string>? Id { get; set; }

[Input("queueArn", required: true)]
public Input<string> QueueArn { get; set; } = null!;

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

0 comments on commit 9a5b6c0

Please sign in to comment.