Skip to content

Commit

Permalink
make build_sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
ringods committed Aug 5, 2024
1 parent 08f6231 commit c847453
Show file tree
Hide file tree
Showing 15 changed files with 165 additions and 176 deletions.
47 changes: 23 additions & 24 deletions sdk/dotnet/ServiceAccountToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,28 @@ namespace Pulumiverse.Grafana
///
/// return await Deployment.RunAsync(() =>
/// {
/// var admin = new Grafana.Oss.ServiceAccount("admin", new()
/// var test = new Grafana.Oss.ServiceAccount("test", new()
/// {
/// IsDisabled = false,
/// Role = "Admin",
/// Role = "Viewer",
/// });
///
/// });
/// ```
///
/// ## Import
/// var foo = new Grafana.Oss.ServiceAccountToken("foo", new()
/// {
/// ServiceAccountId = test.Id,
/// });
///
/// ```sh
/// $ pulumi import grafana:index/serviceAccountToken:ServiceAccountToken name "{{ id }}"
/// ```
/// var bar = new Grafana.Oss.ServiceAccountToken("bar", new()
/// {
/// ServiceAccountId = test.Id,
/// SecondsToLive = 30,
/// });
///
/// ```sh
/// $ pulumi import grafana:index/serviceAccountToken:ServiceAccountToken name "{{ orgID }}:{{ id }}"
/// return new Dictionary<string, object?>
/// {
/// ["serviceAccountTokenFooKeyOnly"] = foo.Key,
/// ["serviceAccountTokenBar"] = bar,
/// };
/// });
/// ```
/// </summary>
[Obsolete(@"grafana.index/serviceaccounttoken.ServiceAccountToken has been deprecated in favor of grafana.oss/serviceaccounttoken.ServiceAccountToken")]
Expand All @@ -68,15 +73,13 @@ public partial class ServiceAccountToken : global::Pulumi.CustomResource
public Output<string> Key { get; private set; } = null!;

/// <summary>
/// The name of the service account.
/// The name of the service account token.
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;

/// <summary>
/// The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it
/// is null, zero or is omitted completely (unless `api_key_max_seconds_to_live` configuration option is set) the key will
/// never expire.
/// The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it is null, zero or is omitted completely (unless `api_key_max_seconds_to_live` configuration option is set) the key will never expire.
/// </summary>
[Output("secondsToLive")]
public Output<int?> SecondsToLive { get; private set; } = null!;
Expand Down Expand Up @@ -143,15 +146,13 @@ public static ServiceAccountToken Get(string name, Input<string> id, ServiceAcco
public sealed class ServiceAccountTokenArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The name of the service account.
/// The name of the service account token.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it
/// is null, zero or is omitted completely (unless `api_key_max_seconds_to_live` configuration option is set) the key will
/// never expire.
/// The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it is null, zero or is omitted completely (unless `api_key_max_seconds_to_live` configuration option is set) the key will never expire.
/// </summary>
[Input("secondsToLive")]
public Input<int>? SecondsToLive { get; set; }
Expand Down Expand Up @@ -199,15 +200,13 @@ public Input<string>? Key
}

/// <summary>
/// The name of the service account.
/// The name of the service account token.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it
/// is null, zero or is omitted completely (unless `api_key_max_seconds_to_live` configuration option is set) the key will
/// never expire.
/// The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it is null, zero or is omitted completely (unless `api_key_max_seconds_to_live` configuration option is set) the key will never expire.
/// </summary>
[Input("secondsToLive")]
public Input<int>? SecondsToLive { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions sdk/go/grafana/getUser.go

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

4 changes: 2 additions & 2 deletions sdk/go/grafana/oss/getUser.go

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

66 changes: 29 additions & 37 deletions sdk/go/grafana/serviceAccountToken.go

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

38 changes: 13 additions & 25 deletions sdk/nodejs/serviceAccountToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,14 @@ import * as utilities from "./utilities";
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* const admin = new grafana.oss.ServiceAccount("admin", {
* isDisabled: false,
* role: "Admin",
* const test = new grafana.oss.ServiceAccount("test", {role: "Viewer"});
* const foo = new grafana.oss.ServiceAccountToken("foo", {serviceAccountId: test.id});
* const bar = new grafana.oss.ServiceAccountToken("bar", {
* serviceAccountId: test.id,
* secondsToLive: 30,
* });
* ```
*
* ## Import
*
* ```sh
* $ pulumi import grafana:index/serviceAccountToken:ServiceAccountToken name "{{ id }}"
* ```
*
* ```sh
* $ pulumi import grafana:index/serviceAccountToken:ServiceAccountToken name "{{ orgID }}:{{ id }}"
* export const serviceAccountTokenFooKeyOnly = foo.key;
* export const serviceAccountTokenBar = bar;
* ```
*
* @deprecated grafana.index/serviceaccounttoken.ServiceAccountToken has been deprecated in favor of grafana.oss/serviceaccounttoken.ServiceAccountToken
Expand Down Expand Up @@ -76,13 +70,11 @@ export class ServiceAccountToken extends pulumi.CustomResource {
*/
public /*out*/ readonly key!: pulumi.Output<string>;
/**
* The name of the service account.
* The name of the service account token.
*/
public readonly name!: pulumi.Output<string>;
/**
* The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it
* is null, zero or is omitted completely (unless `apiKeyMaxSecondsToLive` configuration option is set) the key will never
* expire.
* The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it is null, zero or is omitted completely (unless `apiKeyMaxSecondsToLive` configuration option is set) the key will never expire.
*/
public readonly secondsToLive!: pulumi.Output<number | undefined>;
/**
Expand Down Expand Up @@ -150,13 +142,11 @@ export interface ServiceAccountTokenState {
*/
key?: pulumi.Input<string>;
/**
* The name of the service account.
* The name of the service account token.
*/
name?: pulumi.Input<string>;
/**
* The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it
* is null, zero or is omitted completely (unless `apiKeyMaxSecondsToLive` configuration option is set) the key will never
* expire.
* The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it is null, zero or is omitted completely (unless `apiKeyMaxSecondsToLive` configuration option is set) the key will never expire.
*/
secondsToLive?: pulumi.Input<number>;
/**
Expand All @@ -170,13 +160,11 @@ export interface ServiceAccountTokenState {
*/
export interface ServiceAccountTokenArgs {
/**
* The name of the service account.
* The name of the service account token.
*/
name?: pulumi.Input<string>;
/**
* The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it
* is null, zero or is omitted completely (unless `apiKeyMaxSecondsToLive` configuration option is set) the key will never
* expire.
* The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it is null, zero or is omitted completely (unless `apiKeyMaxSecondsToLive` configuration option is set) the key will never expire.
*/
secondsToLive?: pulumi.Input<number>;
/**
Expand Down
Loading

0 comments on commit c847453

Please sign in to comment.