Skip to content

Commit

Permalink
Upgrade terraform-provider-azuread to v2.30.0 (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas11 authored Nov 9, 2022
1 parent cfb1d11 commit 71f2770
Show file tree
Hide file tree
Showing 46 changed files with 4,656 additions and 47 deletions.
206 changes: 202 additions & 4 deletions provider/cmd/pulumi-resource-azuread/schema.json

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/pulumi/pulumi-azuread/provider/v5
go 1.18

require (
github.com/hashicorp/go-azure-helpers v0.40.0
github.com/hashicorp/terraform-provider-azuread/shim v0.0.0
github.com/manicminer/hamilton v0.49.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.28.0
github.com/pulumi/pulumi/sdk/v3 v3.38.0
)
Expand Down Expand Up @@ -116,7 +116,7 @@ require (
github.com/hashicorp/terraform-plugin-log v0.7.0 // indirect
github.com/hashicorp/terraform-plugin-sdk v1.7.0 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.19.0 // indirect
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220929223321-d60b4060e615 // indirect
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20221028011557-09dba057f143 // indirect
github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c // indirect
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
github.com/hashicorp/vault/api v1.1.1 // indirect
Expand All @@ -133,8 +133,6 @@ require (
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/kevinburke/ssh_config v1.1.0 // indirect
github.com/klauspost/compress v1.13.5 // indirect
github.com/manicminer/hamilton v0.49.0 // indirect
github.com/manicminer/hamilton-autorest v0.2.0 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-ieproxy v0.0.1 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
Expand Down
9 changes: 2 additions & 7 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,6 @@ github.com/hashicorp/errwrap v0.0.0-20180715044906-d6c0cd880357/go.mod h1:YH+1FK
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I=
github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/go-azure-helpers v0.40.0 h1:NjiyF+jN+0mRdFBU894yzZSxu1SNrbvj8l4rEDpCB0A=
github.com/hashicorp/go-azure-helpers v0.40.0/go.mod h1:gcutZ/Hf/O7YN9M3UIvyZ9l0Rxv7Yrc9x5sSfM9cuSw=
github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU=
github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg=
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
Expand Down Expand Up @@ -576,8 +574,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.20220929223321-d60b4060e615 h1:+M961pFM76U+TncNeQPWBo3V+WiqEWVZaKzI/tVIwbU=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220929223321-d60b4060e615/go.mod h1:po5ly0R+gYMdLUYttbLVR8mPq/0cSnQTp+bSpzrBhEw=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20221028011557-09dba057f143 h1:Kvh66D5DG27//tprnxCMEcl+/1FRiezJ33vz7UWxFkQ=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20221028011557-09dba057f143/go.mod h1:po5ly0R+gYMdLUYttbLVR8mPq/0cSnQTp+bSpzrBhEw=
github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c h1:D8aRO6+mTqHfLsK/BC3j5OAoogv1WLRWzY1AaTo3rBg=
github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c/go.mod h1:Wn3Na71knbXc1G8Lh+yu/dQWWJeFQEpDeJMtWMtlmNI=
github.com/hashicorp/terraform-svchost v0.0.0-20191011084731-65d371908596/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg=
Expand Down Expand Up @@ -665,11 +663,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII=
github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/manicminer/hamilton v0.43.0/go.mod h1:lbVyngC+/nCWuDp8UhC6Bw+bh7jcP/E+YwqzHTmzemk=
github.com/manicminer/hamilton v0.49.0 h1:n4GDhEZgpsKANu7G1Q1CI2FVLiQTNJQ684U6NX94AVk=
github.com/manicminer/hamilton v0.49.0/go.mod h1:lbVyngC+/nCWuDp8UhC6Bw+bh7jcP/E+YwqzHTmzemk=
github.com/manicminer/hamilton-autorest v0.2.0 h1:dDL+t2DrQza0EfNYINYCvXISeNwVqzgVAQh+CH/19ZU=
github.com/manicminer/hamilton-autorest v0.2.0/go.mod h1:NselDpNTImEmOc/fa41kPg6YhDt/6S95ejWbTGZ6tlg=
github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A=
github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
Expand Down
2 changes: 2 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ func Provider() tfbridge.ProviderInfo {
"azuread_service_principal_claims_mapping_policy_assignment": {
Tok: makeResource(mainMod, "ServicePrincipalClaimsMappingPolicyAssignment"),
},
"azuread_synchronization_job": {Tok: makeResource(mainMod, "SynchronizationJob")},
"azuread_synchronization_secret": {Tok: makeResource(mainMod, "SynchronizationSecret")},
},
DataSources: map[string]*tfbridge.DataSourceInfo{
"azuread_application": {Tok: makeDataSource(mainMod, "getApplication")},
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.20220929223321-d60b4060e615
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20221028011557-09dba057f143
)

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 @@ -196,8 +196,8 @@ github.com/hashicorp/terraform-plugin-go v0.14.0 h1:ttnSlS8bz3ZPYbMb84DpcPhY4F5D
github.com/hashicorp/terraform-plugin-go v0.14.0/go.mod h1:2nNCBeRLaenyQEi78xrGrs9hMbulveqG/zDMQSvVJTE=
github.com/hashicorp/terraform-plugin-log v0.7.0 h1:SDxJUyT8TwN4l5b5/VkiTIaQgY6R+Y2BQ0sRZftGKQs=
github.com/hashicorp/terraform-plugin-log v0.7.0/go.mod h1:p4R1jWBXRTvL4odmEkFfDdhUjHf9zcs/BCoNHAc7IK4=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220929223321-d60b4060e615 h1:+M961pFM76U+TncNeQPWBo3V+WiqEWVZaKzI/tVIwbU=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220929223321-d60b4060e615/go.mod h1:po5ly0R+gYMdLUYttbLVR8mPq/0cSnQTp+bSpzrBhEw=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20221028011557-09dba057f143 h1:Kvh66D5DG27//tprnxCMEcl+/1FRiezJ33vz7UWxFkQ=
github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20221028011557-09dba057f143/go.mod h1:po5ly0R+gYMdLUYttbLVR8mPq/0cSnQTp+bSpzrBhEw=
github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c h1:D8aRO6+mTqHfLsK/BC3j5OAoogv1WLRWzY1AaTo3rBg=
github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c/go.mod h1:Wn3Na71knbXc1G8Lh+yu/dQWWJeFQEpDeJMtWMtlmNI=
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 h1:HKLsbzeOsfXmKNpr3GiT18XAblV0BjCbzL8KQAMZGa0=
Expand Down
41 changes: 38 additions & 3 deletions sdk/dotnet/AppRoleAssignment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,41 @@ namespace Pulumi.AzureAD
/// });
/// ```
///
/// *Assign a group to the default app role for an internal application*
///
/// ```csharp
/// using System.Collections.Generic;
/// using Pulumi;
/// using AzureAD = Pulumi.AzureAD;
///
/// return await Deployment.RunAsync(() =>
/// {
/// var internalApplication = new AzureAD.Application("internalApplication", new()
/// {
/// DisplayName = "internal",
/// });
///
/// var internalServicePrincipal = new AzureAD.ServicePrincipal("internalServicePrincipal", new()
/// {
/// ApplicationId = internalApplication.ApplicationId,
/// });
///
/// var exampleGroup = new AzureAD.Group("exampleGroup", new()
/// {
/// DisplayName = "example",
/// SecurityEnabled = true,
/// });
///
/// var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment("exampleAppRoleAssignment", new()
/// {
/// AppRoleId = "00000000-0000-0000-0000-000000000000",
/// PrincipalObjectId = exampleGroup.ObjectId,
/// ResourceObjectId = internalServicePrincipal.ObjectId,
/// });
///
/// });
/// ```
///
/// ## Import
///
/// App role assignments can be imported using the object ID of the service principal representing the resource and the ID of the app role assignment (note_not_ the ID of the app role), e.g.
Expand All @@ -232,7 +267,7 @@ namespace Pulumi.AzureAD
public partial class AppRoleAssignment : global::Pulumi.CustomResource
{
/// <summary>
/// The ID of the app role to be assigned. Changing this forces a new resource to be created.
/// The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
/// </summary>
[Output("appRoleId")]
public Output<string> AppRoleId { get; private set; } = null!;
Expand Down Expand Up @@ -314,7 +349,7 @@ public static AppRoleAssignment Get(string name, Input<string> id, AppRoleAssign
public sealed class AppRoleAssignmentArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The ID of the app role to be assigned. Changing this forces a new resource to be created.
/// The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
/// </summary>
[Input("appRoleId", required: true)]
public Input<string> AppRoleId { get; set; } = null!;
Expand All @@ -340,7 +375,7 @@ public AppRoleAssignmentArgs()
public sealed class AppRoleAssignmentState : global::Pulumi.ResourceArgs
{
/// <summary>
/// The ID of the app role to be assigned. Changing this forces a new resource to be created.
/// The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
/// </summary>
[Input("appRoleId")]
public Input<string>? AppRoleId { get; set; }
Expand Down
38 changes: 38 additions & 0 deletions sdk/dotnet/Inputs/SynchronizationJobScheduleArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AzureAD.Inputs
{

public sealed class SynchronizationJobScheduleArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Date and time when this job will expire, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`).
/// </summary>
[Input("expiration")]
public Input<string>? Expiration { get; set; }

/// <summary>
/// The interval between synchronization iterations ISO8601. E.g. PT40M run every 40 minutes.
/// </summary>
[Input("interval")]
public Input<string>? Interval { get; set; }

/// <summary>
/// State of the job.
/// </summary>
[Input("state")]
public Input<string>? State { get; set; }

public SynchronizationJobScheduleArgs()
{
}
public static new SynchronizationJobScheduleArgs Empty => new SynchronizationJobScheduleArgs();
}
}
38 changes: 38 additions & 0 deletions sdk/dotnet/Inputs/SynchronizationJobScheduleGetArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AzureAD.Inputs
{

public sealed class SynchronizationJobScheduleGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Date and time when this job will expire, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`).
/// </summary>
[Input("expiration")]
public Input<string>? Expiration { get; set; }

/// <summary>
/// The interval between synchronization iterations ISO8601. E.g. PT40M run every 40 minutes.
/// </summary>
[Input("interval")]
public Input<string>? Interval { get; set; }

/// <summary>
/// State of the job.
/// </summary>
[Input("state")]
public Input<string>? State { get; set; }

public SynchronizationJobScheduleGetArgs()
{
}
public static new SynchronizationJobScheduleGetArgs Empty => new SynchronizationJobScheduleGetArgs();
}
}
32 changes: 32 additions & 0 deletions sdk/dotnet/Inputs/SynchronizationSecretCredentialArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AzureAD.Inputs
{

public sealed class SynchronizationSecretCredentialArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The key of the secret.
/// </summary>
[Input("key", required: true)]
public Input<string> Key { get; set; } = null!;

/// <summary>
/// The value of the secret.
/// </summary>
[Input("value", required: true)]
public Input<string> Value { get; set; } = null!;

public SynchronizationSecretCredentialArgs()
{
}
public static new SynchronizationSecretCredentialArgs Empty => new SynchronizationSecretCredentialArgs();
}
}
32 changes: 32 additions & 0 deletions sdk/dotnet/Inputs/SynchronizationSecretCredentialGetArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AzureAD.Inputs
{

public sealed class SynchronizationSecretCredentialGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The key of the secret.
/// </summary>
[Input("key", required: true)]
public Input<string> Key { get; set; } = null!;

/// <summary>
/// The value of the secret.
/// </summary>
[Input("value", required: true)]
public Input<string> Value { get; set; } = null!;

public SynchronizationSecretCredentialGetArgs()
{
}
public static new SynchronizationSecretCredentialGetArgs Empty => new SynchronizationSecretCredentialGetArgs();
}
}
42 changes: 42 additions & 0 deletions sdk/dotnet/Outputs/SynchronizationJobSchedule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AzureAD.Outputs
{

[OutputType]
public sealed class SynchronizationJobSchedule
{
/// <summary>
/// Date and time when this job will expire, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`).
/// </summary>
public readonly string? Expiration;
/// <summary>
/// The interval between synchronization iterations ISO8601. E.g. PT40M run every 40 minutes.
/// </summary>
public readonly string? Interval;
/// <summary>
/// State of the job.
/// </summary>
public readonly string? State;

[OutputConstructor]
private SynchronizationJobSchedule(
string? expiration,

string? interval,

string? state)
{
Expiration = expiration;
Interval = interval;
State = state;
}
}
}
35 changes: 35 additions & 0 deletions sdk/dotnet/Outputs/SynchronizationSecretCredential.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AzureAD.Outputs
{

[OutputType]
public sealed class SynchronizationSecretCredential
{
/// <summary>
/// The key of the secret.
/// </summary>
public readonly string Key;
/// <summary>
/// The value of the secret.
/// </summary>
public readonly string Value;

[OutputConstructor]
private SynchronizationSecretCredential(
string key,

string value)
{
Key = key;
Value = value;
}
}
}
Loading

0 comments on commit 71f2770

Please sign in to comment.