Skip to content

Commit

Permalink
Update terraform-provider-azuread to v2.26.0 (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot authored Jul 8, 2022
1 parent e856b01 commit 16c1f4c
Show file tree
Hide file tree
Showing 12 changed files with 648 additions and 524 deletions.
53 changes: 46 additions & 7 deletions provider/cmd/pulumi-resource-azuread/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ require (
github.com/hashicorp/terraform-plugin-log v0.4.0 // indirect
github.com/hashicorp/terraform-plugin-sdk v1.7.0 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0 // indirect
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220623215825-7d917e39860c // indirect
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220708113127-992341f38697 // indirect
github.com/hashicorp/terraform-registry-address v0.0.0-20220131103327-5c1c5e123275 // indirect
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
github.com/hashicorp/vault/api v1.1.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ github.com/hashicorp/terraform-plugin-sdk v1.7.0 h1:B//oq0ZORG+EkVrIJy0uPGSonvmX
github.com/hashicorp/terraform-plugin-sdk v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY=
github.com/hashicorp/terraform-plugin-test v1.2.0 h1:AWFdqyfnOj04sxTdaAF57QqvW7XXrT8PseUHkbKsE8I=
github.com/hashicorp/terraform-plugin-test v1.2.0/go.mod h1:QIJHYz8j+xJtdtLrFTlzQVC0ocr3rf/OjIpgZLK56Hs=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220623215825-7d917e39860c h1:kT/nm3wSB2TVFu15glUv1+sNCjJbAXSqeVYVbTNs11M=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220623215825-7d917e39860c/go.mod h1:hHPPmkxNLaP75X7jIwtX7zgIkscrbpaDaebBAhlTROM=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220708113127-992341f38697 h1:N2RZaeh8lxoyQ8VmLSoh63NN6O6F1Vl6hfFX21s9cB4=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220708113127-992341f38697/go.mod h1:hHPPmkxNLaP75X7jIwtX7zgIkscrbpaDaebBAhlTROM=
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896/go.mod h1:bzBPnUIkI0RxauU8Dqo+2KrZZ28Cf48s8V6IHt3p4co=
github.com/hashicorp/terraform-registry-address v0.0.0-20220131103327-5c1c5e123275 h1:x/8cnK295F9NK18FXxsJxU1bz2PusWH52DDDsuao+88=
github.com/hashicorp/terraform-registry-address v0.0.0-20220131103327-5c1c5e123275/go.mod h1:bdLC+qQlJIBHKbCMA6GipcuaKjmjcvZlnVdpU583z3Y=
Expand Down
2 changes: 1 addition & 1 deletion provider/shim/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.18

require (
github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220623215825-7d917e39860c
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220708113127-992341f38697
)

require (
Expand Down
4 changes: 2 additions & 2 deletions provider/shim/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ github.com/hashicorp/terraform-plugin-go v0.9.1/go.mod h1:ItjVSlQs70otlzcCwlPcU8
github.com/hashicorp/terraform-plugin-log v0.2.0/go.mod h1:E1kJmapEHzqu1x6M++gjvhzM2yMQNXPVWZRCB8sgYjg=
github.com/hashicorp/terraform-plugin-log v0.4.0 h1:F3eVnm8r2EfQCe2k9blPIiF/r2TT01SHijXnS7bujvc=
github.com/hashicorp/terraform-plugin-log v0.4.0/go.mod h1:9KclxdunFownr4pIm1jdmwKRmE4d6HVG2c9XDq47rpg=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220623215825-7d917e39860c h1:kT/nm3wSB2TVFu15glUv1+sNCjJbAXSqeVYVbTNs11M=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220623215825-7d917e39860c/go.mod h1:hHPPmkxNLaP75X7jIwtX7zgIkscrbpaDaebBAhlTROM=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220708113127-992341f38697 h1:N2RZaeh8lxoyQ8VmLSoh63NN6O6F1Vl6hfFX21s9cB4=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220708113127-992341f38697/go.mod h1:hHPPmkxNLaP75X7jIwtX7zgIkscrbpaDaebBAhlTROM=
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896/go.mod h1:bzBPnUIkI0RxauU8Dqo+2KrZZ28Cf48s8V6IHt3p4co=
github.com/hashicorp/terraform-registry-address v0.0.0-20220131103327-5c1c5e123275 h1:x/8cnK295F9NK18FXxsJxU1bz2PusWH52DDDsuao+88=
github.com/hashicorp/terraform-registry-address v0.0.0-20220131103327-5c1c5e123275/go.mod h1:bdLC+qQlJIBHKbCMA6GipcuaKjmjcvZlnVdpU583z3Y=
Expand Down
139 changes: 51 additions & 88 deletions sdk/dotnet/DirectoryRoleAssignment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,79 +20,6 @@ namespace Pulumi.AzureAD
///
/// When authenticated with a user principal, this resource requires one of the following directory roles: `Privileged Role Administrator` or `Global Administrator`
///
/// ## Example Usage
///
/// *Assignment for a built-in role*
///
/// ```csharp
/// using Pulumi;
/// using AzureAD = Pulumi.AzureAD;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var exampleUser = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs
/// {
/// UserPrincipalName = "[email protected]",
/// }));
/// var exampleDirectoryRole = new AzureAD.DirectoryRole("exampleDirectoryRole", new AzureAD.DirectoryRoleArgs
/// {
/// DisplayName = "Security administrator",
/// });
/// var exampleDirectoryRoleAssignment = new AzureAD.DirectoryRoleAssignment("exampleDirectoryRoleAssignment", new AzureAD.DirectoryRoleAssignmentArgs
/// {
/// RoleId = exampleDirectoryRole.TemplateId,
/// PrincipalObjectId = exampleUser.Apply(exampleUser => exampleUser.ObjectId),
/// });
/// }
///
/// }
/// ```
///
/// > Note the use of the `template_id` attribute when referencing built-in roles.
///
/// *Assignment for a custom role*
///
/// ```csharp
/// using Pulumi;
/// using AzureAD = Pulumi.AzureAD;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var exampleUser = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs
/// {
/// UserPrincipalName = "[email protected]",
/// }));
/// var exampleCustomDirectoryRole = new AzureAD.CustomDirectoryRole("exampleCustomDirectoryRole", new AzureAD.CustomDirectoryRoleArgs
/// {
/// DisplayName = "My Custom Role",
/// Enabled = true,
/// Version = "1.0",
/// Permissions =
/// {
/// new AzureAD.Inputs.CustomDirectoryRolePermissionArgs
/// {
/// AllowedResourceActions =
/// {
/// "microsoft.directory/applications/basic/update",
/// "microsoft.directory/applications/standard/read",
/// },
/// },
/// },
/// });
/// var exampleDirectoryRoleAssignment = new AzureAD.DirectoryRoleAssignment("exampleDirectoryRoleAssignment", new AzureAD.DirectoryRoleAssignmentArgs
/// {
/// RoleId = exampleCustomDirectoryRole.ObjectId,
/// PrincipalObjectId = exampleUser.Apply(exampleUser => exampleUser.ObjectId),
/// });
/// }
///
/// }
/// ```
///
/// ## Import
///
/// Directory role assignments can be imported using the ID of the assignment, e.g.
Expand All @@ -105,28 +32,40 @@ namespace Pulumi.AzureAD
public partial class DirectoryRoleAssignment : Pulumi.CustomResource
{
/// <summary>
/// Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_object_id`. Changing this forces a new resource to be created.
/// Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0&amp;tabs=http) for example usage. Changing this forces a new resource to be created.
/// </summary>
[Output("appScopeId")]
public Output<string> AppScopeId { get; private set; } = null!;

/// <summary>
/// Identifier of the app-specific scope when the assignment scope is app-specific
/// </summary>
[Output("appScopeObjectId")]
public Output<string?> AppScopeObjectId { get; private set; } = null!;
public Output<string> AppScopeObjectId { get; private set; } = null!;

/// <summary>
/// Identifier of the directory object representing the scope of the assignment. Cannot be used with `app_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0&amp;tabs=http) for example usage. Changing this forces a new resource to be created.
/// </summary>
[Output("directoryScopeId")]
public Output<string> DirectoryScopeId { get; private set; } = null!;

/// <summary>
/// The object ID of a directory object representing the scope of the assignment. Cannot be used with `app_scope_object_id`. Changing this forces a new resource to be created.
/// Identifier of the directory object representing the scope of the assignment
/// </summary>
[Output("directoryScopeObjectId")]
public Output<string?> DirectoryScopeObjectId { get; private set; } = null!;
public Output<string> DirectoryScopeObjectId { get; private set; } = null!;

/// <summary>
/// The object ID of the principal for you want to create a role assignment. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
/// </summary>
[Output("principalObjectId")]
public Output<string?> PrincipalObjectId { get; private set; } = null!;
public Output<string> PrincipalObjectId { get; private set; } = null!;

/// <summary>
/// The template ID (in the case of built-in roles) or object ID (in the case of custom roles) of the directory role you want to assign. Changing this forces a new resource to be created.
/// </summary>
[Output("roleId")]
public Output<string?> RoleId { get; private set; } = null!;
public Output<string> RoleId { get; private set; } = null!;


/// <summary>
Expand All @@ -136,7 +75,7 @@ public partial class DirectoryRoleAssignment : Pulumi.CustomResource
/// <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 DirectoryRoleAssignment(string name, DirectoryRoleAssignmentArgs? args = null, CustomResourceOptions? options = null)
public DirectoryRoleAssignment(string name, DirectoryRoleAssignmentArgs args, CustomResourceOptions? options = null)
: base("azuread:index/directoryRoleAssignment:DirectoryRoleAssignment", name, args ?? new DirectoryRoleAssignmentArgs(), MakeResourceOptions(options, ""))
{
}
Expand Down Expand Up @@ -175,28 +114,40 @@ public static DirectoryRoleAssignment Get(string name, Input<string> id, Directo
public sealed class DirectoryRoleAssignmentArgs : Pulumi.ResourceArgs
{
/// <summary>
/// Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_object_id`. Changing this forces a new resource to be created.
/// Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0&amp;tabs=http) for example usage. Changing this forces a new resource to be created.
/// </summary>
[Input("appScopeId")]
public Input<string>? AppScopeId { get; set; }

/// <summary>
/// Identifier of the app-specific scope when the assignment scope is app-specific
/// </summary>
[Input("appScopeObjectId")]
public Input<string>? AppScopeObjectId { get; set; }

/// <summary>
/// The object ID of a directory object representing the scope of the assignment. Cannot be used with `app_scope_object_id`. Changing this forces a new resource to be created.
/// Identifier of the directory object representing the scope of the assignment. Cannot be used with `app_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0&amp;tabs=http) for example usage. Changing this forces a new resource to be created.
/// </summary>
[Input("directoryScopeId")]
public Input<string>? DirectoryScopeId { get; set; }

/// <summary>
/// Identifier of the directory object representing the scope of the assignment
/// </summary>
[Input("directoryScopeObjectId")]
public Input<string>? DirectoryScopeObjectId { get; set; }

/// <summary>
/// The object ID of the principal for you want to create a role assignment. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
/// </summary>
[Input("principalObjectId")]
public Input<string>? PrincipalObjectId { get; set; }
[Input("principalObjectId", required: true)]
public Input<string> PrincipalObjectId { get; set; } = null!;

/// <summary>
/// The template ID (in the case of built-in roles) or object ID (in the case of custom roles) of the directory role you want to assign. Changing this forces a new resource to be created.
/// </summary>
[Input("roleId")]
public Input<string>? RoleId { get; set; }
[Input("roleId", required: true)]
public Input<string> RoleId { get; set; } = null!;

public DirectoryRoleAssignmentArgs()
{
Expand All @@ -206,13 +157,25 @@ public DirectoryRoleAssignmentArgs()
public sealed class DirectoryRoleAssignmentState : Pulumi.ResourceArgs
{
/// <summary>
/// Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_object_id`. Changing this forces a new resource to be created.
/// Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0&amp;tabs=http) for example usage. Changing this forces a new resource to be created.
/// </summary>
[Input("appScopeId")]
public Input<string>? AppScopeId { get; set; }

/// <summary>
/// Identifier of the app-specific scope when the assignment scope is app-specific
/// </summary>
[Input("appScopeObjectId")]
public Input<string>? AppScopeObjectId { get; set; }

/// <summary>
/// The object ID of a directory object representing the scope of the assignment. Cannot be used with `app_scope_object_id`. Changing this forces a new resource to be created.
/// Identifier of the directory object representing the scope of the assignment. Cannot be used with `app_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0&amp;tabs=http) for example usage. Changing this forces a new resource to be created.
/// </summary>
[Input("directoryScopeId")]
public Input<string>? DirectoryScopeId { get; set; }

/// <summary>
/// Identifier of the directory object representing the scope of the assignment
/// </summary>
[Input("directoryScopeObjectId")]
public Input<string>? DirectoryScopeObjectId { get; set; }
Expand Down
Loading

0 comments on commit 16c1f4c

Please sign in to comment.