Skip to content

Commit

Permalink
make build_sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
aq17 committed Sep 6, 2023
1 parent facc3ee commit 6c7dc59
Show file tree
Hide file tree
Showing 7 changed files with 188 additions and 0 deletions.
19 changes: 19 additions & 0 deletions sdk/dotnet/TailnetKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace Pulumi.Tailscale
/// {
/// var sampleKey = new Tailscale.TailnetKey("sampleKey", new()
/// {
/// Description = "Sample key",
/// Ephemeral = false,
/// Expiry = 3600,
/// Preauthorized = true,
Expand All @@ -42,6 +43,12 @@ public partial class TailnetKey : global::Pulumi.CustomResource
[Output("createdAt")]
public Output<string> CreatedAt { get; private set; } = null!;

/// <summary>
/// A description of the key consisting of alphanumeric characters.
/// </summary>
[Output("description")]
public Output<string?> Description { get; private set; } = null!;

/// <summary>
/// Indicates if the key is ephemeral.
/// </summary>
Expand Down Expand Up @@ -134,6 +141,12 @@ public static TailnetKey Get(string name, Input<string> id, TailnetKeyState? sta

public sealed class TailnetKeyArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// A description of the key consisting of alphanumeric characters.
/// </summary>
[Input("description")]
public Input<string>? Description { get; set; }

/// <summary>
/// Indicates if the key is ephemeral.
/// </summary>
Expand Down Expand Up @@ -184,6 +197,12 @@ public sealed class TailnetKeyState : global::Pulumi.ResourceArgs
[Input("createdAt")]
public Input<string>? CreatedAt { get; set; }

/// <summary>
/// A description of the key consisting of alphanumeric characters.
/// </summary>
[Input("description")]
public Input<string>? Description { get; set; }

/// <summary>
/// Indicates if the key is ephemeral.
/// </summary>
Expand Down
16 changes: 16 additions & 0 deletions sdk/go/tailscale/tailnetKey.go

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

15 changes: 15 additions & 0 deletions sdk/java/src/main/java/com/pulumi/tailscale/TailnetKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
*
* public static void stack(Context ctx) {
* var sampleKey = new TailnetKey(&#34;sampleKey&#34;, TailnetKeyArgs.builder()
* .description(&#34;Sample key&#34;)
* .ephemeral(false)
* .expiry(3600)
* .preauthorized(true)
Expand Down Expand Up @@ -70,6 +71,20 @@ public class TailnetKey extends com.pulumi.resources.CustomResource {
public Output<String> createdAt() {
return this.createdAt;
}
/**
* A description of the key consisting of alphanumeric characters.
*
*/
@Export(name="description", type=String.class, parameters={})
private Output</* @Nullable */ String> description;

/**
* @return A description of the key consisting of alphanumeric characters.
*
*/
public Output<Optional<String>> description() {
return Codegen.optional(this.description);
}
/**
* Indicates if the key is ephemeral.
*
Expand Down
37 changes: 37 additions & 0 deletions sdk/java/src/main/java/com/pulumi/tailscale/TailnetKeyArgs.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ public final class TailnetKeyArgs extends com.pulumi.resources.ResourceArgs {

public static final TailnetKeyArgs Empty = new TailnetKeyArgs();

/**
* A description of the key consisting of alphanumeric characters.
*
*/
@Import(name="description")
private @Nullable Output<String> description;

/**
* @return A description of the key consisting of alphanumeric characters.
*
*/
public Optional<Output<String>> description() {
return Optional.ofNullable(this.description);
}

/**
* Indicates if the key is ephemeral.
*
Expand Down Expand Up @@ -96,6 +111,7 @@ public Optional<Output<List<String>>> tags() {
private TailnetKeyArgs() {}

private TailnetKeyArgs(TailnetKeyArgs $) {
this.description = $.description;
this.ephemeral = $.ephemeral;
this.expiry = $.expiry;
this.preauthorized = $.preauthorized;
Expand All @@ -121,6 +137,27 @@ public Builder(TailnetKeyArgs defaults) {
$ = new TailnetKeyArgs(Objects.requireNonNull(defaults));
}

/**
* @param description A description of the key consisting of alphanumeric characters.
*
* @return builder
*
*/
public Builder description(@Nullable Output<String> description) {
$.description = description;
return this;
}

/**
* @param description A description of the key consisting of alphanumeric characters.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}

/**
* @param ephemeral Indicates if the key is ephemeral.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@ public Optional<Output<String>> createdAt() {
return Optional.ofNullable(this.createdAt);
}

/**
* A description of the key consisting of alphanumeric characters.
*
*/
@Import(name="description")
private @Nullable Output<String> description;

/**
* @return A description of the key consisting of alphanumeric characters.
*
*/
public Optional<Output<String>> description() {
return Optional.ofNullable(this.description);
}

/**
* Indicates if the key is ephemeral.
*
Expand Down Expand Up @@ -142,6 +157,7 @@ private TailnetKeyState() {}

private TailnetKeyState(TailnetKeyState $) {
this.createdAt = $.createdAt;
this.description = $.description;
this.ephemeral = $.ephemeral;
this.expiresAt = $.expiresAt;
this.expiry = $.expiry;
Expand Down Expand Up @@ -190,6 +206,27 @@ public Builder createdAt(String createdAt) {
return createdAt(Output.of(createdAt));
}

/**
* @param description A description of the key consisting of alphanumeric characters.
*
* @return builder
*
*/
public Builder description(@Nullable Output<String> description) {
$.description = description;
return this;
}

/**
* @param description A description of the key consisting of alphanumeric characters.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}

/**
* @param ephemeral Indicates if the key is ephemeral.
*
Expand Down
15 changes: 15 additions & 0 deletions sdk/nodejs/tailnetKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import * as utilities from "./utilities";
* import * as tailscale from "@pulumi/tailscale";
*
* const sampleKey = new tailscale.TailnetKey("sampleKey", {
* description: "Sample key",
* ephemeral: false,
* expiry: 3600,
* preauthorized: true,
Expand Down Expand Up @@ -53,6 +54,10 @@ export class TailnetKey extends pulumi.CustomResource {
* The creation timestamp of the key in RFC3339 format
*/
public /*out*/ readonly createdAt!: pulumi.Output<string>;
/**
* A description of the key consisting of alphanumeric characters.
*/
public readonly description!: pulumi.Output<string | undefined>;
/**
* Indicates if the key is ephemeral.
*/
Expand Down Expand Up @@ -96,6 +101,7 @@ export class TailnetKey extends pulumi.CustomResource {
if (opts.id) {
const state = argsOrState as TailnetKeyState | undefined;
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["ephemeral"] = state ? state.ephemeral : undefined;
resourceInputs["expiresAt"] = state ? state.expiresAt : undefined;
resourceInputs["expiry"] = state ? state.expiry : undefined;
Expand All @@ -105,6 +111,7 @@ export class TailnetKey extends pulumi.CustomResource {
resourceInputs["tags"] = state ? state.tags : undefined;
} else {
const args = argsOrState as TailnetKeyArgs | undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["ephemeral"] = args ? args.ephemeral : undefined;
resourceInputs["expiry"] = args ? args.expiry : undefined;
resourceInputs["preauthorized"] = args ? args.preauthorized : undefined;
Expand All @@ -129,6 +136,10 @@ export interface TailnetKeyState {
* The creation timestamp of the key in RFC3339 format
*/
createdAt?: pulumi.Input<string>;
/**
* A description of the key consisting of alphanumeric characters.
*/
description?: pulumi.Input<string>;
/**
* Indicates if the key is ephemeral.
*/
Expand Down Expand Up @@ -163,6 +174,10 @@ export interface TailnetKeyState {
* The set of arguments for constructing a TailnetKey resource.
*/
export interface TailnetKeyArgs {
/**
* A description of the key consisting of alphanumeric characters.
*/
description?: pulumi.Input<string>;
/**
* Indicates if the key is ephemeral.
*/
Expand Down
Loading

0 comments on commit 6c7dc59

Please sign in to comment.