Skip to content

Commit

Permalink
chore: recreated SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeckel committed Oct 8, 2024
1 parent caf59cc commit 4c554dd
Show file tree
Hide file tree
Showing 130 changed files with 925 additions and 1,810 deletions.
2 changes: 1 addition & 1 deletion sdk/dotnet/AzureadServicePrincipal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace Pulumiverse.Mssql
/// import using <db_id>/<user_id> - can be retrieved using `SELECT CONCAT(DB_ID(), '/', principal_id) FROM sys.database_principals WHERE [name] = '<username>'`
///
/// ```sh
/// $ pulumi import mssql:index/azureadServicePrincipal:AzureadServicePrincipal example '7/5'
/// $ pulumi import mssql:index/azureadServicePrincipal:AzureadServicePrincipal example '7/5'
/// ```
/// </summary>
[MssqlResourceType("mssql:index/azureadServicePrincipal:AzureadServicePrincipal")]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/AzureadUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace Pulumiverse.Mssql
/// import using &lt;db_id&gt;/&lt;user_id&gt; - can be retrieved using `SELECT CONCAT(DB_ID(), '/', principal_id) FROM sys.database_principals WHERE [name] = '&lt;username&gt;'`
///
/// ```sh
/// $ pulumi import mssql:index/azureadUser:AzureadUser example '7/5'
/// $ pulumi import mssql:index/azureadUser:AzureadUser example '7/5'
/// ```
/// </summary>
[MssqlResourceType("mssql:index/azureadUser:AzureadUser")]
Expand Down
15 changes: 15 additions & 0 deletions sdk/dotnet/Config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,29 @@ public static class Types

public class AzureAuth
{
/// <summary>
/// Service Principal client (application) ID. When omitted, default, chained set of credentials will be used.
/// </summary>
public string? ClientId { get; set; } = null!;
/// <summary>
/// Service Principal secret. When omitted, default, chained set of credentials will be used.
/// </summary>
public string? ClientSecret { get; set; } = null!;
/// <summary>
/// Azure AD tenant ID. Required only if Azure SQL Server's tenant is different than Service Principal's.
/// </summary>
public string? TenantId { get; set; } = null!;
}

public class SqlAuth
{
/// <summary>
/// Password for SQL authentication.
/// </summary>
public string Password { get; set; }

Check warning on line 99 in sdk/dotnet/Config/Config.cs

View workflow job for this annotation

GitHub Actions / build_sdk (6.0.x, 1.22.x, 16.x, 3.9, dotnet)

Non-nullable property 'Password' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 99 in sdk/dotnet/Config/Config.cs

View workflow job for this annotation

GitHub Actions / build_sdk (6.0.x, 1.22.x, 16.x, 3.9, dotnet)

Non-nullable property 'Password' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
/// <summary>
/// User name for SQL authentication.
/// </summary>
public string Username { get; set; }

Check warning on line 103 in sdk/dotnet/Config/Config.cs

View workflow job for this annotation

GitHub Actions / build_sdk (6.0.x, 1.22.x, 16.x, 3.9, dotnet)

Non-nullable property 'Username' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 103 in sdk/dotnet/Config/Config.cs

View workflow job for this annotation

GitHub Actions / build_sdk (6.0.x, 1.22.x, 16.x, 3.9, dotnet)

Non-nullable property 'Username' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Database.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace Pulumiverse.Mssql
/// import using database ID - can be retrieved using `SELECT DB_ID('&lt;db_name&gt;')`
///
/// ```sh
/// $ pulumi import mssql:index/database:Database example 12
/// $ pulumi import mssql:index/database:Database example 12
/// ```
/// </summary>
[MssqlResourceType("mssql:index/database:Database")]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/DatabasePermission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace Pulumiverse.Mssql
/// import using &lt;db_id&gt;/&lt;principal_id&gt;/&lt;permission&gt; - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('&lt;principal_name&gt;'), '/DELETE')`
///
/// ```sh
/// $ pulumi import mssql:index/databasePermission:DatabasePermission example '7/5/DELETE'
/// $ pulumi import mssql:index/databasePermission:DatabasePermission example '7/5/DELETE'
/// ```
/// </summary>
[MssqlResourceType("mssql:index/databasePermission:DatabasePermission")]
Expand Down
14 changes: 1 addition & 13 deletions sdk/dotnet/DatabaseRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace Pulumiverse.Mssql
/// import using &lt;db_id&gt;/&lt;role_id&gt; - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('&lt;role_name&gt;'))`
///
/// ```sh
/// $ pulumi import mssql:index/databaseRole:DatabaseRole example '7/5'
/// $ pulumi import mssql:index/databaseRole:DatabaseRole example '7/5'
/// ```
/// </summary>
[MssqlResourceType("mssql:index/databaseRole:DatabaseRole")]
Expand All @@ -66,10 +66,6 @@ public partial class DatabaseRole : global::Pulumi.CustomResource
[Output("name")]
public Output<string> Name { get; private set; } = null!;

/// <summary>
/// ID of another database role or user owning this role. Can be retrieved using `mssql_database_role` or `mssql_sql_user`.
/// Defaults to ID of current user, used to authorize the Terraform provider.
/// </summary>
[Output("ownerId")]
public Output<string> OwnerId { get; private set; } = null!;

Expand Down Expand Up @@ -132,10 +128,6 @@ public sealed class DatabaseRoleArgs : global::Pulumi.ResourceArgs
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// ID of another database role or user owning this role. Can be retrieved using `mssql_database_role` or `mssql_sql_user`.
/// Defaults to ID of current user, used to authorize the Terraform provider.
/// </summary>
[Input("ownerId")]
public Input<string>? OwnerId { get; set; }

Expand All @@ -159,10 +151,6 @@ public sealed class DatabaseRoleState : global::Pulumi.ResourceArgs
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// ID of another database role or user owning this role. Can be retrieved using `mssql_database_role` or `mssql_sql_user`.
/// Defaults to ID of current user, used to authorize the Terraform provider.
/// </summary>
[Input("ownerId")]
public Input<string>? OwnerId { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/DatabaseRoleMember.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace Pulumiverse.Mssql
/// import using &lt;db_id&gt;/&lt;role_id&gt; - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('&lt;role_name&gt;'), '/', DATABASE_PRINCIPAL_ID('&lt;member_name'))`
///
/// ```sh
/// $ pulumi import mssql:index/databaseRoleMember:DatabaseRoleMember example '7/5/9'
/// $ pulumi import mssql:index/databaseRoleMember:DatabaseRoleMember example '7/5/9'
/// ```
/// </summary>
[MssqlResourceType("mssql:index/databaseRoleMember:DatabaseRoleMember")]
Expand Down
8 changes: 0 additions & 8 deletions sdk/dotnet/GetAzureadServicePrincipal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ public static class GetAzureadServicePrincipal
/// <summary>
/// Obtains information about single Azure AD Service Principal database user.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
Expand All @@ -44,18 +42,14 @@ public static class GetAzureadServicePrincipal
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetAzureadServicePrincipalResult> InvokeAsync(GetAzureadServicePrincipalArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetAzureadServicePrincipalResult>("mssql:index/getAzureadServicePrincipal:getAzureadServicePrincipal", args ?? new GetAzureadServicePrincipalArgs(), options.WithDefaults());

/// <summary>
/// Obtains information about single Azure AD Service Principal database user.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
Expand All @@ -82,8 +76,6 @@ public static Task<GetAzureadServicePrincipalResult> InvokeAsync(GetAzureadServi
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetAzureadServicePrincipalResult> Invoke(GetAzureadServicePrincipalInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetAzureadServicePrincipalResult>("mssql:index/getAzureadServicePrincipal:getAzureadServicePrincipal", args ?? new GetAzureadServicePrincipalInvokeArgs(), options.WithDefaults());
Expand Down
8 changes: 0 additions & 8 deletions sdk/dotnet/GetAzureadUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ public static class GetAzureadUser
/// <summary>
/// Obtains information about single Azure AD database user.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
Expand All @@ -44,18 +42,14 @@ public static class GetAzureadUser
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetAzureadUserResult> InvokeAsync(GetAzureadUserArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetAzureadUserResult>("mssql:index/getAzureadUser:getAzureadUser", args ?? new GetAzureadUserArgs(), options.WithDefaults());

/// <summary>
/// Obtains information about single Azure AD database user.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
Expand All @@ -82,8 +76,6 @@ public static Task<GetAzureadUserResult> InvokeAsync(GetAzureadUserArgs args, In
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetAzureadUserResult> Invoke(GetAzureadUserInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetAzureadUserResult>("mssql:index/getAzureadUser:getAzureadUser", args ?? new GetAzureadUserInvokeArgs(), options.WithDefaults());
Expand Down
8 changes: 0 additions & 8 deletions sdk/dotnet/GetDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ public static class GetDatabase
/// <summary>
/// Obtains information about single database.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
Expand All @@ -39,18 +37,14 @@ public static class GetDatabase
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetDatabaseResult> InvokeAsync(GetDatabaseArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetDatabaseResult>("mssql:index/getDatabase:getDatabase", args ?? new GetDatabaseArgs(), options.WithDefaults());

/// <summary>
/// Obtains information about single database.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
Expand All @@ -72,8 +66,6 @@ public static Task<GetDatabaseResult> InvokeAsync(GetDatabaseArgs args, InvokeOp
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetDatabaseResult> Invoke(GetDatabaseInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetDatabaseResult>("mssql:index/getDatabase:getDatabase", args ?? new GetDatabaseInvokeArgs(), options.WithDefaults());
Expand Down
8 changes: 0 additions & 8 deletions sdk/dotnet/GetDatabasePermissions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ public static class GetDatabasePermissions
/// <summary>
/// Returns all permissions granted in a DB to given principal
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
Expand Down Expand Up @@ -49,18 +47,14 @@ public static class GetDatabasePermissions
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetDatabasePermissionsResult> InvokeAsync(GetDatabasePermissionsArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetDatabasePermissionsResult>("mssql:index/getDatabasePermissions:getDatabasePermissions", args ?? new GetDatabasePermissionsArgs(), options.WithDefaults());

/// <summary>
/// Returns all permissions granted in a DB to given principal
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
Expand Down Expand Up @@ -92,8 +86,6 @@ public static Task<GetDatabasePermissionsResult> InvokeAsync(GetDatabasePermissi
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetDatabasePermissionsResult> Invoke(GetDatabasePermissionsInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetDatabasePermissionsResult>("mssql:index/getDatabasePermissions:getDatabasePermissions", args ?? new GetDatabasePermissionsInvokeArgs(), options.WithDefaults());
Expand Down
12 changes: 2 additions & 10 deletions sdk/dotnet/GetDatabaseRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ public static class GetDatabaseRole
/// <summary>
/// Obtains information about single database role.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
Expand All @@ -44,18 +42,14 @@ public static class GetDatabaseRole
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetDatabaseRoleResult> InvokeAsync(GetDatabaseRoleArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetDatabaseRoleResult>("mssql:index/getDatabaseRole:getDatabaseRole", args ?? new GetDatabaseRoleArgs(), options.WithDefaults());

/// <summary>
/// Obtains information about single database role.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
Expand All @@ -82,8 +76,6 @@ public static Task<GetDatabaseRoleResult> InvokeAsync(GetDatabaseRoleArgs args,
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetDatabaseRoleResult> Invoke(GetDatabaseRoleInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetDatabaseRoleResult>("mssql:index/getDatabaseRole:getDatabaseRole", args ?? new GetDatabaseRoleInvokeArgs(), options.WithDefaults());
Expand All @@ -99,7 +91,7 @@ public sealed class GetDatabaseRoleArgs : global::Pulumi.InvokeArgs
public string? DatabaseId { get; set; }

/// <summary>
/// Name of the database principal.
/// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
/// </summary>
[Input("name", required: true)]
public string Name { get; set; } = null!;
Expand All @@ -119,7 +111,7 @@ public sealed class GetDatabaseRoleInvokeArgs : global::Pulumi.InvokeArgs
public Input<string>? DatabaseId { get; set; }

/// <summary>
/// Name of the database principal.
/// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
/// </summary>
[Input("name", required: true)]
public Input<string> Name { get; set; } = null!;
Expand Down
12 changes: 2 additions & 10 deletions sdk/dotnet/GetDatabaseRoles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ public static class GetDatabaseRoles
/// <summary>
/// Obtains information about all roles defined in a database.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
Expand All @@ -43,18 +41,14 @@ public static class GetDatabaseRoles
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetDatabaseRolesResult> InvokeAsync(GetDatabaseRolesArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetDatabaseRolesResult>("mssql:index/getDatabaseRoles:getDatabaseRoles", args ?? new GetDatabaseRolesArgs(), options.WithDefaults());

/// <summary>
/// Obtains information about all roles defined in a database.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
Expand All @@ -80,8 +74,6 @@ public static Task<GetDatabaseRolesResult> InvokeAsync(GetDatabaseRolesArgs? arg
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetDatabaseRolesResult> Invoke(GetDatabaseRolesInvokeArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetDatabaseRolesResult>("mssql:index/getDatabaseRoles:getDatabaseRoles", args ?? new GetDatabaseRolesInvokeArgs(), options.WithDefaults());
Expand All @@ -91,7 +83,7 @@ public static Output<GetDatabaseRolesResult> Invoke(GetDatabaseRolesInvokeArgs?
public sealed class GetDatabaseRolesArgs : global::Pulumi.InvokeArgs
{
/// <summary>
/// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('&lt;db_name&gt;')`.
/// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('&lt;db_name&gt;')`. Defaults to ID of `master`.
/// </summary>
[Input("databaseId")]
public string? DatabaseId { get; set; }
Expand All @@ -105,7 +97,7 @@ public GetDatabaseRolesArgs()
public sealed class GetDatabaseRolesInvokeArgs : global::Pulumi.InvokeArgs
{
/// <summary>
/// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('&lt;db_name&gt;')`.
/// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('&lt;db_name&gt;')`. Defaults to ID of `master`.
/// </summary>
[Input("databaseId")]
public Input<string>? DatabaseId { get; set; }
Expand Down
Loading

0 comments on commit 4c554dd

Please sign in to comment.