Skip to content

Commit

Permalink
Upgrade to v2.18.0 of pulumi-terraform-bridge (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot authored Jan 28, 2021
1 parent 3eed3c2 commit 9a1cf21
Show file tree
Hide file tree
Showing 43 changed files with 314 additions and 106 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CHANGELOG
=========

## HEAD (Unreleased)
_(none)_
* Upgrading pulumi-terraform-bridge to v2.18.1

---

Expand Down
38 changes: 21 additions & 17 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 @@ -3,8 +3,8 @@ module github.com/pulumi/pulumi-azuread/provider/v3
go 1.15

require (
github.com/pulumi/pulumi-terraform-bridge/v2 v2.17.1-0.20201219002337-a0c25bd3e147
github.com/pulumi/pulumi/sdk/v2 v2.17.0
github.com/pulumi/pulumi-terraform-bridge/v2 v2.18.1
github.com/pulumi/pulumi/sdk/v2 v2.18.0
github.com/terraform-providers/terraform-provider-azuread/shim v0.0.0
)

Expand Down
22 changes: 7 additions & 15 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,11 @@ github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI=
github.com/Azure/go-autorest/autorest v0.9.3/go.mod h1:GsRuLYvwzLjjjRoWEIyMUaYq8GNUx2nRB378IPt/1p0=
github.com/Azure/go-autorest/autorest v0.10.0 h1:mvdtztBqcL8se7MdrUweNieTNi4kfNG6GOJuurQJpuY=
github.com/Azure/go-autorest/autorest v0.10.0/go.mod h1:/FALq9T/kS7b5J5qsQ+RSTUdAmGFqi0vUdVNNx8q630=
github.com/Azure/go-autorest/autorest v0.11.10 h1:j5sGbX7uj1ieYYkQ3Mpvewd4DCsEQ+ZeJpqnSM9pjnM=
github.com/Azure/go-autorest/autorest v0.11.10/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw=
github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0=
github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc=
github.com/Azure/go-autorest/autorest/adal v0.8.1/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q=
github.com/Azure/go-autorest/autorest/adal v0.8.2 h1:O1X4oexUxnZCaEUGsvMnr8ZGj8HI37tNezwY4npRqA0=
github.com/Azure/go-autorest/autorest/adal v0.8.2/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q=
github.com/Azure/go-autorest/autorest/adal v0.8.3 h1:O1AGG9Xig71FxdX9HO5pGNyZ7TbSyHaVg+5eJO/jSGw=
github.com/Azure/go-autorest/autorest/adal v0.8.3/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q=
github.com/Azure/go-autorest/autorest/adal v0.9.5 h1:Y3bBUV4rTuxenJJs41HU3qmqsb+auo+a3Lz+PlJPpL0=
Expand Down Expand Up @@ -451,8 +447,6 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxv
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs=
github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
Expand Down Expand Up @@ -565,15 +559,13 @@ github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y8
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
github.com/pulumi/pulumi-terraform-bridge/v2 v2.17.1-0.20201219002337-a0c25bd3e147 h1:3DL04s5KSGKVeW96H+QRoq1+j9dAnzce7TBa26dkHPM=
github.com/pulumi/pulumi-terraform-bridge/v2 v2.17.1-0.20201219002337-a0c25bd3e147/go.mod h1:WNWmFEvaMWA1uiwdlmRN+eSKrgT6sL3kNS6z5ltbdbo=
github.com/pulumi/pulumi/pkg/v2 v2.15.1-0.20201202214525-260620430c4c h1:M4BMhdOt1le+7JtOhR7uOVrpvu9HnN9388AI/Je9/3Y=
github.com/pulumi/pulumi/pkg/v2 v2.15.1-0.20201202214525-260620430c4c/go.mod h1:xLEDqsipr92IXfe8EJrl8bANoEUtwmBJGBE8X8PKmP0=
github.com/pulumi/pulumi-terraform-bridge/v2 v2.18.1 h1:1j7tmOWhR3gvK9T8smYmMxqpOj+CbLCYmMvdbwP4bOI=
github.com/pulumi/pulumi-terraform-bridge/v2 v2.18.1/go.mod h1:UrgBEaSeCcTUfjd4bdYe3YdQpBMr4ewN00wuVH+jDh0=
github.com/pulumi/pulumi/pkg/v2 v2.18.0 h1:vH+VyzpxWZVW7CSJ7ThD0w6uKXQa5j+TptzyQM6eT2o=
github.com/pulumi/pulumi/pkg/v2 v2.18.0/go.mod h1:bAbzFeU3gHu1diqcckqUqaFf5dP02BfJlP8dnHwm00k=
github.com/pulumi/pulumi/sdk/v2 v2.2.1/go.mod h1:QNbWpL4gvf3X0lUFT7TXA2Jo1ff/Ti2l97AyFGYwvW4=
github.com/pulumi/pulumi/sdk/v2 v2.15.1-0.20201202214525-260620430c4c h1:nYFMU38MKDY+CuU8LpIw6AaX/wwXMNzINqXvjw5MUtQ=
github.com/pulumi/pulumi/sdk/v2 v2.15.1-0.20201202214525-260620430c4c/go.mod h1:Z9ifPo/Q0+hUpAyguVx2gp5Sx+CBumnWvYQDhrM8l3E=
github.com/pulumi/pulumi/sdk/v2 v2.17.0 h1:mFsYS4Qnpk0uGcN4cGPd/S6KWdx92BbudOerxf5JlcA=
github.com/pulumi/pulumi/sdk/v2 v2.17.0/go.mod h1:fCFhRV6NmidWetmgDPA76efL+s0JqLlS54JJIwfOt+o=
github.com/pulumi/pulumi/sdk/v2 v2.18.0 h1:fOno92mnb/4xoVV+TqtQG0W6KCJLe87JyfBVVhZ8voE=
github.com/pulumi/pulumi/sdk/v2 v2.18.0/go.mod h1:fCFhRV6NmidWetmgDPA76efL+s0JqLlS54JJIwfOt+o=
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-20201218231525-9cca98608a5e h1:jl43csgF3BSlNRmjo+TGgjW/uXk9h7+NoR3doKQ0BT4=
Expand All @@ -591,7 +583,7 @@ github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw=
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw=
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog=
Expand Down
12 changes: 12 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
package provider

import (
"fmt"
"path/filepath"
"unicode"

"github.com/pulumi/pulumi-azuread/provider/v3/pkg/version"
"github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge"
shimv2 "github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfshim/sdk-v2"
"github.com/pulumi/pulumi/sdk/v2/go/common/tokens"
Expand Down Expand Up @@ -162,6 +165,15 @@ func Provider() tfbridge.ProviderInfo {
"pulumi": ">=2.15.0,<3.0.0",
},
},
Golang: &tfbridge.GolangInfo{
ImportBasePath: filepath.Join(
fmt.Sprintf("github.com/pulumi/pulumi-%[1]s/sdk/", mainPkg),
tfbridge.GetModuleMajorVersion(version.Version),
"go",
mainPkg,
),
GenerateResourceContainerTypes: true,
},
CSharp: &tfbridge.CSharpInfo{
PackageReferences: map[string]string{
"Pulumi": "2.*",
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/application:Application test 00000000-0000-0000-0000-000000000000
/// ```
/// </summary>
[AzureADResourceType("azuread:index/application:Application")]
public partial class Application : Pulumi.CustomResource
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/ApplicationAppRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/applicationAppRole:ApplicationAppRole test 00000000-0000-0000-0000-000000000000/role/11111111-1111-1111-1111-111111111111
/// ```
/// </summary>
[AzureADResourceType("azuread:index/applicationAppRole:ApplicationAppRole")]
public partial class ApplicationAppRole : Pulumi.CustomResource
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/ApplicationCertificate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/applicationCertificate:ApplicationCertificate test 00000000-0000-0000-0000-000000000000/certificate/11111111-1111-1111-1111-111111111111
/// ```
/// </summary>
[AzureADResourceType("azuread:index/applicationCertificate:ApplicationCertificate")]
public partial class ApplicationCertificate : Pulumi.CustomResource
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/ApplicationOAuth2Permission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/applicationOAuth2Permission:ApplicationOAuth2Permission test 00000000-0000-0000-0000-000000000000/scope/11111111-1111-1111-1111-111111111111
/// ```
/// </summary>
[AzureADResourceType("azuread:index/applicationOAuth2Permission:ApplicationOAuth2Permission")]
public partial class ApplicationOAuth2Permission : Pulumi.CustomResource
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/ApplicationPassword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/applicationPassword:ApplicationPassword test 00000000-0000-0000-0000-000000000000/password/11111111-1111-1111-1111-111111111111
/// ```
/// </summary>
[AzureADResourceType("azuread:index/applicationPassword:ApplicationPassword")]
public partial class ApplicationPassword : Pulumi.CustomResource
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/group:Group my_group 00000000-0000-0000-0000-000000000000
/// ```
/// </summary>
[AzureADResourceType("azuread:index/group:Group")]
public partial class Group : Pulumi.CustomResource
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/GroupMember.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/groupMember:GroupMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111
/// ```
/// </summary>
[AzureADResourceType("azuread:index/groupMember:GroupMember")]
public partial class GroupMember : Pulumi.CustomResource
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Pulumi.AzureAD
/// construction to achieve fine-grained programmatic control over provider settings. See the
/// [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
/// </summary>
[AzureADResourceType("pulumi:providers:azuread")]
public partial class Provider : Pulumi.ProviderResource
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/ServicePrincipal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/servicePrincipal:ServicePrincipal test 00000000-0000-0000-0000-000000000000
/// ```
/// </summary>
[AzureADResourceType("azuread:index/servicePrincipal:ServicePrincipal")]
public partial class ServicePrincipal : Pulumi.CustomResource
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/ServicePrincipalCertificate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/servicePrincipalCertificate:ServicePrincipalCertificate test 00000000-0000-0000-0000-000000000000/certificate/11111111-1111-1111-1111-111111111111
/// ```
/// </summary>
[AzureADResourceType("azuread:index/servicePrincipalCertificate:ServicePrincipalCertificate")]
public partial class ServicePrincipalCertificate : Pulumi.CustomResource
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/ServicePrincipalPassword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/servicePrincipalPassword:ServicePrincipalPassword test 00000000-0000-0000-0000-000000000000/11111111-1111-1111-1111-111111111111
/// ```
/// </summary>
[AzureADResourceType("azuread:index/servicePrincipalPassword:ServicePrincipalPassword")]
public partial class ServicePrincipalPassword : Pulumi.CustomResource
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/user:User my_user 00000000-0000-0000-0000-000000000000
/// ```
/// </summary>
[AzureADResourceType("azuread:index/user:User")]
public partial class User : Pulumi.CustomResource
{
/// <summary>
Expand Down
7 changes: 7 additions & 0 deletions sdk/dotnet/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,11 @@ static Utilities()
}
}
}

internal sealed class AzureADResourceTypeAttribute : Pulumi.ResourceTypeAttribute
{
public AzureADResourceTypeAttribute(string type) : base(type, Utilities.Version)
{
}
}
}
2 changes: 1 addition & 1 deletion sdk/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.15

require (
github.com/pkg/errors v0.9.1
github.com/pulumi/pulumi/sdk/v2 v2.0.0
github.com/pulumi/pulumi/sdk/v2 v2.18.2
)
11 changes: 6 additions & 5 deletions sdk/go/azuread/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down Expand Up @@ -398,15 +399,15 @@ type ApplicationInput interface {
ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
}

func (Application) ElementType() reflect.Type {
return reflect.TypeOf((*Application)(nil)).Elem()
func (*Application) ElementType() reflect.Type {
return reflect.TypeOf((*Application)(nil))
}

func (i Application) ToApplicationOutput() ApplicationOutput {
func (i *Application) ToApplicationOutput() ApplicationOutput {
return i.ToApplicationOutputWithContext(context.Background())
}

func (i Application) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput {
func (i *Application) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationOutput)
}

Expand All @@ -415,7 +416,7 @@ type ApplicationOutput struct {
}

func (ApplicationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationOutput)(nil)).Elem()
return reflect.TypeOf((*Application)(nil))
}

func (o ApplicationOutput) ToApplicationOutput() ApplicationOutput {
Expand Down
12 changes: 6 additions & 6 deletions sdk/go/azuread/applicationAppRole.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down Expand Up @@ -199,15 +199,15 @@ type ApplicationAppRoleInput interface {
ToApplicationAppRoleOutputWithContext(ctx context.Context) ApplicationAppRoleOutput
}

func (ApplicationAppRole) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationAppRole)(nil)).Elem()
func (*ApplicationAppRole) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationAppRole)(nil))
}

func (i ApplicationAppRole) ToApplicationAppRoleOutput() ApplicationAppRoleOutput {
func (i *ApplicationAppRole) ToApplicationAppRoleOutput() ApplicationAppRoleOutput {
return i.ToApplicationAppRoleOutputWithContext(context.Background())
}

func (i ApplicationAppRole) ToApplicationAppRoleOutputWithContext(ctx context.Context) ApplicationAppRoleOutput {
func (i *ApplicationAppRole) ToApplicationAppRoleOutputWithContext(ctx context.Context) ApplicationAppRoleOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationAppRoleOutput)
}

Expand All @@ -216,7 +216,7 @@ type ApplicationAppRoleOutput struct {
}

func (ApplicationAppRoleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationAppRoleOutput)(nil)).Elem()
return reflect.TypeOf((*ApplicationAppRole)(nil))
}

func (o ApplicationAppRoleOutput) ToApplicationAppRoleOutput() ApplicationAppRoleOutput {
Expand Down
10 changes: 5 additions & 5 deletions sdk/go/azuread/applicationCertificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@ type ApplicationCertificateInput interface {
ToApplicationCertificateOutputWithContext(ctx context.Context) ApplicationCertificateOutput
}

func (ApplicationCertificate) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationCertificate)(nil)).Elem()
func (*ApplicationCertificate) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationCertificate)(nil))
}

func (i ApplicationCertificate) ToApplicationCertificateOutput() ApplicationCertificateOutput {
func (i *ApplicationCertificate) ToApplicationCertificateOutput() ApplicationCertificateOutput {
return i.ToApplicationCertificateOutputWithContext(context.Background())
}

func (i ApplicationCertificate) ToApplicationCertificateOutputWithContext(ctx context.Context) ApplicationCertificateOutput {
func (i *ApplicationCertificate) ToApplicationCertificateOutputWithContext(ctx context.Context) ApplicationCertificateOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationCertificateOutput)
}

Expand All @@ -176,7 +176,7 @@ type ApplicationCertificateOutput struct {
}

func (ApplicationCertificateOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationCertificateOutput)(nil)).Elem()
return reflect.TypeOf((*ApplicationCertificate)(nil))
}

func (o ApplicationCertificateOutput) ToApplicationCertificateOutput() ApplicationCertificateOutput {
Expand Down
12 changes: 6 additions & 6 deletions sdk/go/azuread/applicationOAuth2Permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down Expand Up @@ -228,15 +228,15 @@ type ApplicationOAuth2PermissionInput interface {
ToApplicationOAuth2PermissionOutputWithContext(ctx context.Context) ApplicationOAuth2PermissionOutput
}

func (ApplicationOAuth2Permission) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationOAuth2Permission)(nil)).Elem()
func (*ApplicationOAuth2Permission) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationOAuth2Permission)(nil))
}

func (i ApplicationOAuth2Permission) ToApplicationOAuth2PermissionOutput() ApplicationOAuth2PermissionOutput {
func (i *ApplicationOAuth2Permission) ToApplicationOAuth2PermissionOutput() ApplicationOAuth2PermissionOutput {
return i.ToApplicationOAuth2PermissionOutputWithContext(context.Background())
}

func (i ApplicationOAuth2Permission) ToApplicationOAuth2PermissionOutputWithContext(ctx context.Context) ApplicationOAuth2PermissionOutput {
func (i *ApplicationOAuth2Permission) ToApplicationOAuth2PermissionOutputWithContext(ctx context.Context) ApplicationOAuth2PermissionOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationOAuth2PermissionOutput)
}

Expand All @@ -245,7 +245,7 @@ type ApplicationOAuth2PermissionOutput struct {
}

func (ApplicationOAuth2PermissionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationOAuth2PermissionOutput)(nil)).Elem()
return reflect.TypeOf((*ApplicationOAuth2Permission)(nil))
}

func (o ApplicationOAuth2PermissionOutput) ToApplicationOAuth2PermissionOutput() ApplicationOAuth2PermissionOutput {
Expand Down
12 changes: 6 additions & 6 deletions sdk/go/azuread/applicationPassword.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
// import (
// "fmt"
//
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down Expand Up @@ -191,15 +191,15 @@ type ApplicationPasswordInput interface {
ToApplicationPasswordOutputWithContext(ctx context.Context) ApplicationPasswordOutput
}

func (ApplicationPassword) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationPassword)(nil)).Elem()
func (*ApplicationPassword) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationPassword)(nil))
}

func (i ApplicationPassword) ToApplicationPasswordOutput() ApplicationPasswordOutput {
func (i *ApplicationPassword) ToApplicationPasswordOutput() ApplicationPasswordOutput {
return i.ToApplicationPasswordOutputWithContext(context.Background())
}

func (i ApplicationPassword) ToApplicationPasswordOutputWithContext(ctx context.Context) ApplicationPasswordOutput {
func (i *ApplicationPassword) ToApplicationPasswordOutputWithContext(ctx context.Context) ApplicationPasswordOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationPasswordOutput)
}

Expand All @@ -208,7 +208,7 @@ type ApplicationPasswordOutput struct {
}

func (ApplicationPasswordOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationPasswordOutput)(nil)).Elem()
return reflect.TypeOf((*ApplicationPassword)(nil))
}

func (o ApplicationPasswordOutput) ToApplicationPasswordOutput() ApplicationPasswordOutput {
Expand Down
Loading

0 comments on commit 9a1cf21

Please sign in to comment.