Skip to content

Commit

Permalink
make build_sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
iwahbe committed Feb 11, 2023
1 parent faa09f6 commit 219ee80
Show file tree
Hide file tree
Showing 15 changed files with 279 additions and 11 deletions.
7 changes: 6 additions & 1 deletion sdk/dotnet/IlmPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ namespace Pulumi.Minio
/// new Minio.Inputs.IlmPolicyRuleArgs
/// {
/// Id = "expire-7d",
/// Expiration = "7",
/// Expiration = "7d",
/// Filter = "prefix/",
/// Tags =
/// {
/// { "app", "myapp" },
/// },
/// },
/// },
/// });
Expand Down
18 changes: 18 additions & 0 deletions sdk/dotnet/Inputs/IlmPolicyRuleArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ namespace Pulumi.Minio.Inputs

public sealed class IlmPolicyRuleArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The expiration as a duration (5d), date (1970-01-01), or "DeleteMarker"
/// </summary>
[Input("expiration")]
public Input<string>? Expiration { get; set; }

/// <summary>
/// Correspond to "prefix" value
/// </summary>
[Input("filter")]
public Input<string>? Filter { get; set; }

Expand All @@ -27,6 +33,18 @@ public sealed class IlmPolicyRuleArgs : global::Pulumi.ResourceArgs
[Input("status")]
public Input<string>? Status { get; set; }

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

/// <summary>
/// List of tags to use in filter
/// </summary>
public InputMap<object> Tags
{
get => _tags ?? (_tags = new InputMap<object>());
set => _tags = value;
}

public IlmPolicyRuleArgs()
{
}
Expand Down
18 changes: 18 additions & 0 deletions sdk/dotnet/Inputs/IlmPolicyRuleGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ namespace Pulumi.Minio.Inputs

public sealed class IlmPolicyRuleGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The expiration as a duration (5d), date (1970-01-01), or "DeleteMarker"
/// </summary>
[Input("expiration")]
public Input<string>? Expiration { get; set; }

/// <summary>
/// Correspond to "prefix" value
/// </summary>
[Input("filter")]
public Input<string>? Filter { get; set; }

Expand All @@ -27,6 +33,18 @@ public sealed class IlmPolicyRuleGetArgs : global::Pulumi.ResourceArgs
[Input("status")]
public Input<string>? Status { get; set; }

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

/// <summary>
/// List of tags to use in filter
/// </summary>
public InputMap<object> Tags
{
get => _tags ?? (_tags = new InputMap<object>());
set => _tags = value;
}

public IlmPolicyRuleGetArgs()
{
}
Expand Down
15 changes: 14 additions & 1 deletion sdk/dotnet/Outputs/IlmPolicyRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,23 @@ namespace Pulumi.Minio.Outputs
[OutputType]
public sealed class IlmPolicyRule
{
/// <summary>
/// The expiration as a duration (5d), date (1970-01-01), or "DeleteMarker"
/// </summary>
public readonly string? Expiration;
/// <summary>
/// Correspond to "prefix" value
/// </summary>
public readonly string? Filter;
/// <summary>
/// The ID of this resource.
/// </summary>
public readonly string Id;
public readonly string? Status;
/// <summary>
/// List of tags to use in filter
/// </summary>
public readonly ImmutableDictionary<string, object>? Tags;

[OutputConstructor]
private IlmPolicyRule(
Expand All @@ -29,12 +39,15 @@ public sealed class IlmPolicyRule

string id,

string? status)
string? status,

ImmutableDictionary<string, object>? tags)
{
Expiration = expiration;
Filter = filter;
Id = id;
Status = status;
Tags = tags;
}
}
}
6 changes: 5 additions & 1 deletion sdk/go/minio/ilmPolicy.go

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

19 changes: 17 additions & 2 deletions sdk/go/minio/pulumiTypes.go

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

4 changes: 3 additions & 1 deletion sdk/java/src/main/java/com/pulumi/minio/IlmPolicy.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
* .bucket(bucket.bucket())
* .rules(IlmPolicyRuleArgs.builder()
* .id(&#34;expire-7d&#34;)
* .expiration(7)
* .expiration(&#34;7d&#34;)
* .filter(&#34;prefix/&#34;)
* .tags(Map.of(&#34;app&#34;, &#34;myapp&#34;))
* .build())
* .build());
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
Expand All @@ -15,16 +17,32 @@ public final class IlmPolicyRuleArgs extends com.pulumi.resources.ResourceArgs {

public static final IlmPolicyRuleArgs Empty = new IlmPolicyRuleArgs();

/**
* The expiration as a duration (5d), date (1970-01-01), or &#34;DeleteMarker&#34;
*
*/
@Import(name="expiration")
private @Nullable Output<String> expiration;

/**
* @return The expiration as a duration (5d), date (1970-01-01), or &#34;DeleteMarker&#34;
*
*/
public Optional<Output<String>> expiration() {
return Optional.ofNullable(this.expiration);
}

/**
* Correspond to &#34;prefix&#34; value
*
*/
@Import(name="filter")
private @Nullable Output<String> filter;

/**
* @return Correspond to &#34;prefix&#34; value
*
*/
public Optional<Output<String>> filter() {
return Optional.ofNullable(this.filter);
}
Expand All @@ -51,13 +69,29 @@ public Optional<Output<String>> status() {
return Optional.ofNullable(this.status);
}

/**
* List of tags to use in filter
*
*/
@Import(name="tags")
private @Nullable Output<Map<String,Object>> tags;

/**
* @return List of tags to use in filter
*
*/
public Optional<Output<Map<String,Object>>> tags() {
return Optional.ofNullable(this.tags);
}

private IlmPolicyRuleArgs() {}

private IlmPolicyRuleArgs(IlmPolicyRuleArgs $) {
this.expiration = $.expiration;
this.filter = $.filter;
this.id = $.id;
this.status = $.status;
this.tags = $.tags;
}

public static Builder builder() {
Expand All @@ -78,20 +112,44 @@ public Builder(IlmPolicyRuleArgs defaults) {
$ = new IlmPolicyRuleArgs(Objects.requireNonNull(defaults));
}

/**
* @param expiration The expiration as a duration (5d), date (1970-01-01), or &#34;DeleteMarker&#34;
*
* @return builder
*
*/
public Builder expiration(@Nullable Output<String> expiration) {
$.expiration = expiration;
return this;
}

/**
* @param expiration The expiration as a duration (5d), date (1970-01-01), or &#34;DeleteMarker&#34;
*
* @return builder
*
*/
public Builder expiration(String expiration) {
return expiration(Output.of(expiration));
}

/**
* @param filter Correspond to &#34;prefix&#34; value
*
* @return builder
*
*/
public Builder filter(@Nullable Output<String> filter) {
$.filter = filter;
return this;
}

/**
* @param filter Correspond to &#34;prefix&#34; value
*
* @return builder
*
*/
public Builder filter(String filter) {
return filter(Output.of(filter));
}
Expand Down Expand Up @@ -126,6 +184,27 @@ public Builder status(String status) {
return status(Output.of(status));
}

/**
* @param tags List of tags to use in filter
*
* @return builder
*
*/
public Builder tags(@Nullable Output<Map<String,Object>> tags) {
$.tags = tags;
return this;
}

/**
* @param tags List of tags to use in filter
*
* @return builder
*
*/
public Builder tags(Map<String,Object> tags) {
return tags(Output.of(tags));
}

public IlmPolicyRuleArgs build() {
$.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null");
return $;
Expand Down

0 comments on commit 219ee80

Please sign in to comment.