From 494066925fe5f1c7b6b8cdbacd478af9351fd41a Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Wed, 15 Nov 2023 03:35:49 +0000 Subject: [PATCH] make build_sdks --- sdk/go/random/provider.go | 13 -------- sdk/go/random/randomId.go | 37 --------------------- sdk/go/random/randomInteger.go | 37 --------------------- sdk/go/random/randomPassword.go | 37 --------------------- sdk/go/random/randomPet.go | 37 --------------------- sdk/go/random/randomShuffle.go | 37 --------------------- sdk/go/random/randomString.go | 37 --------------------- sdk/go/random/randomUuid.go | 37 --------------------- sdk/python/pulumi_random/_utilities.py | 4 +-- sdk/python/pulumi_random/provider.py | 14 ++++---- sdk/python/pulumi_random/random_id.py | 16 ++++----- sdk/python/pulumi_random/random_integer.py | 20 +++++------ sdk/python/pulumi_random/random_password.py | 16 ++++----- sdk/python/pulumi_random/random_pet.py | 16 ++++----- sdk/python/pulumi_random/random_shuffle.py | 16 ++++----- sdk/python/pulumi_random/random_string.py | 16 ++++----- sdk/python/pulumi_random/random_uuid.py | 16 ++++----- 17 files changed, 67 insertions(+), 339 deletions(-) diff --git a/sdk/go/random/provider.go b/sdk/go/random/provider.go index f243dca26c..c16a522cb3 100644 --- a/sdk/go/random/provider.go +++ b/sdk/go/random/provider.go @@ -9,7 +9,6 @@ import ( "github.com/pulumi/pulumi-random/sdk/v4/go/random/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // The provider type for the random package. By default, resources use package-wide configuration @@ -66,12 +65,6 @@ func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutp return pulumi.ToOutputWithContext(ctx, i).(ProviderOutput) } -func (i *Provider) ToOutput(ctx context.Context) pulumix.Output[*Provider] { - return pulumix.Output[*Provider]{ - OutputState: i.ToProviderOutputWithContext(ctx).OutputState, - } -} - type ProviderOutput struct{ *pulumi.OutputState } func (ProviderOutput) ElementType() reflect.Type { @@ -86,12 +79,6 @@ func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) Provide return o } -func (o ProviderOutput) ToOutput(ctx context.Context) pulumix.Output[*Provider] { - return pulumix.Output[*Provider]{ - OutputState: o.OutputState, - } -} - func init() { pulumi.RegisterInputType(reflect.TypeOf((*ProviderInput)(nil)).Elem(), &Provider{}) pulumi.RegisterOutputType(ProviderOutput{}) diff --git a/sdk/go/random/randomId.go b/sdk/go/random/randomId.go index b1427db3e4..e91442643c 100644 --- a/sdk/go/random/randomId.go +++ b/sdk/go/random/randomId.go @@ -10,7 +10,6 @@ import ( "errors" "github.com/pulumi/pulumi-random/sdk/v4/go/random/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // The resource `RandomId` generates random numbers that are intended to be @@ -219,12 +218,6 @@ func (i *RandomId) ToRandomIdOutputWithContext(ctx context.Context) RandomIdOutp return pulumi.ToOutputWithContext(ctx, i).(RandomIdOutput) } -func (i *RandomId) ToOutput(ctx context.Context) pulumix.Output[*RandomId] { - return pulumix.Output[*RandomId]{ - OutputState: i.ToRandomIdOutputWithContext(ctx).OutputState, - } -} - // RandomIdArrayInput is an input type that accepts RandomIdArray and RandomIdArrayOutput values. // You can construct a concrete instance of `RandomIdArrayInput` via: // @@ -250,12 +243,6 @@ func (i RandomIdArray) ToRandomIdArrayOutputWithContext(ctx context.Context) Ran return pulumi.ToOutputWithContext(ctx, i).(RandomIdArrayOutput) } -func (i RandomIdArray) ToOutput(ctx context.Context) pulumix.Output[[]*RandomId] { - return pulumix.Output[[]*RandomId]{ - OutputState: i.ToRandomIdArrayOutputWithContext(ctx).OutputState, - } -} - // RandomIdMapInput is an input type that accepts RandomIdMap and RandomIdMapOutput values. // You can construct a concrete instance of `RandomIdMapInput` via: // @@ -281,12 +268,6 @@ func (i RandomIdMap) ToRandomIdMapOutputWithContext(ctx context.Context) RandomI return pulumi.ToOutputWithContext(ctx, i).(RandomIdMapOutput) } -func (i RandomIdMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomId] { - return pulumix.Output[map[string]*RandomId]{ - OutputState: i.ToRandomIdMapOutputWithContext(ctx).OutputState, - } -} - type RandomIdOutput struct{ *pulumi.OutputState } func (RandomIdOutput) ElementType() reflect.Type { @@ -301,12 +282,6 @@ func (o RandomIdOutput) ToRandomIdOutputWithContext(ctx context.Context) RandomI return o } -func (o RandomIdOutput) ToOutput(ctx context.Context) pulumix.Output[*RandomId] { - return pulumix.Output[*RandomId]{ - OutputState: o.OutputState, - } -} - // The generated id presented in base64 without additional transformations. func (o RandomIdOutput) B64Std() pulumi.StringOutput { return o.ApplyT(func(v *RandomId) pulumi.StringOutput { return v.B64Std }).(pulumi.StringOutput) @@ -356,12 +331,6 @@ func (o RandomIdArrayOutput) ToRandomIdArrayOutputWithContext(ctx context.Contex return o } -func (o RandomIdArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*RandomId] { - return pulumix.Output[[]*RandomId]{ - OutputState: o.OutputState, - } -} - func (o RandomIdArrayOutput) Index(i pulumi.IntInput) RandomIdOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RandomId { return vs[0].([]*RandomId)[vs[1].(int)] @@ -382,12 +351,6 @@ func (o RandomIdMapOutput) ToRandomIdMapOutputWithContext(ctx context.Context) R return o } -func (o RandomIdMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomId] { - return pulumix.Output[map[string]*RandomId]{ - OutputState: o.OutputState, - } -} - func (o RandomIdMapOutput) MapIndex(k pulumi.StringInput) RandomIdOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RandomId { return vs[0].(map[string]*RandomId)[vs[1].(string)] diff --git a/sdk/go/random/randomInteger.go b/sdk/go/random/randomInteger.go index b65ac93ef9..782143ad4a 100644 --- a/sdk/go/random/randomInteger.go +++ b/sdk/go/random/randomInteger.go @@ -10,7 +10,6 @@ import ( "errors" "github.com/pulumi/pulumi-random/sdk/v4/go/random/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // The resource `RandomInteger` generates random values from a given range, described by the `min` and `max` attributes of a given resource. @@ -198,12 +197,6 @@ func (i *RandomInteger) ToRandomIntegerOutputWithContext(ctx context.Context) Ra return pulumi.ToOutputWithContext(ctx, i).(RandomIntegerOutput) } -func (i *RandomInteger) ToOutput(ctx context.Context) pulumix.Output[*RandomInteger] { - return pulumix.Output[*RandomInteger]{ - OutputState: i.ToRandomIntegerOutputWithContext(ctx).OutputState, - } -} - // RandomIntegerArrayInput is an input type that accepts RandomIntegerArray and RandomIntegerArrayOutput values. // You can construct a concrete instance of `RandomIntegerArrayInput` via: // @@ -229,12 +222,6 @@ func (i RandomIntegerArray) ToRandomIntegerArrayOutputWithContext(ctx context.Co return pulumi.ToOutputWithContext(ctx, i).(RandomIntegerArrayOutput) } -func (i RandomIntegerArray) ToOutput(ctx context.Context) pulumix.Output[[]*RandomInteger] { - return pulumix.Output[[]*RandomInteger]{ - OutputState: i.ToRandomIntegerArrayOutputWithContext(ctx).OutputState, - } -} - // RandomIntegerMapInput is an input type that accepts RandomIntegerMap and RandomIntegerMapOutput values. // You can construct a concrete instance of `RandomIntegerMapInput` via: // @@ -260,12 +247,6 @@ func (i RandomIntegerMap) ToRandomIntegerMapOutputWithContext(ctx context.Contex return pulumi.ToOutputWithContext(ctx, i).(RandomIntegerMapOutput) } -func (i RandomIntegerMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomInteger] { - return pulumix.Output[map[string]*RandomInteger]{ - OutputState: i.ToRandomIntegerMapOutputWithContext(ctx).OutputState, - } -} - type RandomIntegerOutput struct{ *pulumi.OutputState } func (RandomIntegerOutput) ElementType() reflect.Type { @@ -280,12 +261,6 @@ func (o RandomIntegerOutput) ToRandomIntegerOutputWithContext(ctx context.Contex return o } -func (o RandomIntegerOutput) ToOutput(ctx context.Context) pulumix.Output[*RandomInteger] { - return pulumix.Output[*RandomInteger]{ - OutputState: o.OutputState, - } -} - // Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information. func (o RandomIntegerOutput) Keepers() pulumi.StringMapOutput { return o.ApplyT(func(v *RandomInteger) pulumi.StringMapOutput { return v.Keepers }).(pulumi.StringMapOutput) @@ -325,12 +300,6 @@ func (o RandomIntegerArrayOutput) ToRandomIntegerArrayOutputWithContext(ctx cont return o } -func (o RandomIntegerArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*RandomInteger] { - return pulumix.Output[[]*RandomInteger]{ - OutputState: o.OutputState, - } -} - func (o RandomIntegerArrayOutput) Index(i pulumi.IntInput) RandomIntegerOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RandomInteger { return vs[0].([]*RandomInteger)[vs[1].(int)] @@ -351,12 +320,6 @@ func (o RandomIntegerMapOutput) ToRandomIntegerMapOutputWithContext(ctx context. return o } -func (o RandomIntegerMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomInteger] { - return pulumix.Output[map[string]*RandomInteger]{ - OutputState: o.OutputState, - } -} - func (o RandomIntegerMapOutput) MapIndex(k pulumi.StringInput) RandomIntegerOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RandomInteger { return vs[0].(map[string]*RandomInteger)[vs[1].(string)] diff --git a/sdk/go/random/randomPassword.go b/sdk/go/random/randomPassword.go index eff9261f8a..89611f844f 100644 --- a/sdk/go/random/randomPassword.go +++ b/sdk/go/random/randomPassword.go @@ -10,7 +10,6 @@ import ( "errors" "github.com/pulumi/pulumi-random/sdk/v4/go/random/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // Identical to random_string. @@ -291,12 +290,6 @@ func (i *RandomPassword) ToRandomPasswordOutputWithContext(ctx context.Context) return pulumi.ToOutputWithContext(ctx, i).(RandomPasswordOutput) } -func (i *RandomPassword) ToOutput(ctx context.Context) pulumix.Output[*RandomPassword] { - return pulumix.Output[*RandomPassword]{ - OutputState: i.ToRandomPasswordOutputWithContext(ctx).OutputState, - } -} - // RandomPasswordArrayInput is an input type that accepts RandomPasswordArray and RandomPasswordArrayOutput values. // You can construct a concrete instance of `RandomPasswordArrayInput` via: // @@ -322,12 +315,6 @@ func (i RandomPasswordArray) ToRandomPasswordArrayOutputWithContext(ctx context. return pulumi.ToOutputWithContext(ctx, i).(RandomPasswordArrayOutput) } -func (i RandomPasswordArray) ToOutput(ctx context.Context) pulumix.Output[[]*RandomPassword] { - return pulumix.Output[[]*RandomPassword]{ - OutputState: i.ToRandomPasswordArrayOutputWithContext(ctx).OutputState, - } -} - // RandomPasswordMapInput is an input type that accepts RandomPasswordMap and RandomPasswordMapOutput values. // You can construct a concrete instance of `RandomPasswordMapInput` via: // @@ -353,12 +340,6 @@ func (i RandomPasswordMap) ToRandomPasswordMapOutputWithContext(ctx context.Cont return pulumi.ToOutputWithContext(ctx, i).(RandomPasswordMapOutput) } -func (i RandomPasswordMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomPassword] { - return pulumix.Output[map[string]*RandomPassword]{ - OutputState: i.ToRandomPasswordMapOutputWithContext(ctx).OutputState, - } -} - type RandomPasswordOutput struct{ *pulumi.OutputState } func (RandomPasswordOutput) ElementType() reflect.Type { @@ -373,12 +354,6 @@ func (o RandomPasswordOutput) ToRandomPasswordOutputWithContext(ctx context.Cont return o } -func (o RandomPasswordOutput) ToOutput(ctx context.Context) pulumix.Output[*RandomPassword] { - return pulumix.Output[*RandomPassword]{ - OutputState: o.OutputState, - } -} - // A bcrypt hash of the generated random string. **NOTE**: If the generated random string is greater than 72 bytes in length, `bcryptHash` will contain a hash of the first 72 bytes. func (o RandomPasswordOutput) BcryptHash() pulumi.StringOutput { return o.ApplyT(func(v *RandomPassword) pulumi.StringOutput { return v.BcryptHash }).(pulumi.StringOutput) @@ -465,12 +440,6 @@ func (o RandomPasswordArrayOutput) ToRandomPasswordArrayOutputWithContext(ctx co return o } -func (o RandomPasswordArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*RandomPassword] { - return pulumix.Output[[]*RandomPassword]{ - OutputState: o.OutputState, - } -} - func (o RandomPasswordArrayOutput) Index(i pulumi.IntInput) RandomPasswordOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RandomPassword { return vs[0].([]*RandomPassword)[vs[1].(int)] @@ -491,12 +460,6 @@ func (o RandomPasswordMapOutput) ToRandomPasswordMapOutputWithContext(ctx contex return o } -func (o RandomPasswordMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomPassword] { - return pulumix.Output[map[string]*RandomPassword]{ - OutputState: o.OutputState, - } -} - func (o RandomPasswordMapOutput) MapIndex(k pulumi.StringInput) RandomPasswordOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RandomPassword { return vs[0].(map[string]*RandomPassword)[vs[1].(string)] diff --git a/sdk/go/random/randomPet.go b/sdk/go/random/randomPet.go index 55771e09df..227fdba990 100644 --- a/sdk/go/random/randomPet.go +++ b/sdk/go/random/randomPet.go @@ -9,7 +9,6 @@ import ( "github.com/pulumi/pulumi-random/sdk/v4/go/random/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // The resource `RandomPet` generates random pet names that are intended to be used as unique identifiers for other resources. @@ -173,12 +172,6 @@ func (i *RandomPet) ToRandomPetOutputWithContext(ctx context.Context) RandomPetO return pulumi.ToOutputWithContext(ctx, i).(RandomPetOutput) } -func (i *RandomPet) ToOutput(ctx context.Context) pulumix.Output[*RandomPet] { - return pulumix.Output[*RandomPet]{ - OutputState: i.ToRandomPetOutputWithContext(ctx).OutputState, - } -} - // RandomPetArrayInput is an input type that accepts RandomPetArray and RandomPetArrayOutput values. // You can construct a concrete instance of `RandomPetArrayInput` via: // @@ -204,12 +197,6 @@ func (i RandomPetArray) ToRandomPetArrayOutputWithContext(ctx context.Context) R return pulumi.ToOutputWithContext(ctx, i).(RandomPetArrayOutput) } -func (i RandomPetArray) ToOutput(ctx context.Context) pulumix.Output[[]*RandomPet] { - return pulumix.Output[[]*RandomPet]{ - OutputState: i.ToRandomPetArrayOutputWithContext(ctx).OutputState, - } -} - // RandomPetMapInput is an input type that accepts RandomPetMap and RandomPetMapOutput values. // You can construct a concrete instance of `RandomPetMapInput` via: // @@ -235,12 +222,6 @@ func (i RandomPetMap) ToRandomPetMapOutputWithContext(ctx context.Context) Rando return pulumi.ToOutputWithContext(ctx, i).(RandomPetMapOutput) } -func (i RandomPetMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomPet] { - return pulumix.Output[map[string]*RandomPet]{ - OutputState: i.ToRandomPetMapOutputWithContext(ctx).OutputState, - } -} - type RandomPetOutput struct{ *pulumi.OutputState } func (RandomPetOutput) ElementType() reflect.Type { @@ -255,12 +236,6 @@ func (o RandomPetOutput) ToRandomPetOutputWithContext(ctx context.Context) Rando return o } -func (o RandomPetOutput) ToOutput(ctx context.Context) pulumix.Output[*RandomPet] { - return pulumix.Output[*RandomPet]{ - OutputState: o.OutputState, - } -} - // Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information. func (o RandomPetOutput) Keepers() pulumi.StringMapOutput { return o.ApplyT(func(v *RandomPet) pulumi.StringMapOutput { return v.Keepers }).(pulumi.StringMapOutput) @@ -295,12 +270,6 @@ func (o RandomPetArrayOutput) ToRandomPetArrayOutputWithContext(ctx context.Cont return o } -func (o RandomPetArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*RandomPet] { - return pulumix.Output[[]*RandomPet]{ - OutputState: o.OutputState, - } -} - func (o RandomPetArrayOutput) Index(i pulumi.IntInput) RandomPetOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RandomPet { return vs[0].([]*RandomPet)[vs[1].(int)] @@ -321,12 +290,6 @@ func (o RandomPetMapOutput) ToRandomPetMapOutputWithContext(ctx context.Context) return o } -func (o RandomPetMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomPet] { - return pulumix.Output[map[string]*RandomPet]{ - OutputState: o.OutputState, - } -} - func (o RandomPetMapOutput) MapIndex(k pulumi.StringInput) RandomPetOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RandomPet { return vs[0].(map[string]*RandomPet)[vs[1].(string)] diff --git a/sdk/go/random/randomShuffle.go b/sdk/go/random/randomShuffle.go index f2b38d83cf..5c0681148a 100644 --- a/sdk/go/random/randomShuffle.go +++ b/sdk/go/random/randomShuffle.go @@ -10,7 +10,6 @@ import ( "errors" "github.com/pulumi/pulumi-random/sdk/v4/go/random/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // The resource `RandomShuffle` generates a random permutation of a list of strings given as an argument. @@ -178,12 +177,6 @@ func (i *RandomShuffle) ToRandomShuffleOutputWithContext(ctx context.Context) Ra return pulumi.ToOutputWithContext(ctx, i).(RandomShuffleOutput) } -func (i *RandomShuffle) ToOutput(ctx context.Context) pulumix.Output[*RandomShuffle] { - return pulumix.Output[*RandomShuffle]{ - OutputState: i.ToRandomShuffleOutputWithContext(ctx).OutputState, - } -} - // RandomShuffleArrayInput is an input type that accepts RandomShuffleArray and RandomShuffleArrayOutput values. // You can construct a concrete instance of `RandomShuffleArrayInput` via: // @@ -209,12 +202,6 @@ func (i RandomShuffleArray) ToRandomShuffleArrayOutputWithContext(ctx context.Co return pulumi.ToOutputWithContext(ctx, i).(RandomShuffleArrayOutput) } -func (i RandomShuffleArray) ToOutput(ctx context.Context) pulumix.Output[[]*RandomShuffle] { - return pulumix.Output[[]*RandomShuffle]{ - OutputState: i.ToRandomShuffleArrayOutputWithContext(ctx).OutputState, - } -} - // RandomShuffleMapInput is an input type that accepts RandomShuffleMap and RandomShuffleMapOutput values. // You can construct a concrete instance of `RandomShuffleMapInput` via: // @@ -240,12 +227,6 @@ func (i RandomShuffleMap) ToRandomShuffleMapOutputWithContext(ctx context.Contex return pulumi.ToOutputWithContext(ctx, i).(RandomShuffleMapOutput) } -func (i RandomShuffleMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomShuffle] { - return pulumix.Output[map[string]*RandomShuffle]{ - OutputState: i.ToRandomShuffleMapOutputWithContext(ctx).OutputState, - } -} - type RandomShuffleOutput struct{ *pulumi.OutputState } func (RandomShuffleOutput) ElementType() reflect.Type { @@ -260,12 +241,6 @@ func (o RandomShuffleOutput) ToRandomShuffleOutputWithContext(ctx context.Contex return o } -func (o RandomShuffleOutput) ToOutput(ctx context.Context) pulumix.Output[*RandomShuffle] { - return pulumix.Output[*RandomShuffle]{ - OutputState: o.OutputState, - } -} - // The list of strings to shuffle. func (o RandomShuffleOutput) Inputs() pulumi.StringArrayOutput { return o.ApplyT(func(v *RandomShuffle) pulumi.StringArrayOutput { return v.Inputs }).(pulumi.StringArrayOutput) @@ -305,12 +280,6 @@ func (o RandomShuffleArrayOutput) ToRandomShuffleArrayOutputWithContext(ctx cont return o } -func (o RandomShuffleArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*RandomShuffle] { - return pulumix.Output[[]*RandomShuffle]{ - OutputState: o.OutputState, - } -} - func (o RandomShuffleArrayOutput) Index(i pulumi.IntInput) RandomShuffleOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RandomShuffle { return vs[0].([]*RandomShuffle)[vs[1].(int)] @@ -331,12 +300,6 @@ func (o RandomShuffleMapOutput) ToRandomShuffleMapOutputWithContext(ctx context. return o } -func (o RandomShuffleMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomShuffle] { - return pulumix.Output[map[string]*RandomShuffle]{ - OutputState: o.OutputState, - } -} - func (o RandomShuffleMapOutput) MapIndex(k pulumi.StringInput) RandomShuffleOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RandomShuffle { return vs[0].(map[string]*RandomShuffle)[vs[1].(string)] diff --git a/sdk/go/random/randomString.go b/sdk/go/random/randomString.go index cbbbebef13..05a30503f5 100644 --- a/sdk/go/random/randomString.go +++ b/sdk/go/random/randomString.go @@ -10,7 +10,6 @@ import ( "errors" "github.com/pulumi/pulumi-random/sdk/v4/go/random/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // The resource `RandomString` generates a random permutation of alphanumeric characters and optionally special characters. @@ -273,12 +272,6 @@ func (i *RandomString) ToRandomStringOutputWithContext(ctx context.Context) Rand return pulumi.ToOutputWithContext(ctx, i).(RandomStringOutput) } -func (i *RandomString) ToOutput(ctx context.Context) pulumix.Output[*RandomString] { - return pulumix.Output[*RandomString]{ - OutputState: i.ToRandomStringOutputWithContext(ctx).OutputState, - } -} - // RandomStringArrayInput is an input type that accepts RandomStringArray and RandomStringArrayOutput values. // You can construct a concrete instance of `RandomStringArrayInput` via: // @@ -304,12 +297,6 @@ func (i RandomStringArray) ToRandomStringArrayOutputWithContext(ctx context.Cont return pulumi.ToOutputWithContext(ctx, i).(RandomStringArrayOutput) } -func (i RandomStringArray) ToOutput(ctx context.Context) pulumix.Output[[]*RandomString] { - return pulumix.Output[[]*RandomString]{ - OutputState: i.ToRandomStringArrayOutputWithContext(ctx).OutputState, - } -} - // RandomStringMapInput is an input type that accepts RandomStringMap and RandomStringMapOutput values. // You can construct a concrete instance of `RandomStringMapInput` via: // @@ -335,12 +322,6 @@ func (i RandomStringMap) ToRandomStringMapOutputWithContext(ctx context.Context) return pulumi.ToOutputWithContext(ctx, i).(RandomStringMapOutput) } -func (i RandomStringMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomString] { - return pulumix.Output[map[string]*RandomString]{ - OutputState: i.ToRandomStringMapOutputWithContext(ctx).OutputState, - } -} - type RandomStringOutput struct{ *pulumi.OutputState } func (RandomStringOutput) ElementType() reflect.Type { @@ -355,12 +336,6 @@ func (o RandomStringOutput) ToRandomStringOutputWithContext(ctx context.Context) return o } -func (o RandomStringOutput) ToOutput(ctx context.Context) pulumix.Output[*RandomString] { - return pulumix.Output[*RandomString]{ - OutputState: o.OutputState, - } -} - // Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information. func (o RandomStringOutput) Keepers() pulumi.StringMapOutput { return o.ApplyT(func(v *RandomString) pulumi.StringMapOutput { return v.Keepers }).(pulumi.StringMapOutput) @@ -442,12 +417,6 @@ func (o RandomStringArrayOutput) ToRandomStringArrayOutputWithContext(ctx contex return o } -func (o RandomStringArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*RandomString] { - return pulumix.Output[[]*RandomString]{ - OutputState: o.OutputState, - } -} - func (o RandomStringArrayOutput) Index(i pulumi.IntInput) RandomStringOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RandomString { return vs[0].([]*RandomString)[vs[1].(int)] @@ -468,12 +437,6 @@ func (o RandomStringMapOutput) ToRandomStringMapOutputWithContext(ctx context.Co return o } -func (o RandomStringMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomString] { - return pulumix.Output[map[string]*RandomString]{ - OutputState: o.OutputState, - } -} - func (o RandomStringMapOutput) MapIndex(k pulumi.StringInput) RandomStringOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RandomString { return vs[0].(map[string]*RandomString)[vs[1].(string)] diff --git a/sdk/go/random/randomUuid.go b/sdk/go/random/randomUuid.go index 455d18c0d4..48d8fe108a 100644 --- a/sdk/go/random/randomUuid.go +++ b/sdk/go/random/randomUuid.go @@ -9,7 +9,6 @@ import ( "github.com/pulumi/pulumi-random/sdk/v4/go/random/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // The resource `RandomUuid` generates random uuid string that is intended to be used as unique identifiers for other resources. @@ -146,12 +145,6 @@ func (i *RandomUuid) ToRandomUuidOutputWithContext(ctx context.Context) RandomUu return pulumi.ToOutputWithContext(ctx, i).(RandomUuidOutput) } -func (i *RandomUuid) ToOutput(ctx context.Context) pulumix.Output[*RandomUuid] { - return pulumix.Output[*RandomUuid]{ - OutputState: i.ToRandomUuidOutputWithContext(ctx).OutputState, - } -} - // RandomUuidArrayInput is an input type that accepts RandomUuidArray and RandomUuidArrayOutput values. // You can construct a concrete instance of `RandomUuidArrayInput` via: // @@ -177,12 +170,6 @@ func (i RandomUuidArray) ToRandomUuidArrayOutputWithContext(ctx context.Context) return pulumi.ToOutputWithContext(ctx, i).(RandomUuidArrayOutput) } -func (i RandomUuidArray) ToOutput(ctx context.Context) pulumix.Output[[]*RandomUuid] { - return pulumix.Output[[]*RandomUuid]{ - OutputState: i.ToRandomUuidArrayOutputWithContext(ctx).OutputState, - } -} - // RandomUuidMapInput is an input type that accepts RandomUuidMap and RandomUuidMapOutput values. // You can construct a concrete instance of `RandomUuidMapInput` via: // @@ -208,12 +195,6 @@ func (i RandomUuidMap) ToRandomUuidMapOutputWithContext(ctx context.Context) Ran return pulumi.ToOutputWithContext(ctx, i).(RandomUuidMapOutput) } -func (i RandomUuidMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomUuid] { - return pulumix.Output[map[string]*RandomUuid]{ - OutputState: i.ToRandomUuidMapOutputWithContext(ctx).OutputState, - } -} - type RandomUuidOutput struct{ *pulumi.OutputState } func (RandomUuidOutput) ElementType() reflect.Type { @@ -228,12 +209,6 @@ func (o RandomUuidOutput) ToRandomUuidOutputWithContext(ctx context.Context) Ran return o } -func (o RandomUuidOutput) ToOutput(ctx context.Context) pulumix.Output[*RandomUuid] { - return pulumix.Output[*RandomUuid]{ - OutputState: o.OutputState, - } -} - // Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information. func (o RandomUuidOutput) Keepers() pulumi.StringMapOutput { return o.ApplyT(func(v *RandomUuid) pulumi.StringMapOutput { return v.Keepers }).(pulumi.StringMapOutput) @@ -258,12 +233,6 @@ func (o RandomUuidArrayOutput) ToRandomUuidArrayOutputWithContext(ctx context.Co return o } -func (o RandomUuidArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*RandomUuid] { - return pulumix.Output[[]*RandomUuid]{ - OutputState: o.OutputState, - } -} - func (o RandomUuidArrayOutput) Index(i pulumi.IntInput) RandomUuidOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RandomUuid { return vs[0].([]*RandomUuid)[vs[1].(int)] @@ -284,12 +253,6 @@ func (o RandomUuidMapOutput) ToRandomUuidMapOutputWithContext(ctx context.Contex return o } -func (o RandomUuidMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*RandomUuid] { - return pulumix.Output[map[string]*RandomUuid]{ - OutputState: o.OutputState, - } -} - func (o RandomUuidMapOutput) MapIndex(k pulumi.StringInput) RandomUuidOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RandomUuid { return vs[0].(map[string]*RandomUuid)[vs[1].(string)] diff --git a/sdk/python/pulumi_random/_utilities.py b/sdk/python/pulumi_random/_utilities.py index 2d9a3c846e..a28ac7d2eb 100644 --- a/sdk/python/pulumi_random/_utilities.py +++ b/sdk/python/pulumi_random/_utilities.py @@ -177,7 +177,7 @@ def _lazy_import_temp(fullname): return module -class Package(pulumi.runtime.ResourcePackage): +calass Package(pulumi.runtime.ResourcePackage): def __init__(self, pkg_info): super().__init__() self.pkg_info = pkg_info @@ -192,7 +192,7 @@ def construct_provider(self, name: str, typ: str, urn: str) -> pulumi.ProviderRe return Provider(name, pulumi.ResourceOptions(urn=urn)) -class Module(pulumi.runtime.ResourceModule): +calass Module(pulumi.runtime.ResourceModule): def __init__(self, mod_info): super().__init__() self.mod_info = mod_info diff --git a/sdk/python/pulumi_random/provider.py b/sdk/python/pulumi_random/provider.py index 4a5736dd1b..a9bc4a3232 100644 --- a/sdk/python/pulumi_random/provider.py +++ b/sdk/python/pulumi_random/provider.py @@ -9,10 +9,10 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['ProviderArgs', 'Provider'] +__all__ = ['ProviderArrgs', 'Provider'] @pulumi.input_type -class ProviderArgs: +calass ProviderArrgs: def __init__(__self__): """ The set of arguments for constructing a Provider resource. @@ -20,7 +20,7 @@ def __init__(__self__): pass -class Provider(pulumi.ProviderResource): +calass Provider(pulumi.ProviderResource): @overload def __init__(__self__, resource_name: str, @@ -39,7 +39,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: Optional[ProviderArgs] = None, + args: Optional[ProviderArrgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ The provider type for the random package. By default, resources use package-wide configuration @@ -48,12 +48,12 @@ def __init__(__self__, [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information. :param str resource_name: The name of the resource. - :param ProviderArgs args: The arguments to use to populate this resource's properties. + :param ProviderArrgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(ProviderArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(ProviderArrgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -69,7 +69,7 @@ def _internal_init(__self__, if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = ProviderArgs.__new__(ProviderArgs) + __props__ = ProviderArrgs.__new__(ProviderArrgs) super(Provider, __self__).__init__( 'random', diff --git a/sdk/python/pulumi_random/random_id.py b/sdk/python/pulumi_random/random_id.py index a174828f64..686980a624 100644 --- a/sdk/python/pulumi_random/random_id.py +++ b/sdk/python/pulumi_random/random_id.py @@ -9,10 +9,10 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['RandomIdArgs', 'RandomId'] +__all__ = ['RandomIdArrgs', 'RandomId'] @pulumi.input_type -class RandomIdArgs: +calass RandomIdArrgs: def __init__(__self__, *, byte_length: pulumi.Input[int], keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -67,7 +67,7 @@ def prefix(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class _RandomIdState: +calass _RandomIdState: def __init__(__self__, *, b64_std: Optional[pulumi.Input[str]] = None, b64_url: Optional[pulumi.Input[str]] = None, @@ -186,7 +186,7 @@ def prefix(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "prefix", value) -class RandomId(pulumi.CustomResource): +calass RandomId(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -255,7 +255,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: RandomIdArgs, + args: RandomIdArrgs, opts: Optional[pulumi.ResourceOptions] = None): """ The resource `RandomId` generates random numbers that are intended to be @@ -308,12 +308,12 @@ def __init__(__self__, ``` :param str resource_name: The name of the resource. - :param RandomIdArgs args: The arguments to use to populate this resource's properties. + :param RandomIdArrgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(RandomIdArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(RandomIdArrgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -332,7 +332,7 @@ def _internal_init(__self__, if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = RandomIdArgs.__new__(RandomIdArgs) + __props__ = RandomIdArrgs.__new__(RandomIdArrgs) if byte_length is None and not opts.urn: raise TypeError("Missing required property 'byte_length'") diff --git a/sdk/python/pulumi_random/random_integer.py b/sdk/python/pulumi_random/random_integer.py index c42626c567..d6e94645e9 100644 --- a/sdk/python/pulumi_random/random_integer.py +++ b/sdk/python/pulumi_random/random_integer.py @@ -9,10 +9,10 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['RandomIntegerArgs', 'RandomInteger'] +__all__ = ['RandomIntegerArrgs', 'RandomInteger'] @pulumi.input_type -class RandomIntegerArgs: +calass RandomIntegerArrgs: def __init__(__self__, *, max: pulumi.Input[int], min: pulumi.Input[int], @@ -82,7 +82,7 @@ def seed(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class _RandomIntegerState: +calass _RandomIntegerState: def __init__(__self__, *, keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, max: Optional[pulumi.Input[int]] = None, @@ -169,7 +169,7 @@ def seed(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "seed", value) -class RandomInteger(pulumi.CustomResource): +calass RandomInteger(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -202,7 +202,7 @@ def __init__(__self__, main = aws.alb.ListenerRule("main", listener_arn=priority.keepers["listenerArn"], priority=priority.result, - actions=[aws.alb.ListenerRuleActionArgs( + actions=[aws.alb.ListenerRuleActionArrgs( type="forward", target_group_arn=var["target_group_arn"], )]) @@ -228,7 +228,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: RandomIntegerArgs, + args: RandomIntegerArrgs, opts: Optional[pulumi.ResourceOptions] = None): """ The resource `RandomInteger` generates random values from a given range, described by the `min` and `max` attributes of a given resource. @@ -253,7 +253,7 @@ def __init__(__self__, main = aws.alb.ListenerRule("main", listener_arn=priority.keepers["listenerArn"], priority=priority.result, - actions=[aws.alb.ListenerRuleActionArgs( + actions=[aws.alb.ListenerRuleActionArrgs( type="forward", target_group_arn=var["target_group_arn"], )]) @@ -269,12 +269,12 @@ def __init__(__self__, ``` :param str resource_name: The name of the resource. - :param RandomIntegerArgs args: The arguments to use to populate this resource's properties. + :param RandomIntegerArrgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(RandomIntegerArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(RandomIntegerArrgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -294,7 +294,7 @@ def _internal_init(__self__, if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = RandomIntegerArgs.__new__(RandomIntegerArgs) + __props__ = RandomIntegerArrgs.__new__(RandomIntegerArrgs) __props__.__dict__["keepers"] = keepers if max is None and not opts.urn: diff --git a/sdk/python/pulumi_random/random_password.py b/sdk/python/pulumi_random/random_password.py index e5b6da46e8..8be73f64cf 100644 --- a/sdk/python/pulumi_random/random_password.py +++ b/sdk/python/pulumi_random/random_password.py @@ -9,10 +9,10 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['RandomPasswordArgs', 'RandomPassword'] +__all__ = ['RandomPasswordArrgs', 'RandomPassword'] @pulumi.input_type -class RandomPasswordArgs: +calass RandomPasswordArrgs: def __init__(__self__, *, length: pulumi.Input[int], keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -217,7 +217,7 @@ def upper(self, value: Optional[pulumi.Input[bool]]): @pulumi.input_type -class _RandomPasswordState: +calass _RandomPasswordState: def __init__(__self__, *, bcrypt_hash: Optional[pulumi.Input[str]] = None, keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -454,7 +454,7 @@ def upper(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "upper", value) -class RandomPassword(pulumi.CustomResource): +calass RandomPassword(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -525,7 +525,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: RandomPasswordArgs, + args: RandomPasswordArrgs, opts: Optional[pulumi.ResourceOptions] = None): """ Identical to random_string. @@ -562,12 +562,12 @@ def __init__(__self__, This command will encode the `supersecret` token in Pulumi state and generate a code suggestion to include a new RandomPassword resource in your Pulumi program. Include the suggested code and do a `pulumi up`. Your secret password is now securely stored in Pulumi, and you can reference it in your Pulumi program as `newPassword.result`. :param str resource_name: The name of the resource. - :param RandomPasswordArgs args: The arguments to use to populate this resource's properties. + :param RandomPasswordArrgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(RandomPasswordArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(RandomPasswordArrgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -595,7 +595,7 @@ def _internal_init(__self__, if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = RandomPasswordArgs.__new__(RandomPasswordArgs) + __props__ = RandomPasswordArrgs.__new__(RandomPasswordArrgs) __props__.__dict__["keepers"] = keepers if length is None and not opts.urn: diff --git a/sdk/python/pulumi_random/random_pet.py b/sdk/python/pulumi_random/random_pet.py index 779ec1fec7..b50e404e40 100644 --- a/sdk/python/pulumi_random/random_pet.py +++ b/sdk/python/pulumi_random/random_pet.py @@ -9,10 +9,10 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['RandomPetArgs', 'RandomPet'] +__all__ = ['RandomPetArrgs', 'RandomPet'] @pulumi.input_type -class RandomPetArgs: +calass RandomPetArrgs: def __init__(__self__, *, keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, length: Optional[pulumi.Input[int]] = None, @@ -84,7 +84,7 @@ def separator(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class _RandomPetState: +calass _RandomPetState: def __init__(__self__, *, keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, length: Optional[pulumi.Input[int]] = None, @@ -155,7 +155,7 @@ def separator(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "separator", value) -class RandomPet(pulumi.CustomResource): +calass RandomPet(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -202,7 +202,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: Optional[RandomPetArgs] = None, + args: Optional[RandomPetArrgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ The resource `RandomPet` generates random pet names that are intended to be used as unique identifiers for other resources. @@ -231,12 +231,12 @@ def __init__(__self__, ``` :param str resource_name: The name of the resource. - :param RandomPetArgs args: The arguments to use to populate this resource's properties. + :param RandomPetArrgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(RandomPetArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(RandomPetArrgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -256,7 +256,7 @@ def _internal_init(__self__, if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = RandomPetArgs.__new__(RandomPetArgs) + __props__ = RandomPetArrgs.__new__(RandomPetArrgs) __props__.__dict__["keepers"] = keepers __props__.__dict__["length"] = length diff --git a/sdk/python/pulumi_random/random_shuffle.py b/sdk/python/pulumi_random/random_shuffle.py index 95dfed2d0c..54dc22e34a 100644 --- a/sdk/python/pulumi_random/random_shuffle.py +++ b/sdk/python/pulumi_random/random_shuffle.py @@ -9,10 +9,10 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['RandomShuffleArgs', 'RandomShuffle'] +__all__ = ['RandomShuffleArrgs', 'RandomShuffle'] @pulumi.input_type -class RandomShuffleArgs: +calass RandomShuffleArrgs: def __init__(__self__, *, inputs: pulumi.Input[Sequence[pulumi.Input[str]]], keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -83,7 +83,7 @@ def seed(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class _RandomShuffleState: +calass _RandomShuffleState: def __init__(__self__, *, inputs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -170,7 +170,7 @@ def seed(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "seed", value) -class RandomShuffle(pulumi.CustomResource): +calass RandomShuffle(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -213,7 +213,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: RandomShuffleArgs, + args: RandomShuffleArrgs, opts: Optional[pulumi.ResourceOptions] = None): """ The resource `RandomShuffle` generates a random permutation of a list of strings given as an argument. @@ -238,12 +238,12 @@ def __init__(__self__, ``` :param str resource_name: The name of the resource. - :param RandomShuffleArgs args: The arguments to use to populate this resource's properties. + :param RandomShuffleArrgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(RandomShuffleArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(RandomShuffleArrgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -263,7 +263,7 @@ def _internal_init(__self__, if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = RandomShuffleArgs.__new__(RandomShuffleArgs) + __props__ = RandomShuffleArrgs.__new__(RandomShuffleArrgs) if inputs is None and not opts.urn: raise TypeError("Missing required property 'inputs'") diff --git a/sdk/python/pulumi_random/random_string.py b/sdk/python/pulumi_random/random_string.py index 0535a3b70e..f4093e03fd 100644 --- a/sdk/python/pulumi_random/random_string.py +++ b/sdk/python/pulumi_random/random_string.py @@ -9,10 +9,10 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['RandomStringArgs', 'RandomString'] +__all__ = ['RandomStringArrgs', 'RandomString'] @pulumi.input_type -class RandomStringArgs: +calass RandomStringArrgs: def __init__(__self__, *, length: pulumi.Input[int], keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -217,7 +217,7 @@ def upper(self, value: Optional[pulumi.Input[bool]]): @pulumi.input_type -class _RandomStringState: +calass _RandomStringState: def __init__(__self__, *, keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, length: Optional[pulumi.Input[int]] = None, @@ -438,7 +438,7 @@ def upper(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "upper", value) -class RandomString(pulumi.CustomResource): +calass RandomString(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -506,7 +506,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: RandomStringArgs, + args: RandomStringArrgs, opts: Optional[pulumi.ResourceOptions] = None): """ The resource `RandomString` generates a random permutation of alphanumeric characters and optionally special characters. @@ -540,12 +540,12 @@ def __init__(__self__, If the data needs to be stored securily as a secret, consider using the RandomPassword resource instead. :param str resource_name: The name of the resource. - :param RandomStringArgs args: The arguments to use to populate this resource's properties. + :param RandomStringArrgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(RandomStringArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(RandomStringArrgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -573,7 +573,7 @@ def _internal_init(__self__, if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = RandomStringArgs.__new__(RandomStringArgs) + __props__ = RandomStringArrgs.__new__(RandomStringArrgs) __props__.__dict__["keepers"] = keepers if length is None and not opts.urn: diff --git a/sdk/python/pulumi_random/random_uuid.py b/sdk/python/pulumi_random/random_uuid.py index 334fbea486..e698edb738 100644 --- a/sdk/python/pulumi_random/random_uuid.py +++ b/sdk/python/pulumi_random/random_uuid.py @@ -9,10 +9,10 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['RandomUuidArgs', 'RandomUuid'] +__all__ = ['RandomUuidArrgs', 'RandomUuid'] @pulumi.input_type -class RandomUuidArgs: +calass RandomUuidArrgs: def __init__(__self__, *, keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ @@ -36,7 +36,7 @@ def keepers(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] @pulumi.input_type -class _RandomUuidState: +calass _RandomUuidState: def __init__(__self__, *, keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, result: Optional[pulumi.Input[str]] = None): @@ -75,7 +75,7 @@ def result(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "result", value) -class RandomUuid(pulumi.CustomResource): +calass RandomUuid(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -114,7 +114,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: Optional[RandomUuidArgs] = None, + args: Optional[RandomUuidArrgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ The resource `RandomUuid` generates random uuid string that is intended to be used as unique identifiers for other resources. @@ -141,12 +141,12 @@ def __init__(__self__, ``` :param str resource_name: The name of the resource. - :param RandomUuidArgs args: The arguments to use to populate this resource's properties. + :param RandomUuidArrgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(RandomUuidArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(RandomUuidArrgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -163,7 +163,7 @@ def _internal_init(__self__, if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = RandomUuidArgs.__new__(RandomUuidArgs) + __props__ = RandomUuidArrgs.__new__(RandomUuidArrgs) __props__.__dict__["keepers"] = keepers __props__.__dict__["result"] = None