diff --git a/provider/cmd/pulumi-resource-digitalocean/schema.json b/provider/cmd/pulumi-resource-digitalocean/schema.json index 819701c0..cf2ca292 100644 --- a/provider/cmd/pulumi-resource-digitalocean/schema.json +++ b/provider/cmd/pulumi-resource-digitalocean/schema.json @@ -1025,7 +1025,6 @@ }, "type": "object", "required": [ - "registryCredentials", "registryType", "repository" ], @@ -1033,7 +1032,6 @@ "nodejs": { "requiredOutputs": [ "deployOnPushes", - "registryCredentials", "registryType", "repository" ] @@ -1456,7 +1454,6 @@ }, "type": "object", "required": [ - "registryCredentials", "registryType", "repository" ], @@ -1464,7 +1461,6 @@ "nodejs": { "requiredOutputs": [ "deployOnPushes", - "registryCredentials", "registryType", "repository" ] @@ -2002,7 +1998,6 @@ }, "type": "object", "required": [ - "registryCredentials", "registryType", "repository" ], @@ -2010,7 +2005,6 @@ "nodejs": { "requiredOutputs": [ "deployOnPushes", - "registryCredentials", "registryType", "repository" ] @@ -4160,7 +4154,6 @@ "type": "object", "required": [ "deployOnPushes", - "registryCredentials", "registryType", "repository" ], @@ -4610,7 +4603,6 @@ "type": "object", "required": [ "deployOnPushes", - "registryCredentials", "registryType", "repository" ], @@ -5181,7 +5173,6 @@ "type": "object", "required": [ "deployOnPushes", - "registryCredentials", "registryType", "repository" ], diff --git a/sdk/dotnet/Inputs/AppSpecJobImageArgs.cs b/sdk/dotnet/Inputs/AppSpecJobImageArgs.cs index 8e955c3e..9ad2b65d 100644 --- a/sdk/dotnet/Inputs/AppSpecJobImageArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecJobImageArgs.cs @@ -30,7 +30,7 @@ public InputList DeployOnPushes [Input("registry")] public Input? Registry { get; set; } - [Input("registryCredentials", required: true)] + [Input("registryCredentials")] private Input? _registryCredentials; /// diff --git a/sdk/dotnet/Inputs/AppSpecJobImageGetArgs.cs b/sdk/dotnet/Inputs/AppSpecJobImageGetArgs.cs index 543ec1d6..2128dfb9 100644 --- a/sdk/dotnet/Inputs/AppSpecJobImageGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecJobImageGetArgs.cs @@ -30,7 +30,7 @@ public InputList DeployOnPushes [Input("registry")] public Input? Registry { get; set; } - [Input("registryCredentials", required: true)] + [Input("registryCredentials")] private Input? _registryCredentials; /// diff --git a/sdk/dotnet/Inputs/AppSpecServiceImageArgs.cs b/sdk/dotnet/Inputs/AppSpecServiceImageArgs.cs index 8869e9c6..ee3aeb42 100644 --- a/sdk/dotnet/Inputs/AppSpecServiceImageArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecServiceImageArgs.cs @@ -30,7 +30,7 @@ public InputList DeployOnPushes [Input("registry")] public Input? Registry { get; set; } - [Input("registryCredentials", required: true)] + [Input("registryCredentials")] private Input? _registryCredentials; /// diff --git a/sdk/dotnet/Inputs/AppSpecServiceImageGetArgs.cs b/sdk/dotnet/Inputs/AppSpecServiceImageGetArgs.cs index c98c29d4..fda64307 100644 --- a/sdk/dotnet/Inputs/AppSpecServiceImageGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecServiceImageGetArgs.cs @@ -30,7 +30,7 @@ public InputList DeployOnPushes [Input("registry")] public Input? Registry { get; set; } - [Input("registryCredentials", required: true)] + [Input("registryCredentials")] private Input? _registryCredentials; /// diff --git a/sdk/dotnet/Inputs/AppSpecWorkerImageArgs.cs b/sdk/dotnet/Inputs/AppSpecWorkerImageArgs.cs index 599fb755..93666ae5 100644 --- a/sdk/dotnet/Inputs/AppSpecWorkerImageArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecWorkerImageArgs.cs @@ -30,7 +30,7 @@ public InputList DeployOnPushes [Input("registry")] public Input? Registry { get; set; } - [Input("registryCredentials", required: true)] + [Input("registryCredentials")] private Input? _registryCredentials; /// diff --git a/sdk/dotnet/Inputs/AppSpecWorkerImageGetArgs.cs b/sdk/dotnet/Inputs/AppSpecWorkerImageGetArgs.cs index 5d64fa38..3accf872 100644 --- a/sdk/dotnet/Inputs/AppSpecWorkerImageGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecWorkerImageGetArgs.cs @@ -30,7 +30,7 @@ public InputList DeployOnPushes [Input("registry")] public Input? Registry { get; set; } - [Input("registryCredentials", required: true)] + [Input("registryCredentials")] private Input? _registryCredentials; /// diff --git a/sdk/dotnet/Outputs/AppSpecJobImage.cs b/sdk/dotnet/Outputs/AppSpecJobImage.cs index a712cf82..ee48e98c 100644 --- a/sdk/dotnet/Outputs/AppSpecJobImage.cs +++ b/sdk/dotnet/Outputs/AppSpecJobImage.cs @@ -24,7 +24,7 @@ public sealed class AppSpecJobImage /// /// Access credentials for third-party registries /// - public readonly string RegistryCredentials; + public readonly string? RegistryCredentials; /// /// The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. /// @@ -44,7 +44,7 @@ private AppSpecJobImage( string? registry, - string registryCredentials, + string? registryCredentials, string registryType, diff --git a/sdk/dotnet/Outputs/AppSpecServiceImage.cs b/sdk/dotnet/Outputs/AppSpecServiceImage.cs index baff336e..e1bf15d4 100644 --- a/sdk/dotnet/Outputs/AppSpecServiceImage.cs +++ b/sdk/dotnet/Outputs/AppSpecServiceImage.cs @@ -24,7 +24,7 @@ public sealed class AppSpecServiceImage /// /// Access credentials for third-party registries /// - public readonly string RegistryCredentials; + public readonly string? RegistryCredentials; /// /// The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. /// @@ -44,7 +44,7 @@ private AppSpecServiceImage( string? registry, - string registryCredentials, + string? registryCredentials, string registryType, diff --git a/sdk/dotnet/Outputs/AppSpecWorkerImage.cs b/sdk/dotnet/Outputs/AppSpecWorkerImage.cs index 74cce2c5..717f9dd3 100644 --- a/sdk/dotnet/Outputs/AppSpecWorkerImage.cs +++ b/sdk/dotnet/Outputs/AppSpecWorkerImage.cs @@ -24,7 +24,7 @@ public sealed class AppSpecWorkerImage /// /// Access credentials for third-party registries /// - public readonly string RegistryCredentials; + public readonly string? RegistryCredentials; /// /// The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. /// @@ -44,7 +44,7 @@ private AppSpecWorkerImage( string? registry, - string registryCredentials, + string? registryCredentials, string registryType, diff --git a/sdk/dotnet/Outputs/GetAppSpecJobImageResult.cs b/sdk/dotnet/Outputs/GetAppSpecJobImageResult.cs index 77d4ef27..6d7cb932 100644 --- a/sdk/dotnet/Outputs/GetAppSpecJobImageResult.cs +++ b/sdk/dotnet/Outputs/GetAppSpecJobImageResult.cs @@ -24,7 +24,7 @@ public sealed class GetAppSpecJobImageResult /// /// Access credentials for third-party registries /// - public readonly string RegistryCredentials; + public readonly string? RegistryCredentials; /// /// The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. /// @@ -44,7 +44,7 @@ private GetAppSpecJobImageResult( string? registry, - string registryCredentials, + string? registryCredentials, string registryType, diff --git a/sdk/dotnet/Outputs/GetAppSpecServiceImageResult.cs b/sdk/dotnet/Outputs/GetAppSpecServiceImageResult.cs index e4f67dfb..13ae8a10 100644 --- a/sdk/dotnet/Outputs/GetAppSpecServiceImageResult.cs +++ b/sdk/dotnet/Outputs/GetAppSpecServiceImageResult.cs @@ -24,7 +24,7 @@ public sealed class GetAppSpecServiceImageResult /// /// Access credentials for third-party registries /// - public readonly string RegistryCredentials; + public readonly string? RegistryCredentials; /// /// The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. /// @@ -44,7 +44,7 @@ private GetAppSpecServiceImageResult( string? registry, - string registryCredentials, + string? registryCredentials, string registryType, diff --git a/sdk/dotnet/Outputs/GetAppSpecWorkerImageResult.cs b/sdk/dotnet/Outputs/GetAppSpecWorkerImageResult.cs index c70fddb5..93fabfa3 100644 --- a/sdk/dotnet/Outputs/GetAppSpecWorkerImageResult.cs +++ b/sdk/dotnet/Outputs/GetAppSpecWorkerImageResult.cs @@ -24,7 +24,7 @@ public sealed class GetAppSpecWorkerImageResult /// /// Access credentials for third-party registries /// - public readonly string RegistryCredentials; + public readonly string? RegistryCredentials; /// /// The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. /// @@ -44,7 +44,7 @@ private GetAppSpecWorkerImageResult( string? registry, - string registryCredentials, + string? registryCredentials, string registryType, diff --git a/sdk/go/digitalocean/pulumiTypes.go b/sdk/go/digitalocean/pulumiTypes.go index c4f42e13..32c8689c 100644 --- a/sdk/go/digitalocean/pulumiTypes.go +++ b/sdk/go/digitalocean/pulumiTypes.go @@ -5190,7 +5190,7 @@ type AppSpecJobImage struct { // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry *string `pulumi:"registry"` // Access credentials for third-party registries - RegistryCredentials string `pulumi:"registryCredentials"` + RegistryCredentials *string `pulumi:"registryCredentials"` // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. RegistryType string `pulumi:"registryType"` // The repository name. @@ -5216,7 +5216,7 @@ type AppSpecJobImageArgs struct { // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry pulumi.StringPtrInput `pulumi:"registry"` // Access credentials for third-party registries - RegistryCredentials pulumi.StringInput `pulumi:"registryCredentials"` + RegistryCredentials pulumi.StringPtrInput `pulumi:"registryCredentials"` // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. RegistryType pulumi.StringInput `pulumi:"registryType"` // The repository name. @@ -5313,8 +5313,8 @@ func (o AppSpecJobImageOutput) Registry() pulumi.StringPtrOutput { } // Access credentials for third-party registries -func (o AppSpecJobImageOutput) RegistryCredentials() pulumi.StringOutput { - return o.ApplyT(func(v AppSpecJobImage) string { return v.RegistryCredentials }).(pulumi.StringOutput) +func (o AppSpecJobImageOutput) RegistryCredentials() pulumi.StringPtrOutput { + return o.ApplyT(func(v AppSpecJobImage) *string { return v.RegistryCredentials }).(pulumi.StringPtrOutput) } // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. @@ -5382,7 +5382,7 @@ func (o AppSpecJobImagePtrOutput) RegistryCredentials() pulumi.StringPtrOutput { if v == nil { return nil } - return &v.RegistryCredentials + return v.RegistryCredentials }).(pulumi.StringPtrOutput) } @@ -7774,7 +7774,7 @@ type AppSpecServiceImage struct { // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry *string `pulumi:"registry"` // Access credentials for third-party registries - RegistryCredentials string `pulumi:"registryCredentials"` + RegistryCredentials *string `pulumi:"registryCredentials"` // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. RegistryType string `pulumi:"registryType"` // The repository name. @@ -7800,7 +7800,7 @@ type AppSpecServiceImageArgs struct { // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry pulumi.StringPtrInput `pulumi:"registry"` // Access credentials for third-party registries - RegistryCredentials pulumi.StringInput `pulumi:"registryCredentials"` + RegistryCredentials pulumi.StringPtrInput `pulumi:"registryCredentials"` // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. RegistryType pulumi.StringInput `pulumi:"registryType"` // The repository name. @@ -7897,8 +7897,8 @@ func (o AppSpecServiceImageOutput) Registry() pulumi.StringPtrOutput { } // Access credentials for third-party registries -func (o AppSpecServiceImageOutput) RegistryCredentials() pulumi.StringOutput { - return o.ApplyT(func(v AppSpecServiceImage) string { return v.RegistryCredentials }).(pulumi.StringOutput) +func (o AppSpecServiceImageOutput) RegistryCredentials() pulumi.StringPtrOutput { + return o.ApplyT(func(v AppSpecServiceImage) *string { return v.RegistryCredentials }).(pulumi.StringPtrOutput) } // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. @@ -7966,7 +7966,7 @@ func (o AppSpecServiceImagePtrOutput) RegistryCredentials() pulumi.StringPtrOutp if v == nil { return nil } - return &v.RegistryCredentials + return v.RegistryCredentials }).(pulumi.StringPtrOutput) } @@ -11127,7 +11127,7 @@ type AppSpecWorkerImage struct { // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry *string `pulumi:"registry"` // Access credentials for third-party registries - RegistryCredentials string `pulumi:"registryCredentials"` + RegistryCredentials *string `pulumi:"registryCredentials"` // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. RegistryType string `pulumi:"registryType"` // The repository name. @@ -11153,7 +11153,7 @@ type AppSpecWorkerImageArgs struct { // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry pulumi.StringPtrInput `pulumi:"registry"` // Access credentials for third-party registries - RegistryCredentials pulumi.StringInput `pulumi:"registryCredentials"` + RegistryCredentials pulumi.StringPtrInput `pulumi:"registryCredentials"` // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. RegistryType pulumi.StringInput `pulumi:"registryType"` // The repository name. @@ -11250,8 +11250,8 @@ func (o AppSpecWorkerImageOutput) Registry() pulumi.StringPtrOutput { } // Access credentials for third-party registries -func (o AppSpecWorkerImageOutput) RegistryCredentials() pulumi.StringOutput { - return o.ApplyT(func(v AppSpecWorkerImage) string { return v.RegistryCredentials }).(pulumi.StringOutput) +func (o AppSpecWorkerImageOutput) RegistryCredentials() pulumi.StringPtrOutput { + return o.ApplyT(func(v AppSpecWorkerImage) *string { return v.RegistryCredentials }).(pulumi.StringPtrOutput) } // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. @@ -11319,7 +11319,7 @@ func (o AppSpecWorkerImagePtrOutput) RegistryCredentials() pulumi.StringPtrOutpu if v == nil { return nil } - return &v.RegistryCredentials + return v.RegistryCredentials }).(pulumi.StringPtrOutput) } @@ -21863,7 +21863,7 @@ type GetAppSpecJobImage struct { // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry *string `pulumi:"registry"` // Access credentials for third-party registries - RegistryCredentials string `pulumi:"registryCredentials"` + RegistryCredentials *string `pulumi:"registryCredentials"` // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. RegistryType string `pulumi:"registryType"` // The repository name. @@ -21889,7 +21889,7 @@ type GetAppSpecJobImageArgs struct { // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry pulumi.StringPtrInput `pulumi:"registry"` // Access credentials for third-party registries - RegistryCredentials pulumi.StringInput `pulumi:"registryCredentials"` + RegistryCredentials pulumi.StringPtrInput `pulumi:"registryCredentials"` // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. RegistryType pulumi.StringInput `pulumi:"registryType"` // The repository name. @@ -21986,8 +21986,8 @@ func (o GetAppSpecJobImageOutput) Registry() pulumi.StringPtrOutput { } // Access credentials for third-party registries -func (o GetAppSpecJobImageOutput) RegistryCredentials() pulumi.StringOutput { - return o.ApplyT(func(v GetAppSpecJobImage) string { return v.RegistryCredentials }).(pulumi.StringOutput) +func (o GetAppSpecJobImageOutput) RegistryCredentials() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetAppSpecJobImage) *string { return v.RegistryCredentials }).(pulumi.StringPtrOutput) } // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. @@ -22055,7 +22055,7 @@ func (o GetAppSpecJobImagePtrOutput) RegistryCredentials() pulumi.StringPtrOutpu if v == nil { return nil } - return &v.RegistryCredentials + return v.RegistryCredentials }).(pulumi.StringPtrOutput) } @@ -24441,7 +24441,7 @@ type GetAppSpecServiceImage struct { // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry *string `pulumi:"registry"` // Access credentials for third-party registries - RegistryCredentials string `pulumi:"registryCredentials"` + RegistryCredentials *string `pulumi:"registryCredentials"` // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. RegistryType string `pulumi:"registryType"` // The repository name. @@ -24467,7 +24467,7 @@ type GetAppSpecServiceImageArgs struct { // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry pulumi.StringPtrInput `pulumi:"registry"` // Access credentials for third-party registries - RegistryCredentials pulumi.StringInput `pulumi:"registryCredentials"` + RegistryCredentials pulumi.StringPtrInput `pulumi:"registryCredentials"` // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. RegistryType pulumi.StringInput `pulumi:"registryType"` // The repository name. @@ -24564,8 +24564,8 @@ func (o GetAppSpecServiceImageOutput) Registry() pulumi.StringPtrOutput { } // Access credentials for third-party registries -func (o GetAppSpecServiceImageOutput) RegistryCredentials() pulumi.StringOutput { - return o.ApplyT(func(v GetAppSpecServiceImage) string { return v.RegistryCredentials }).(pulumi.StringOutput) +func (o GetAppSpecServiceImageOutput) RegistryCredentials() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetAppSpecServiceImage) *string { return v.RegistryCredentials }).(pulumi.StringPtrOutput) } // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. @@ -24633,7 +24633,7 @@ func (o GetAppSpecServiceImagePtrOutput) RegistryCredentials() pulumi.StringPtrO if v == nil { return nil } - return &v.RegistryCredentials + return v.RegistryCredentials }).(pulumi.StringPtrOutput) } @@ -27790,7 +27790,7 @@ type GetAppSpecWorkerImage struct { // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry *string `pulumi:"registry"` // Access credentials for third-party registries - RegistryCredentials string `pulumi:"registryCredentials"` + RegistryCredentials *string `pulumi:"registryCredentials"` // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. RegistryType string `pulumi:"registryType"` // The repository name. @@ -27816,7 +27816,7 @@ type GetAppSpecWorkerImageArgs struct { // The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. Registry pulumi.StringPtrInput `pulumi:"registry"` // Access credentials for third-party registries - RegistryCredentials pulumi.StringInput `pulumi:"registryCredentials"` + RegistryCredentials pulumi.StringPtrInput `pulumi:"registryCredentials"` // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. RegistryType pulumi.StringInput `pulumi:"registryType"` // The repository name. @@ -27913,8 +27913,8 @@ func (o GetAppSpecWorkerImageOutput) Registry() pulumi.StringPtrOutput { } // Access credentials for third-party registries -func (o GetAppSpecWorkerImageOutput) RegistryCredentials() pulumi.StringOutput { - return o.ApplyT(func(v GetAppSpecWorkerImage) string { return v.RegistryCredentials }).(pulumi.StringOutput) +func (o GetAppSpecWorkerImageOutput) RegistryCredentials() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetAppSpecWorkerImage) *string { return v.RegistryCredentials }).(pulumi.StringPtrOutput) } // The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. @@ -27982,7 +27982,7 @@ func (o GetAppSpecWorkerImagePtrOutput) RegistryCredentials() pulumi.StringPtrOu if v == nil { return nil } - return &v.RegistryCredentials + return v.RegistryCredentials }).(pulumi.StringPtrOutput) } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobImageArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobImageArgs.java index 1633a7bb..d158de04 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobImageArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobImageArgs.java @@ -52,15 +52,15 @@ public Optional> registry() { * Access credentials for third-party registries * */ - @Import(name="registryCredentials", required=true) - private Output registryCredentials; + @Import(name="registryCredentials") + private @Nullable Output registryCredentials; /** * @return Access credentials for third-party registries * */ - public Output registryCredentials() { - return this.registryCredentials; + public Optional> registryCredentials() { + return Optional.ofNullable(this.registryCredentials); } /** @@ -195,7 +195,7 @@ public Builder registry(String registry) { * @return builder * */ - public Builder registryCredentials(Output registryCredentials) { + public Builder registryCredentials(@Nullable Output registryCredentials) { $.registryCredentials = registryCredentials; return this; } @@ -274,9 +274,6 @@ public Builder tag(String tag) { } public AppSpecJobImageArgs build() { - if ($.registryCredentials == null) { - throw new MissingRequiredPropertyException("AppSpecJobImageArgs", "registryCredentials"); - } if ($.registryType == null) { throw new MissingRequiredPropertyException("AppSpecJobImageArgs", "registryType"); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceImageArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceImageArgs.java index abdd5d3d..49eaa08b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceImageArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceImageArgs.java @@ -52,15 +52,15 @@ public Optional> registry() { * Access credentials for third-party registries * */ - @Import(name="registryCredentials", required=true) - private Output registryCredentials; + @Import(name="registryCredentials") + private @Nullable Output registryCredentials; /** * @return Access credentials for third-party registries * */ - public Output registryCredentials() { - return this.registryCredentials; + public Optional> registryCredentials() { + return Optional.ofNullable(this.registryCredentials); } /** @@ -195,7 +195,7 @@ public Builder registry(String registry) { * @return builder * */ - public Builder registryCredentials(Output registryCredentials) { + public Builder registryCredentials(@Nullable Output registryCredentials) { $.registryCredentials = registryCredentials; return this; } @@ -274,9 +274,6 @@ public Builder tag(String tag) { } public AppSpecServiceImageArgs build() { - if ($.registryCredentials == null) { - throw new MissingRequiredPropertyException("AppSpecServiceImageArgs", "registryCredentials"); - } if ($.registryType == null) { throw new MissingRequiredPropertyException("AppSpecServiceImageArgs", "registryType"); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerImageArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerImageArgs.java index 070df872..8f55c2d7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerImageArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerImageArgs.java @@ -52,15 +52,15 @@ public Optional> registry() { * Access credentials for third-party registries * */ - @Import(name="registryCredentials", required=true) - private Output registryCredentials; + @Import(name="registryCredentials") + private @Nullable Output registryCredentials; /** * @return Access credentials for third-party registries * */ - public Output registryCredentials() { - return this.registryCredentials; + public Optional> registryCredentials() { + return Optional.ofNullable(this.registryCredentials); } /** @@ -195,7 +195,7 @@ public Builder registry(String registry) { * @return builder * */ - public Builder registryCredentials(Output registryCredentials) { + public Builder registryCredentials(@Nullable Output registryCredentials) { $.registryCredentials = registryCredentials; return this; } @@ -274,9 +274,6 @@ public Builder tag(String tag) { } public AppSpecWorkerImageArgs build() { - if ($.registryCredentials == null) { - throw new MissingRequiredPropertyException("AppSpecWorkerImageArgs", "registryCredentials"); - } if ($.registryType == null) { throw new MissingRequiredPropertyException("AppSpecWorkerImageArgs", "registryType"); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobImage.java index dbc5113e..db859058 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobImage.java @@ -28,7 +28,7 @@ public final class AppSpecJobImage { * @return Access credentials for third-party registries * */ - private String registryCredentials; + private @Nullable String registryCredentials; /** * @return The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. * @@ -64,8 +64,8 @@ public Optional registry() { * @return Access credentials for third-party registries * */ - public String registryCredentials() { - return this.registryCredentials; + public Optional registryCredentials() { + return Optional.ofNullable(this.registryCredentials); } /** * @return The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. @@ -100,7 +100,7 @@ public static Builder builder(AppSpecJobImage defaults) { public static final class Builder { private @Nullable List deployOnPushes; private @Nullable String registry; - private String registryCredentials; + private @Nullable String registryCredentials; private String registryType; private String repository; private @Nullable String tag; @@ -131,10 +131,8 @@ public Builder registry(@Nullable String registry) { return this; } @CustomType.Setter - public Builder registryCredentials(String registryCredentials) { - if (registryCredentials == null) { - throw new MissingRequiredPropertyException("AppSpecJobImage", "registryCredentials"); - } + public Builder registryCredentials(@Nullable String registryCredentials) { + this.registryCredentials = registryCredentials; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceImage.java index 854b342c..f4b80c6c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceImage.java @@ -28,7 +28,7 @@ public final class AppSpecServiceImage { * @return Access credentials for third-party registries * */ - private String registryCredentials; + private @Nullable String registryCredentials; /** * @return The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. * @@ -64,8 +64,8 @@ public Optional registry() { * @return Access credentials for third-party registries * */ - public String registryCredentials() { - return this.registryCredentials; + public Optional registryCredentials() { + return Optional.ofNullable(this.registryCredentials); } /** * @return The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. @@ -100,7 +100,7 @@ public static Builder builder(AppSpecServiceImage defaults) { public static final class Builder { private @Nullable List deployOnPushes; private @Nullable String registry; - private String registryCredentials; + private @Nullable String registryCredentials; private String registryType; private String repository; private @Nullable String tag; @@ -131,10 +131,8 @@ public Builder registry(@Nullable String registry) { return this; } @CustomType.Setter - public Builder registryCredentials(String registryCredentials) { - if (registryCredentials == null) { - throw new MissingRequiredPropertyException("AppSpecServiceImage", "registryCredentials"); - } + public Builder registryCredentials(@Nullable String registryCredentials) { + this.registryCredentials = registryCredentials; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerImage.java index e59d4ae7..5fc97157 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerImage.java @@ -28,7 +28,7 @@ public final class AppSpecWorkerImage { * @return Access credentials for third-party registries * */ - private String registryCredentials; + private @Nullable String registryCredentials; /** * @return The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. * @@ -64,8 +64,8 @@ public Optional registry() { * @return Access credentials for third-party registries * */ - public String registryCredentials() { - return this.registryCredentials; + public Optional registryCredentials() { + return Optional.ofNullable(this.registryCredentials); } /** * @return The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. @@ -100,7 +100,7 @@ public static Builder builder(AppSpecWorkerImage defaults) { public static final class Builder { private @Nullable List deployOnPushes; private @Nullable String registry; - private String registryCredentials; + private @Nullable String registryCredentials; private String registryType; private String repository; private @Nullable String tag; @@ -131,10 +131,8 @@ public Builder registry(@Nullable String registry) { return this; } @CustomType.Setter - public Builder registryCredentials(String registryCredentials) { - if (registryCredentials == null) { - throw new MissingRequiredPropertyException("AppSpecWorkerImage", "registryCredentials"); - } + public Builder registryCredentials(@Nullable String registryCredentials) { + this.registryCredentials = registryCredentials; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobImage.java index e4656432..44f17de7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobImage.java @@ -28,7 +28,7 @@ public final class GetAppSpecJobImage { * @return Access credentials for third-party registries * */ - private String registryCredentials; + private @Nullable String registryCredentials; /** * @return The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. * @@ -64,8 +64,8 @@ public Optional registry() { * @return Access credentials for third-party registries * */ - public String registryCredentials() { - return this.registryCredentials; + public Optional registryCredentials() { + return Optional.ofNullable(this.registryCredentials); } /** * @return The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. @@ -100,7 +100,7 @@ public static Builder builder(GetAppSpecJobImage defaults) { public static final class Builder { private List deployOnPushes; private @Nullable String registry; - private String registryCredentials; + private @Nullable String registryCredentials; private String registryType; private String repository; private @Nullable String tag; @@ -133,10 +133,8 @@ public Builder registry(@Nullable String registry) { return this; } @CustomType.Setter - public Builder registryCredentials(String registryCredentials) { - if (registryCredentials == null) { - throw new MissingRequiredPropertyException("GetAppSpecJobImage", "registryCredentials"); - } + public Builder registryCredentials(@Nullable String registryCredentials) { + this.registryCredentials = registryCredentials; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceImage.java index b5484995..8c2b1e53 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceImage.java @@ -28,7 +28,7 @@ public final class GetAppSpecServiceImage { * @return Access credentials for third-party registries * */ - private String registryCredentials; + private @Nullable String registryCredentials; /** * @return The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. * @@ -64,8 +64,8 @@ public Optional registry() { * @return Access credentials for third-party registries * */ - public String registryCredentials() { - return this.registryCredentials; + public Optional registryCredentials() { + return Optional.ofNullable(this.registryCredentials); } /** * @return The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. @@ -100,7 +100,7 @@ public static Builder builder(GetAppSpecServiceImage defaults) { public static final class Builder { private List deployOnPushes; private @Nullable String registry; - private String registryCredentials; + private @Nullable String registryCredentials; private String registryType; private String repository; private @Nullable String tag; @@ -133,10 +133,8 @@ public Builder registry(@Nullable String registry) { return this; } @CustomType.Setter - public Builder registryCredentials(String registryCredentials) { - if (registryCredentials == null) { - throw new MissingRequiredPropertyException("GetAppSpecServiceImage", "registryCredentials"); - } + public Builder registryCredentials(@Nullable String registryCredentials) { + this.registryCredentials = registryCredentials; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerImage.java index 3d24a943..5941f11b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerImage.java @@ -28,7 +28,7 @@ public final class GetAppSpecWorkerImage { * @return Access credentials for third-party registries * */ - private String registryCredentials; + private @Nullable String registryCredentials; /** * @return The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. * @@ -64,8 +64,8 @@ public Optional registry() { * @return Access credentials for third-party registries * */ - public String registryCredentials() { - return this.registryCredentials; + public Optional registryCredentials() { + return Optional.ofNullable(this.registryCredentials); } /** * @return The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. @@ -100,7 +100,7 @@ public static Builder builder(GetAppSpecWorkerImage defaults) { public static final class Builder { private List deployOnPushes; private @Nullable String registry; - private String registryCredentials; + private @Nullable String registryCredentials; private String registryType; private String repository; private @Nullable String tag; @@ -133,10 +133,8 @@ public Builder registry(@Nullable String registry) { return this; } @CustomType.Setter - public Builder registryCredentials(String registryCredentials) { - if (registryCredentials == null) { - throw new MissingRequiredPropertyException("GetAppSpecWorkerImage", "registryCredentials"); - } + public Builder registryCredentials(@Nullable String registryCredentials) { + this.registryCredentials = registryCredentials; return this; } diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index e83361d0..57e039f4 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -602,7 +602,7 @@ export interface AppSpecJobImage { /** * Access credentials for third-party registries */ - registryCredentials: pulumi.Input; + registryCredentials?: pulumi.Input; /** * The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. */ @@ -923,7 +923,7 @@ export interface AppSpecServiceImage { /** * Access credentials for third-party registries */ - registryCredentials: pulumi.Input; + registryCredentials?: pulumi.Input; /** * The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. */ @@ -1338,7 +1338,7 @@ export interface AppSpecWorkerImage { /** * Access credentials for third-party registries */ - registryCredentials: pulumi.Input; + registryCredentials?: pulumi.Input; /** * The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. */ diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index cde8bcdb..11b64c25 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -602,7 +602,7 @@ export interface AppSpecJobImage { /** * Access credentials for third-party registries */ - registryCredentials: string; + registryCredentials?: string; /** * The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. */ @@ -923,7 +923,7 @@ export interface AppSpecServiceImage { /** * Access credentials for third-party registries */ - registryCredentials: string; + registryCredentials?: string; /** * The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. */ @@ -1338,7 +1338,7 @@ export interface AppSpecWorkerImage { /** * Access credentials for third-party registries */ - registryCredentials: string; + registryCredentials?: string; /** * The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. */ @@ -2267,7 +2267,7 @@ export interface GetAppSpecJobImage { /** * Access credentials for third-party registries */ - registryCredentials: string; + registryCredentials?: string; /** * The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. */ @@ -2586,7 +2586,7 @@ export interface GetAppSpecServiceImage { /** * Access credentials for third-party registries */ - registryCredentials: string; + registryCredentials?: string; /** * The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. */ @@ -2999,7 +2999,7 @@ export interface GetAppSpecWorkerImage { /** * Access credentials for third-party registries */ - registryCredentials: string; + registryCredentials?: string; /** * The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. */ diff --git a/sdk/python/pulumi_digitalocean/_inputs.py b/sdk/python/pulumi_digitalocean/_inputs.py index ca564c84..77f31608 100644 --- a/sdk/python/pulumi_digitalocean/_inputs.py +++ b/sdk/python/pulumi_digitalocean/_inputs.py @@ -2438,42 +2438,31 @@ def repo(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type class AppSpecJobImageArgs: def __init__(__self__, *, - registry_credentials: pulumi.Input[str], registry_type: pulumi.Input[str], repository: pulumi.Input[str], deploy_on_pushes: Optional[pulumi.Input[Sequence[pulumi.Input['AppSpecJobImageDeployOnPushArgs']]]] = None, registry: Optional[pulumi.Input[str]] = None, + registry_credentials: Optional[pulumi.Input[str]] = None, tag: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] registry_credentials: Access credentials for third-party registries :param pulumi.Input[str] registry_type: The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. :param pulumi.Input[str] repository: The repository name. :param pulumi.Input[Sequence[pulumi.Input['AppSpecJobImageDeployOnPushArgs']]] deploy_on_pushes: Configures automatically deploying images pushed to DOCR. :param pulumi.Input[str] registry: The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. + :param pulumi.Input[str] registry_credentials: Access credentials for third-party registries :param pulumi.Input[str] tag: The repository tag. Defaults to `latest` if not provided. """ - pulumi.set(__self__, "registry_credentials", registry_credentials) pulumi.set(__self__, "registry_type", registry_type) pulumi.set(__self__, "repository", repository) if deploy_on_pushes is not None: pulumi.set(__self__, "deploy_on_pushes", deploy_on_pushes) if registry is not None: pulumi.set(__self__, "registry", registry) + if registry_credentials is not None: + pulumi.set(__self__, "registry_credentials", registry_credentials) if tag is not None: pulumi.set(__self__, "tag", tag) - @property - @pulumi.getter(name="registryCredentials") - def registry_credentials(self) -> pulumi.Input[str]: - """ - Access credentials for third-party registries - """ - return pulumi.get(self, "registry_credentials") - - @registry_credentials.setter - def registry_credentials(self, value: pulumi.Input[str]): - pulumi.set(self, "registry_credentials", value) - @property @pulumi.getter(name="registryType") def registry_type(self) -> pulumi.Input[str]: @@ -2522,6 +2511,18 @@ def registry(self) -> Optional[pulumi.Input[str]]: def registry(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "registry", value) + @property + @pulumi.getter(name="registryCredentials") + def registry_credentials(self) -> Optional[pulumi.Input[str]]: + """ + Access credentials for third-party registries + """ + return pulumi.get(self, "registry_credentials") + + @registry_credentials.setter + def registry_credentials(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "registry_credentials", value) + @property @pulumi.getter def tag(self) -> Optional[pulumi.Input[str]]: @@ -3631,42 +3632,31 @@ def timeout_seconds(self, value: Optional[pulumi.Input[int]]): @pulumi.input_type class AppSpecServiceImageArgs: def __init__(__self__, *, - registry_credentials: pulumi.Input[str], registry_type: pulumi.Input[str], repository: pulumi.Input[str], deploy_on_pushes: Optional[pulumi.Input[Sequence[pulumi.Input['AppSpecServiceImageDeployOnPushArgs']]]] = None, registry: Optional[pulumi.Input[str]] = None, + registry_credentials: Optional[pulumi.Input[str]] = None, tag: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] registry_credentials: Access credentials for third-party registries :param pulumi.Input[str] registry_type: The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. :param pulumi.Input[str] repository: The repository name. :param pulumi.Input[Sequence[pulumi.Input['AppSpecServiceImageDeployOnPushArgs']]] deploy_on_pushes: Configures automatically deploying images pushed to DOCR. :param pulumi.Input[str] registry: The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. + :param pulumi.Input[str] registry_credentials: Access credentials for third-party registries :param pulumi.Input[str] tag: The repository tag. Defaults to `latest` if not provided. """ - pulumi.set(__self__, "registry_credentials", registry_credentials) pulumi.set(__self__, "registry_type", registry_type) pulumi.set(__self__, "repository", repository) if deploy_on_pushes is not None: pulumi.set(__self__, "deploy_on_pushes", deploy_on_pushes) if registry is not None: pulumi.set(__self__, "registry", registry) + if registry_credentials is not None: + pulumi.set(__self__, "registry_credentials", registry_credentials) if tag is not None: pulumi.set(__self__, "tag", tag) - @property - @pulumi.getter(name="registryCredentials") - def registry_credentials(self) -> pulumi.Input[str]: - """ - Access credentials for third-party registries - """ - return pulumi.get(self, "registry_credentials") - - @registry_credentials.setter - def registry_credentials(self, value: pulumi.Input[str]): - pulumi.set(self, "registry_credentials", value) - @property @pulumi.getter(name="registryType") def registry_type(self) -> pulumi.Input[str]: @@ -3715,6 +3705,18 @@ def registry(self) -> Optional[pulumi.Input[str]]: def registry(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "registry", value) + @property + @pulumi.getter(name="registryCredentials") + def registry_credentials(self) -> Optional[pulumi.Input[str]]: + """ + Access credentials for third-party registries + """ + return pulumi.get(self, "registry_credentials") + + @registry_credentials.setter + def registry_credentials(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "registry_credentials", value) + @property @pulumi.getter def tag(self) -> Optional[pulumi.Input[str]]: @@ -5169,42 +5171,31 @@ def repo(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type class AppSpecWorkerImageArgs: def __init__(__self__, *, - registry_credentials: pulumi.Input[str], registry_type: pulumi.Input[str], repository: pulumi.Input[str], deploy_on_pushes: Optional[pulumi.Input[Sequence[pulumi.Input['AppSpecWorkerImageDeployOnPushArgs']]]] = None, registry: Optional[pulumi.Input[str]] = None, + registry_credentials: Optional[pulumi.Input[str]] = None, tag: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] registry_credentials: Access credentials for third-party registries :param pulumi.Input[str] registry_type: The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. :param pulumi.Input[str] repository: The repository name. :param pulumi.Input[Sequence[pulumi.Input['AppSpecWorkerImageDeployOnPushArgs']]] deploy_on_pushes: Configures automatically deploying images pushed to DOCR. :param pulumi.Input[str] registry: The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. + :param pulumi.Input[str] registry_credentials: Access credentials for third-party registries :param pulumi.Input[str] tag: The repository tag. Defaults to `latest` if not provided. """ - pulumi.set(__self__, "registry_credentials", registry_credentials) pulumi.set(__self__, "registry_type", registry_type) pulumi.set(__self__, "repository", repository) if deploy_on_pushes is not None: pulumi.set(__self__, "deploy_on_pushes", deploy_on_pushes) if registry is not None: pulumi.set(__self__, "registry", registry) + if registry_credentials is not None: + pulumi.set(__self__, "registry_credentials", registry_credentials) if tag is not None: pulumi.set(__self__, "tag", tag) - @property - @pulumi.getter(name="registryCredentials") - def registry_credentials(self) -> pulumi.Input[str]: - """ - Access credentials for third-party registries - """ - return pulumi.get(self, "registry_credentials") - - @registry_credentials.setter - def registry_credentials(self, value: pulumi.Input[str]): - pulumi.set(self, "registry_credentials", value) - @property @pulumi.getter(name="registryType") def registry_type(self) -> pulumi.Input[str]: @@ -5253,6 +5244,18 @@ def registry(self) -> Optional[pulumi.Input[str]]: def registry(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "registry", value) + @property + @pulumi.getter(name="registryCredentials") + def registry_credentials(self) -> Optional[pulumi.Input[str]]: + """ + Access credentials for third-party registries + """ + return pulumi.get(self, "registry_credentials") + + @registry_credentials.setter + def registry_credentials(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "registry_credentials", value) + @property @pulumi.getter def tag(self) -> Optional[pulumi.Input[str]]: diff --git a/sdk/python/pulumi_digitalocean/outputs.py b/sdk/python/pulumi_digitalocean/outputs.py index f8bd7aad..84572dfc 100644 --- a/sdk/python/pulumi_digitalocean/outputs.py +++ b/sdk/python/pulumi_digitalocean/outputs.py @@ -2310,12 +2310,12 @@ class AppSpecJobImage(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "registryCredentials": - suggest = "registry_credentials" - elif key == "registryType": + if key == "registryType": suggest = "registry_type" elif key == "deployOnPushes": suggest = "deploy_on_pushes" + elif key == "registryCredentials": + suggest = "registry_credentials" if suggest: pulumi.log.warn(f"Key '{key}' not found in AppSpecJobImage. Access the value via the '{suggest}' property getter instead.") @@ -2329,38 +2329,31 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - registry_credentials: str, registry_type: str, repository: str, deploy_on_pushes: Optional[Sequence['outputs.AppSpecJobImageDeployOnPush']] = None, registry: Optional[str] = None, + registry_credentials: Optional[str] = None, tag: Optional[str] = None): """ - :param str registry_credentials: Access credentials for third-party registries :param str registry_type: The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. :param str repository: The repository name. :param Sequence['AppSpecJobImageDeployOnPushArgs'] deploy_on_pushes: Configures automatically deploying images pushed to DOCR. :param str registry: The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. + :param str registry_credentials: Access credentials for third-party registries :param str tag: The repository tag. Defaults to `latest` if not provided. """ - pulumi.set(__self__, "registry_credentials", registry_credentials) pulumi.set(__self__, "registry_type", registry_type) pulumi.set(__self__, "repository", repository) if deploy_on_pushes is not None: pulumi.set(__self__, "deploy_on_pushes", deploy_on_pushes) if registry is not None: pulumi.set(__self__, "registry", registry) + if registry_credentials is not None: + pulumi.set(__self__, "registry_credentials", registry_credentials) if tag is not None: pulumi.set(__self__, "tag", tag) - @property - @pulumi.getter(name="registryCredentials") - def registry_credentials(self) -> str: - """ - Access credentials for third-party registries - """ - return pulumi.get(self, "registry_credentials") - @property @pulumi.getter(name="registryType") def registry_type(self) -> str: @@ -2393,6 +2386,14 @@ def registry(self) -> Optional[str]: """ return pulumi.get(self, "registry") + @property + @pulumi.getter(name="registryCredentials") + def registry_credentials(self) -> Optional[str]: + """ + Access credentials for third-party registries + """ + return pulumi.get(self, "registry_credentials") + @property @pulumi.getter def tag(self) -> Optional[str]: @@ -3405,12 +3406,12 @@ class AppSpecServiceImage(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "registryCredentials": - suggest = "registry_credentials" - elif key == "registryType": + if key == "registryType": suggest = "registry_type" elif key == "deployOnPushes": suggest = "deploy_on_pushes" + elif key == "registryCredentials": + suggest = "registry_credentials" if suggest: pulumi.log.warn(f"Key '{key}' not found in AppSpecServiceImage. Access the value via the '{suggest}' property getter instead.") @@ -3424,38 +3425,31 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - registry_credentials: str, registry_type: str, repository: str, deploy_on_pushes: Optional[Sequence['outputs.AppSpecServiceImageDeployOnPush']] = None, registry: Optional[str] = None, + registry_credentials: Optional[str] = None, tag: Optional[str] = None): """ - :param str registry_credentials: Access credentials for third-party registries :param str registry_type: The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. :param str repository: The repository name. :param Sequence['AppSpecServiceImageDeployOnPushArgs'] deploy_on_pushes: Configures automatically deploying images pushed to DOCR. :param str registry: The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. + :param str registry_credentials: Access credentials for third-party registries :param str tag: The repository tag. Defaults to `latest` if not provided. """ - pulumi.set(__self__, "registry_credentials", registry_credentials) pulumi.set(__self__, "registry_type", registry_type) pulumi.set(__self__, "repository", repository) if deploy_on_pushes is not None: pulumi.set(__self__, "deploy_on_pushes", deploy_on_pushes) if registry is not None: pulumi.set(__self__, "registry", registry) + if registry_credentials is not None: + pulumi.set(__self__, "registry_credentials", registry_credentials) if tag is not None: pulumi.set(__self__, "tag", tag) - @property - @pulumi.getter(name="registryCredentials") - def registry_credentials(self) -> str: - """ - Access credentials for third-party registries - """ - return pulumi.get(self, "registry_credentials") - @property @pulumi.getter(name="registryType") def registry_type(self) -> str: @@ -3488,6 +3482,14 @@ def registry(self) -> Optional[str]: """ return pulumi.get(self, "registry") + @property + @pulumi.getter(name="registryCredentials") + def registry_credentials(self) -> Optional[str]: + """ + Access credentials for third-party registries + """ + return pulumi.get(self, "registry_credentials") + @property @pulumi.getter def tag(self) -> Optional[str]: @@ -4852,12 +4854,12 @@ class AppSpecWorkerImage(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "registryCredentials": - suggest = "registry_credentials" - elif key == "registryType": + if key == "registryType": suggest = "registry_type" elif key == "deployOnPushes": suggest = "deploy_on_pushes" + elif key == "registryCredentials": + suggest = "registry_credentials" if suggest: pulumi.log.warn(f"Key '{key}' not found in AppSpecWorkerImage. Access the value via the '{suggest}' property getter instead.") @@ -4871,38 +4873,31 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - registry_credentials: str, registry_type: str, repository: str, deploy_on_pushes: Optional[Sequence['outputs.AppSpecWorkerImageDeployOnPush']] = None, registry: Optional[str] = None, + registry_credentials: Optional[str] = None, tag: Optional[str] = None): """ - :param str registry_credentials: Access credentials for third-party registries :param str registry_type: The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. :param str repository: The repository name. :param Sequence['AppSpecWorkerImageDeployOnPushArgs'] deploy_on_pushes: Configures automatically deploying images pushed to DOCR. :param str registry: The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. + :param str registry_credentials: Access credentials for third-party registries :param str tag: The repository tag. Defaults to `latest` if not provided. """ - pulumi.set(__self__, "registry_credentials", registry_credentials) pulumi.set(__self__, "registry_type", registry_type) pulumi.set(__self__, "repository", repository) if deploy_on_pushes is not None: pulumi.set(__self__, "deploy_on_pushes", deploy_on_pushes) if registry is not None: pulumi.set(__self__, "registry", registry) + if registry_credentials is not None: + pulumi.set(__self__, "registry_credentials", registry_credentials) if tag is not None: pulumi.set(__self__, "tag", tag) - @property - @pulumi.getter(name="registryCredentials") - def registry_credentials(self) -> str: - """ - Access credentials for third-party registries - """ - return pulumi.get(self, "registry_credentials") - @property @pulumi.getter(name="registryType") def registry_type(self) -> str: @@ -4935,6 +4930,14 @@ def registry(self) -> Optional[str]: """ return pulumi.get(self, "registry") + @property + @pulumi.getter(name="registryCredentials") + def registry_credentials(self) -> Optional[str]: + """ + Access credentials for third-party registries + """ + return pulumi.get(self, "registry_credentials") + @property @pulumi.getter def tag(self) -> Optional[str]: @@ -9481,25 +9484,26 @@ def repo(self) -> Optional[str]: class GetAppSpecJobImageResult(dict): def __init__(__self__, *, deploy_on_pushes: Sequence['outputs.GetAppSpecJobImageDeployOnPushResult'], - registry_credentials: str, registry_type: str, repository: str, registry: Optional[str] = None, + registry_credentials: Optional[str] = None, tag: Optional[str] = None): """ :param Sequence['GetAppSpecJobImageDeployOnPushArgs'] deploy_on_pushes: Whether to automatically deploy new commits made to the repo. - :param str registry_credentials: Access credentials for third-party registries :param str registry_type: The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. :param str repository: The repository name. :param str registry: The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. + :param str registry_credentials: Access credentials for third-party registries :param str tag: The repository tag. Defaults to `latest` if not provided. """ pulumi.set(__self__, "deploy_on_pushes", deploy_on_pushes) - pulumi.set(__self__, "registry_credentials", registry_credentials) pulumi.set(__self__, "registry_type", registry_type) pulumi.set(__self__, "repository", repository) if registry is not None: pulumi.set(__self__, "registry", registry) + if registry_credentials is not None: + pulumi.set(__self__, "registry_credentials", registry_credentials) if tag is not None: pulumi.set(__self__, "tag", tag) @@ -9511,14 +9515,6 @@ def deploy_on_pushes(self) -> Sequence['outputs.GetAppSpecJobImageDeployOnPushRe """ return pulumi.get(self, "deploy_on_pushes") - @property - @pulumi.getter(name="registryCredentials") - def registry_credentials(self) -> str: - """ - Access credentials for third-party registries - """ - return pulumi.get(self, "registry_credentials") - @property @pulumi.getter(name="registryType") def registry_type(self) -> str: @@ -9543,6 +9539,14 @@ def registry(self) -> Optional[str]: """ return pulumi.get(self, "registry") + @property + @pulumi.getter(name="registryCredentials") + def registry_credentials(self) -> Optional[str]: + """ + Access credentials for third-party registries + """ + return pulumi.get(self, "registry_credentials") + @property @pulumi.getter def tag(self) -> Optional[str]: @@ -10387,25 +10391,26 @@ def timeout_seconds(self) -> Optional[int]: class GetAppSpecServiceImageResult(dict): def __init__(__self__, *, deploy_on_pushes: Sequence['outputs.GetAppSpecServiceImageDeployOnPushResult'], - registry_credentials: str, registry_type: str, repository: str, registry: Optional[str] = None, + registry_credentials: Optional[str] = None, tag: Optional[str] = None): """ :param Sequence['GetAppSpecServiceImageDeployOnPushArgs'] deploy_on_pushes: Whether to automatically deploy new commits made to the repo. - :param str registry_credentials: Access credentials for third-party registries :param str registry_type: The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. :param str repository: The repository name. :param str registry: The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. + :param str registry_credentials: Access credentials for third-party registries :param str tag: The repository tag. Defaults to `latest` if not provided. """ pulumi.set(__self__, "deploy_on_pushes", deploy_on_pushes) - pulumi.set(__self__, "registry_credentials", registry_credentials) pulumi.set(__self__, "registry_type", registry_type) pulumi.set(__self__, "repository", repository) if registry is not None: pulumi.set(__self__, "registry", registry) + if registry_credentials is not None: + pulumi.set(__self__, "registry_credentials", registry_credentials) if tag is not None: pulumi.set(__self__, "tag", tag) @@ -10417,14 +10422,6 @@ def deploy_on_pushes(self) -> Sequence['outputs.GetAppSpecServiceImageDeployOnPu """ return pulumi.get(self, "deploy_on_pushes") - @property - @pulumi.getter(name="registryCredentials") - def registry_credentials(self) -> str: - """ - Access credentials for third-party registries - """ - return pulumi.get(self, "registry_credentials") - @property @pulumi.getter(name="registryType") def registry_type(self) -> str: @@ -10449,6 +10446,14 @@ def registry(self) -> Optional[str]: """ return pulumi.get(self, "registry") + @property + @pulumi.getter(name="registryCredentials") + def registry_credentials(self) -> Optional[str]: + """ + Access credentials for third-party registries + """ + return pulumi.get(self, "registry_credentials") + @property @pulumi.getter def tag(self) -> Optional[str]: @@ -11563,25 +11568,26 @@ def repo(self) -> Optional[str]: class GetAppSpecWorkerImageResult(dict): def __init__(__self__, *, deploy_on_pushes: Sequence['outputs.GetAppSpecWorkerImageDeployOnPushResult'], - registry_credentials: str, registry_type: str, repository: str, registry: Optional[str] = None, + registry_credentials: Optional[str] = None, tag: Optional[str] = None): """ :param Sequence['GetAppSpecWorkerImageDeployOnPushArgs'] deploy_on_pushes: Whether to automatically deploy new commits made to the repo. - :param str registry_credentials: Access credentials for third-party registries :param str registry_type: The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`. :param str repository: The repository name. :param str registry: The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type. + :param str registry_credentials: Access credentials for third-party registries :param str tag: The repository tag. Defaults to `latest` if not provided. """ pulumi.set(__self__, "deploy_on_pushes", deploy_on_pushes) - pulumi.set(__self__, "registry_credentials", registry_credentials) pulumi.set(__self__, "registry_type", registry_type) pulumi.set(__self__, "repository", repository) if registry is not None: pulumi.set(__self__, "registry", registry) + if registry_credentials is not None: + pulumi.set(__self__, "registry_credentials", registry_credentials) if tag is not None: pulumi.set(__self__, "tag", tag) @@ -11593,14 +11599,6 @@ def deploy_on_pushes(self) -> Sequence['outputs.GetAppSpecWorkerImageDeployOnPus """ return pulumi.get(self, "deploy_on_pushes") - @property - @pulumi.getter(name="registryCredentials") - def registry_credentials(self) -> str: - """ - Access credentials for third-party registries - """ - return pulumi.get(self, "registry_credentials") - @property @pulumi.getter(name="registryType") def registry_type(self) -> str: @@ -11625,6 +11623,14 @@ def registry(self) -> Optional[str]: """ return pulumi.get(self, "registry") + @property + @pulumi.getter(name="registryCredentials") + def registry_credentials(self) -> Optional[str]: + """ + Access credentials for third-party registries + """ + return pulumi.get(self, "registry_credentials") + @property @pulumi.getter def tag(self) -> Optional[str]: diff --git a/upstream b/upstream index 5f23ec94..12eceb8d 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 5f23ec94382911a68470189557d1b92ea13dc369 +Subproject commit 12eceb8dd4f3fa76aaa74f990040f282405ff88e