Skip to content

Commit

Permalink
Update pulumi-terraform-bridge to v3.19.1 (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot authored Mar 1, 2022
1 parent 258c05d commit 4f14044
Show file tree
Hide file tree
Showing 33 changed files with 1,429 additions and 74 deletions.
36 changes: 18 additions & 18 deletions provider/cmd/pulumi-resource-azuread/schema.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.16

require (
github.com/hashicorp/terraform-provider-azuread/shim v0.0.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.18.0
github.com/pulumi/pulumi/sdk/v3 v3.23.2
github.com/pulumi/pulumi-terraform-bridge/v3 v3.19.1
github.com/pulumi/pulumi/sdk/v3 v3.25.0
)

replace (
Expand Down
17 changes: 10 additions & 7 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,9 @@ github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2I
github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
github.com/hashicorp/go-version v1.3.0 h1:McDWVJIU/y+u1BRV06dPaLfLCaT7fUTJLp5r04x7iNw=
github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
github.com/hashicorp/go-version v1.4.0 h1:aAQzgqIrRKRa7w75CKpbBxYsmUoPjzVm1W59ca1L0J4=
github.com/hashicorp/go-version v1.4.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
Expand Down Expand Up @@ -514,6 +515,8 @@ github.com/hinshun/vt10x v0.0.0-20180616224451-1954e6464174/go.mod h1:DqJ97dSdRW
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw=
github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0=
github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd h1:anPrsicrIi2ColgWTVPk+TrN42hJIWlfPHSBP9S0ZkM=
Expand Down Expand Up @@ -712,12 +715,12 @@ github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7z
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.18.0 h1:kdhcwSvTeuCuFjeF1d2mZIEHnrqXn+eJ+wbp2ejcN9s=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.18.0/go.mod h1:Va48ZbCwTP01QFWej7QFtrz47AHrPkBet68dqRqJE44=
github.com/pulumi/pulumi/pkg/v3 v3.23.2 h1:QeaCXhMLX6pAdZzXfNnTQTmtQdROqAj56vboHDzr3JE=
github.com/pulumi/pulumi/pkg/v3 v3.23.2/go.mod h1:yo+15Oh7E+0Xtgk3C4jOMugldRGUTktkRRYmoa0Ib2U=
github.com/pulumi/pulumi/sdk/v3 v3.23.2 h1:m/YfyUsoeRFyHXDm2HtJhK+tBV58nrdmWsAkNQimRU4=
github.com/pulumi/pulumi/sdk/v3 v3.23.2/go.mod h1:WHOQB00iuHZyXhwrymxpKXhpOahSguJIpRjVokmM11w=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.19.1 h1:7+LsVefmG8Y5izt2jH0VXP0mdQZySyLFGxGzLmzGfWU=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.19.1/go.mod h1:6EGCAEu5ihEn03RMva5Cw+2yVgdu+h0DBVWpZ8/d2Bo=
github.com/pulumi/pulumi/pkg/v3 v3.25.1-0.20220226222616-301efa60653c h1:zkvrK+mXnjlJSlVAnGtATf2HrhEzAenvlovCseIP1jU=
github.com/pulumi/pulumi/pkg/v3 v3.25.1-0.20220226222616-301efa60653c/go.mod h1:O4MS08knSlZrfbUjoHw2C7mZJlspNuHRDxovnm3Bk8g=
github.com/pulumi/pulumi/sdk/v3 v3.25.0 h1:ZLO5sXjtEcPJKveX8cL7YzNIvGM+/lxQ6uhgLGkNl2w=
github.com/pulumi/pulumi/sdk/v3 v3.25.0/go.mod h1:VsxW+TGv2VBLe/MeqsAr9r0zKzK/gbAhFT9QxYr24cY=
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e h1:Dik4Qe/+xguB8JagPyXNlbOnRiXGmq/PSPQTGunYnTk=
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ=
github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20211230170131-3a7c83bfab87 h1:Reqyb/CbcDwThvBRzA62H7cvuCqgTJuGNt+F6mnmXJ4=
Expand Down
216 changes: 216 additions & 0 deletions sdk/dotnet/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,222 @@
namespace Pulumi.AzureAD
{
/// <summary>
/// ## Example Usage
///
/// *Create an application*
///
/// ```csharp
/// using System;
/// using System.IO;
/// using Pulumi;
/// using AzureAD = Pulumi.AzureAD;
///
/// class MyStack : Stack
/// {
/// private static string ReadFileBase64(string path) {
/// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path)))
/// }
///
/// public MyStack()
/// {
/// var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync());
/// var example = new AzureAD.Application("example", new AzureAD.ApplicationArgs
/// {
/// DisplayName = "example",
/// IdentifierUris =
/// {
/// "api://example-app",
/// },
/// LogoImage = ReadFileBase64("/path/to/logo.png"),
/// Owners =
/// {
/// current.Apply(current =&gt; current.ObjectId),
/// },
/// SignInAudience = "AzureADMultipleOrgs",
/// Api = new AzureAD.Inputs.ApplicationApiArgs
/// {
/// MappedClaimsEnabled = true,
/// RequestedAccessTokenVersion = 2,
/// KnownClientApplications =
/// {
/// azuread_application.Known1.Application_id,
/// azuread_application.Known2.Application_id,
/// },
/// Oauth2PermissionScopes =
/// {
/// new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs
/// {
/// AdminConsentDescription = "Allow the application to access example on behalf of the signed-in user.",
/// AdminConsentDisplayName = "Access example",
/// Enabled = true,
/// Id = "96183846-204b-4b43-82e1-5d2222eb4b9b",
/// Type = "User",
/// UserConsentDescription = "Allow the application to access example on your behalf.",
/// UserConsentDisplayName = "Access example",
/// Value = "user_impersonation",
/// },
/// new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs
/// {
/// AdminConsentDescription = "Administer the example application",
/// AdminConsentDisplayName = "Administer",
/// Enabled = true,
/// Id = "be98fa3e-ab5b-4b11-83d9-04ba2b7946bc",
/// Type = "Admin",
/// Value = "administer",
/// },
/// },
/// },
/// AppRoles =
/// {
/// new AzureAD.Inputs.ApplicationAppRoleArgs
/// {
/// AllowedMemberTypes =
/// {
/// "User",
/// "Application",
/// },
/// Description = "Admins can manage roles and perform all task actions",
/// DisplayName = "Admin",
/// Enabled = true,
/// Id = "1b19509b-32b1-4e9f-b71d-4992aa991967",
/// Value = "admin",
/// },
/// new AzureAD.Inputs.ApplicationAppRoleArgs
/// {
/// AllowedMemberTypes =
/// {
/// "User",
/// },
/// Description = "ReadOnly roles have limited query access",
/// DisplayName = "ReadOnly",
/// Enabled = true,
/// Id = "497406e4-012a-4267-bf18-45a1cb148a01",
/// Value = "User",
/// },
/// },
/// FeatureTags =
/// {
/// new AzureAD.Inputs.ApplicationFeatureTagArgs
/// {
/// Enterprise = true,
/// Gallery = true,
/// },
/// },
/// OptionalClaims = new AzureAD.Inputs.ApplicationOptionalClaimsArgs
/// {
/// AccessTokens =
/// {
/// new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs
/// {
/// Name = "myclaim",
/// },
/// new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs
/// {
/// Name = "otherclaim",
/// },
/// },
/// IdTokens =
/// {
/// new AzureAD.Inputs.ApplicationOptionalClaimsIdTokenArgs
/// {
/// Name = "userclaim",
/// Source = "user",
/// Essential = true,
/// AdditionalProperties =
/// {
/// "emit_as_roles",
/// },
/// },
/// },
/// Saml2Tokens =
/// {
/// new AzureAD.Inputs.ApplicationOptionalClaimsSaml2TokenArgs
/// {
/// Name = "samlexample",
/// },
/// },
/// },
/// RequiredResourceAccesses =
/// {
/// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs
/// {
/// ResourceAppId = "00000003-0000-0000-c000-000000000000",
/// ResourceAccesses =
/// {
/// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs
/// {
/// Id = "df021288-bdef-4463-88db-98f22de89214",
/// Type = "Role",
/// },
/// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs
/// {
/// Id = "b4e74841-8e56-480b-be8b-910348b18b4c",
/// Type = "Scope",
/// },
/// },
/// },
/// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs
/// {
/// ResourceAppId = "c5393580-f805-4401-95e8-94b7a6ef2fc2",
/// ResourceAccesses =
/// {
/// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs
/// {
/// Id = "594c1fb6-4f81-4475-ae41-0c394909246c",
/// Type = "Role",
/// },
/// },
/// },
/// },
/// Web = new AzureAD.Inputs.ApplicationWebArgs
/// {
/// HomepageUrl = "https://app.example.net",
/// LogoutUrl = "https://app.example.net/logout",
/// RedirectUris =
/// {
/// "https://app.example.net/account",
/// },
/// ImplicitGrant = new AzureAD.Inputs.ApplicationWebImplicitGrantArgs
/// {
/// AccessTokenIssuanceEnabled = true,
/// IdTokenIssuanceEnabled = true,
/// },
/// },
/// });
/// }
///
/// }
/// ```
///
/// *Create application from a gallery template*
///
/// ```csharp
/// using Pulumi;
/// using AzureAD = Pulumi.AzureAD;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var exampleApplicationTemplate = Output.Create(AzureAD.GetApplicationTemplate.InvokeAsync(new AzureAD.GetApplicationTemplateArgs
/// {
/// DisplayName = "Marketo",
/// }));
/// var exampleApplication = new AzureAD.Application("exampleApplication", new AzureAD.ApplicationArgs
/// {
/// DisplayName = "example",
/// TemplateId = exampleApplicationTemplate.Apply(exampleApplicationTemplate =&gt; exampleApplicationTemplate.TemplateId),
/// });
/// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new AzureAD.ServicePrincipalArgs
/// {
/// ApplicationId = exampleApplication.ApplicationId,
/// UseExisting = true,
/// });
/// }
///
/// }
/// ```
///
/// ## Import
///
/// Applications can be imported using their object ID, e.g.
Expand Down
31 changes: 31 additions & 0 deletions sdk/dotnet/ApplicationFederatedIdentityCredential.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,37 @@
namespace Pulumi.AzureAD
{
/// <summary>
/// ## Example Usage
///
/// ```csharp
/// using Pulumi;
/// using AzureAD = Pulumi.AzureAD;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var exampleApplication = new AzureAD.Application("exampleApplication", new AzureAD.ApplicationArgs
/// {
/// DisplayName = "example",
/// });
/// var exampleApplicationFederatedIdentityCredential = new AzureAD.ApplicationFederatedIdentityCredential("exampleApplicationFederatedIdentityCredential", new AzureAD.ApplicationFederatedIdentityCredentialArgs
/// {
/// ApplicationObjectId = exampleApplication.ObjectId,
/// DisplayName = "my-repo-deploy",
/// Description = "Deployments for my-repo",
/// Audiences =
/// {
/// "api://AzureADTokenExchange",
/// },
/// Issuer = "https://token.actions.githubusercontent.com",
/// Subject = "repo:my-organization/my-repo:environment:prod",
/// });
/// }
///
/// }
/// ```
///
/// ## Import
///
/// Federated Identity Credentials can be imported using the object ID of the associated application and the ID of the federated identity credential, e.g.
Expand Down
59 changes: 59 additions & 0 deletions sdk/dotnet/ApplicationPreAuthorized.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,65 @@
namespace Pulumi.AzureAD
{
/// <summary>
/// ## Example Usage
///
/// ```csharp
/// using Pulumi;
/// using AzureAD = Pulumi.AzureAD;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var authorized = new AzureAD.Application("authorized", new AzureAD.ApplicationArgs
/// {
/// DisplayName = "example-authorized-app",
/// });
/// var authorizer = new AzureAD.Application("authorizer", new AzureAD.ApplicationArgs
/// {
/// DisplayName = "example-authorizing-app",
/// Api = new AzureAD.Inputs.ApplicationApiArgs
/// {
/// Oauth2PermissionScopes =
/// {
/// new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs
/// {
/// AdminConsentDescription = "Administer the application",
/// AdminConsentDisplayName = "Administer",
/// Enabled = true,
/// Id = "ced9c4c3-c273-4f0f-ac71-a20377b90f9c",
/// Type = "Admin",
/// Value = "administer",
/// },
/// new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs
/// {
/// AdminConsentDescription = "Access the application",
/// AdminConsentDisplayName = "Access",
/// Enabled = true,
/// Id = "2d5e07ca-664d-4d9b-ad61-ec07fd215213",
/// Type = "User",
/// UserConsentDescription = "Access the application",
/// UserConsentDisplayName = "Access",
/// Value = "user_impersonation",
/// },
/// },
/// },
/// });
/// var example = new AzureAD.ApplicationPreAuthorized("example", new AzureAD.ApplicationPreAuthorizedArgs
/// {
/// ApplicationObjectId = authorizer.ObjectId,
/// AuthorizedAppId = authorized.ApplicationId,
/// PermissionIds =
/// {
/// "ced9c4c3-c273-4f0f-ac71-a20377b90f9c",
/// "2d5e07ca-664d-4d9b-ad61-ec07fd215213",
/// },
/// });
/// }
///
/// }
/// ```
///
/// ## Import
///
/// Pre-authorized applications can be imported using the object ID of the authorizing application and the application ID of the application being authorized, e.g.
Expand Down
Loading

0 comments on commit 4f14044

Please sign in to comment.