From e19fcf3f4be581153673aff1fd1c0be481e21dde Mon Sep 17 00:00:00 2001 From: campersau Date: Wed, 25 Mar 2026 08:29:05 +0100 Subject: [PATCH 1/5] Models: nullable annotations --- .../Endpoints/ContainerOperations.cs | 4 +- src/Docker.DotNet/Models/Actor.Generated.cs | 5 +- .../Models/Annotations.Generated.cs | 5 +- .../Models/AppArmorOpts.Generated.cs | 3 +- .../Models/AttestationProperties.Generated.cs | 3 +- .../Models/AuthConfig.Generated.cs | 13 +- .../Models/AuthResponse.Generated.cs | 5 +- .../Models/BindOptions.Generated.cs | 11 +- .../Models/BlkioStatEntry.Generated.cs | 9 +- .../Models/BlkioStats.Generated.cs | 17 +-- .../Models/CAConfig.Generated.cs | 11 +- .../Models/CPUStats.Generated.cs | 9 +- .../Models/CPUUsage.Generated.cs | 9 +- .../Models/CapacityRange.Generated.cs | 5 +- .../Models/ClusterInfo.Generated.cs | 21 +-- .../Models/ClusterOptions.Generated.cs | 1 + .../Models/ClusterVolume.Generated.cs | 15 +- .../Models/ClusterVolumeSpec.Generated.cs | 13 +- src/Docker.DotNet/Models/Commit.Generated.cs | 3 +- ...mitContainerChangesParameters.Generated.cs | 59 ++++---- ...ommitContainerChangesResponse.Generated.cs | 3 +- .../Models/ComponentVersion.Generated.cs | 7 +- .../Models/ConfigReference.Generated.cs | 3 +- .../ConfigReferenceFileTarget.Generated.cs | 9 +- .../ConfigReferenceRuntimeTarget.Generated.cs | 1 + .../Models/ConsoleSize.Generated.cs | 5 +- .../ContainerAttachParameters.Generated.cs | 3 +- .../Models/ContainerConfig.Generated.cs | 47 ++++--- .../ContainerEventsParameters.Generated.cs | 7 +- ...ContainerExecCreateParameters.Generated.cs | 23 +-- .../ContainerExecCreateResponse.Generated.cs | 3 +- .../ContainerExecInspectResponse.Generated.cs | 21 +-- .../ContainerExecStartParameters.Generated.cs | 7 +- ...ainerFileSystemChangeResponse.Generated.cs | 5 +- .../ContainerInspectParameters.Generated.cs | 1 + .../ContainerInspectResponse.Generated.cs | 51 +++---- .../ContainerKillParameters.Generated.cs | 3 +- ...tainerListProcessesParameters.Generated.cs | 3 +- .../Models/ContainerListResponse.Generated.cs | 35 ++--- .../ContainerLogsParameters.Generated.cs | 7 +- .../ContainerPathStatParameters.Generated.cs | 3 +- .../ContainerPathStatResponse.Generated.cs | 11 +- .../ContainerProcessesResponse.Generated.cs | 5 +- .../ContainerRemoveParameters.Generated.cs | 1 + .../ContainerRenameParameters.Generated.cs | 3 +- .../ContainerResizeParameters.Generated.cs | 5 +- .../ContainerRestartParameters.Generated.cs | 3 +- .../Models/ContainerSpec.Generated.cs | 53 +++---- .../ContainerStartParameters.Generated.cs | 3 +- .../ContainerStatsParameters.Generated.cs | 1 + .../ContainerStatsResponse.Generated.cs | 27 ++-- .../Models/ContainerStatus.Generated.cs | 7 +- .../ContainerStopParameters.Generated.cs | 3 +- .../ContainerUpdateParameters.Generated.cs | 55 ++++---- .../ContainerUpdateResponse.Generated.cs | 3 +- .../Models/ContainerWaitResponse.Generated.cs | 5 +- .../Models/ContainerdInfo.Generated.cs | 5 +- .../Models/ContainerdNamespaces.Generated.cs | 5 +- .../ContainersListParameters.Generated.cs | 3 +- .../ContainersPruneParameters.Generated.cs | 3 +- .../ContainersPruneResponse.Generated.cs | 5 +- .../CopyToContainerParameters.Generated.cs | 3 +- .../CreateContainerParameters.Generated.cs | 55 ++++---- .../CreateContainerResponse.Generated.cs | 5 +- .../Models/CredentialSpec.Generated.cs | 7 +- .../Models/DNSConfig.Generated.cs | 7 +- .../Models/Descriptor.Generated.cs | 17 +-- .../Models/DeviceInfo.Generated.cs | 5 +- .../Models/DeviceMapping.Generated.cs | 7 +- .../Models/DeviceRequest.Generated.cs | 11 +- .../DiscreteGenericResource.Generated.cs | 5 +- .../Models/DispatcherConfig.Generated.cs | 3 +- .../Models/DockerOCIImageConfig.Generated.cs | 27 ++-- .../DockerOCIImageConfigExt.Generated.cs | 7 +- src/Docker.DotNet/Models/Driver.Generated.cs | 5 +- .../Models/DriverData.Generated.cs | 5 +- .../Models/EncryptionConfig.Generated.cs | 3 +- .../Models/Endpoint.Generated.cs | 7 +- .../Models/EndpointIPAMConfig.Generated.cs | 7 +- .../Models/EndpointResource.Generated.cs | 11 +- .../Models/EndpointSettings.Generated.cs | 31 +++-- .../Models/EndpointSpec.Generated.cs | 5 +- .../Models/EndpointVirtualIP.Generated.cs | 5 +- .../Models/EngineDescription.Generated.cs | 7 +- .../Models/ExecProcessConfig.Generated.cs | 9 +- .../Models/ExternalCA.Generated.cs | 9 +- .../Models/FirewallInfo.Generated.cs | 5 +- .../Models/GenericResource.Generated.cs | 5 +- .../Models/GlobalJob.Generated.cs | 1 + .../Models/GlobalService.Generated.cs | 1 + src/Docker.DotNet/Models/Health.Generated.cs | 7 +- .../Models/HealthSummary.Generated.cs | 5 +- .../Models/HealthcheckConfig.Generated.cs | 13 +- .../Models/HealthcheckResult.Generated.cs | 9 +- .../Models/HostConfig.Generated.cs | 131 +++++++++--------- src/Docker.DotNet/Models/IPAM.Generated.cs | 7 +- .../Models/IPAMConfig.Generated.cs | 9 +- .../Models/IPAMOptions.Generated.cs | 5 +- .../Models/IPAMStatus.Generated.cs | 3 +- .../Models/ImageBuildParameters.Generated.cs | 31 +++-- .../Models/ImageBuildResult.Generated.cs | 3 +- .../Models/ImageConfig.Generated.cs | 21 +-- .../Models/ImageDeleteParameters.Generated.cs | 1 + .../Models/ImageDeleteResponse.Generated.cs | 5 +- .../Models/ImageHistoryResponse.Generated.cs | 13 +- .../Models/ImageInspectResponse.Generated.cs | 35 ++--- .../Models/ImageLoadParameters.Generated.cs | 3 +- .../Models/ImageOptions.Generated.cs | 3 +- .../Models/ImageProperties.Generated.cs | 7 +- .../Models/ImagePropertiesSize.Generated.cs | 3 +- .../Models/ImagePushParameters.Generated.cs | 7 +- .../Models/ImageSearchResponse.Generated.cs | 11 +- .../Models/ImageTagParameters.Generated.cs | 5 +- .../ImagesCreateParameters.Generated.cs | 17 +-- .../Models/ImagesListParameters.Generated.cs | 3 +- .../Models/ImagesListResponse.Generated.cs | 23 +-- .../Models/ImagesLoadResponse.Generated.cs | 1 + .../Models/ImagesPruneParameters.Generated.cs | 3 +- .../Models/ImagesPruneResponse.Generated.cs | 5 +- .../ImagesSearchParameters.Generated.cs | 5 +- .../Models/IndexInfo.Generated.cs | 9 +- src/Docker.DotNet/Models/Info.Generated.cs | 21 +-- .../Models/JSONError.Generated.cs | 5 +- .../Models/JSONMessage.Generated.cs | 13 +- .../Models/JSONProgress.Generated.cs | 11 +- .../Models/JobStatus.Generated.cs | 5 +- .../Models/JoinTokens.Generated.cs | 5 +- .../Models/LogConfig.Generated.cs | 5 +- .../Models/ManagerStatus.Generated.cs | 7 +- .../Models/ManifestSummary.Generated.cs | 15 +- .../Models/ManifestSummarySize.Generated.cs | 5 +- .../Models/MemoryStats.Generated.cs | 17 +-- src/Docker.DotNet/Models/Message.Generated.cs | 13 +- src/Docker.DotNet/Models/Meta.Generated.cs | 7 +- .../Models/Metadata.Generated.cs | 3 +- src/Docker.DotNet/Models/Mount.Generated.cs | 21 +-- .../Models/MountPoint.Generated.cs | 17 +-- .../Models/NamedGenericResource.Generated.cs | 5 +- src/Docker.DotNet/Models/Network.Generated.cs | 33 ++--- .../Models/NetworkAddressPool.Generated.cs | 5 +- .../Models/NetworkAttachment.Generated.cs | 5 +- .../NetworkAttachmentConfig.Generated.cs | 7 +- .../Models/NetworkAttachmentSpec.Generated.cs | 3 +- .../NetworkConnectParameters.Generated.cs | 5 +- .../NetworkDisconnectParameters.Generated.cs | 5 +- .../Models/NetworkResponse.Generated.cs | 39 +++--- .../Models/NetworkSettings.Generated.cs | 9 +- .../NetworkSettingsSummary.Generated.cs | 3 +- .../Models/NetworkSpec.Generated.cs | 21 +-- .../Models/NetworkStats.Generated.cs | 21 +-- .../Models/NetworkTask.Generated.cs | 9 +- .../Models/NetworkingConfig.Generated.cs | 3 +- .../NetworksCreateParameters.Generated.cs | 23 +-- .../NetworksCreateResponse.Generated.cs | 5 +- ...etworksDeleteUnusedParameters.Generated.cs | 3 +- .../NetworksListParameters.Generated.cs | 3 +- .../Models/NetworksPruneResponse.Generated.cs | 3 +- .../Models/NodeCSIInfo.Generated.cs | 9 +- .../Models/NodeDescription.Generated.cs | 13 +- .../Models/NodeListResponse.Generated.cs | 17 +-- .../Models/NodeRemoveParameters.Generated.cs | 1 + .../Models/NodeStatus.Generated.cs | 7 +- .../Models/NodeUpdateParameters.Generated.cs | 9 +- .../Models/OrchestrationConfig.Generated.cs | 1 + src/Docker.DotNet/Models/Peer.Generated.cs | 5 +- .../Models/PeerInfo.Generated.cs | 5 +- .../Models/PidsStats.Generated.cs | 5 +- .../Models/Placement.Generated.cs | 9 +- .../Models/PlacementPreference.Generated.cs | 3 +- .../Models/Platform.Generated.cs | 11 +- .../Models/PlatformInfo.Generated.cs | 3 +- src/Docker.DotNet/Models/Plugin.Generated.cs | 13 +- .../Models/PluginArgs.Generated.cs | 9 +- .../Models/PluginCapabilityID.Generated.cs | 7 +- .../Models/PluginConfig.Generated.cs | 31 +++-- .../PluginConfigureParameters.Generated.cs | 3 +- .../PluginCreateParameters.Generated.cs | 3 +- .../Models/PluginDescription.Generated.cs | 5 +- .../Models/PluginDevice.Generated.cs | 9 +- .../PluginDisableParameters.Generated.cs | 1 + .../PluginEnableParameters.Generated.cs | 1 + .../Models/PluginEnv.Generated.cs | 9 +- .../PluginGetPrivilegeParameters.Generated.cs | 3 +- .../PluginInstallParameters.Generated.cs | 9 +- .../Models/PluginInterface.Generated.cs | 7 +- .../Models/PluginLinuxConfig.Generated.cs | 7 +- .../Models/PluginListParameters.Generated.cs | 3 +- .../Models/PluginMount.Generated.cs | 15 +- .../Models/PluginNetworkConfig.Generated.cs | 3 +- .../Models/PluginPrivilege.Generated.cs | 7 +- .../PluginRemoveParameters.Generated.cs | 1 + .../Models/PluginRootFS.Generated.cs | 5 +- .../Models/PluginSettings.Generated.cs | 9 +- .../PluginUpgradeParameters.Generated.cs | 7 +- .../Models/PluginUser.Generated.cs | 5 +- .../Models/PluginsInfo.Generated.cs | 9 +- .../Models/PortBinding.Generated.cs | 5 +- .../Models/PortConfig.Generated.cs | 11 +- .../Models/PortStatus.Generated.cs | 3 +- .../Models/PortSummary.Generated.cs | 9 +- .../Models/Privileges.Generated.cs | 11 +- .../Models/PublishStatus.Generated.cs | 7 +- .../Models/RaftConfig.Generated.cs | 9 +- .../Models/ReplicatedJob.Generated.cs | 1 + .../Models/ReplicatedService.Generated.cs | 1 + .../Models/ResourceRequirements.Generated.cs | 5 +- .../Models/Resources.Generated.cs | 53 +++---- .../Models/RestartPolicy.Generated.cs | 5 +- src/Docker.DotNet/Models/RootFS.Generated.cs | 5 +- .../Models/RootFSStorage.Generated.cs | 3 +- .../Models/RootFSStorageSnapshot.Generated.cs | 3 +- src/Docker.DotNet/Models/Runtime.Generated.cs | 9 +- .../Models/RuntimePrivilege.Generated.cs | 7 +- .../Models/RuntimeWithStatus.Generated.cs | 11 +- .../Models/SELinuxContext.Generated.cs | 11 +- .../Models/SeccompOpts.Generated.cs | 5 +- src/Docker.DotNet/Models/Secret.Generated.cs | 11 +- .../Models/SecretCreateResponse.Generated.cs | 3 +- .../Models/SecretReference.Generated.cs | 7 +- .../SecretReferenceFileTarget.Generated.cs | 9 +- .../Models/ServiceConfig.Generated.cs | 7 +- .../ServiceCreateParameters.Generated.cs | 5 +- .../Models/ServiceCreateResponse.Generated.cs | 5 +- .../Models/ServiceInfo.Generated.cs | 9 +- .../Models/ServiceListParameters.Generated.cs | 3 +- .../Models/ServiceLogsParameters.Generated.cs | 5 +- .../Models/ServiceMode.Generated.cs | 9 +- .../Models/ServiceSpec.Generated.cs | 15 +- .../Models/ServiceStatus.Generated.cs | 7 +- .../ServiceUpdateParameters.Generated.cs | 11 +- .../Models/ServiceUpdateResponse.Generated.cs | 3 +- src/Docker.DotNet/Models/Spec.Generated.cs | 17 +-- .../Models/SpreadOver.Generated.cs | 3 +- src/Docker.DotNet/Models/State.Generated.cs | 25 ++-- src/Docker.DotNet/Models/Status.Generated.cs | 3 +- src/Docker.DotNet/Models/Storage.Generated.cs | 3 +- .../Models/StorageStats.Generated.cs | 9 +- .../Models/SubnetStatus.Generated.cs | 5 +- .../Models/SummaryHostConfig.Generated.cs | 5 +- .../Models/SwarmConfig.Generated.cs | 11 +- .../Models/SwarmConfigReference.Generated.cs | 9 +- .../Models/SwarmConfigSpec.Generated.cs | 9 +- .../SwarmCreateConfigParameters.Generated.cs | 3 +- .../SwarmCreateConfigResponse.Generated.cs | 3 +- .../Models/SwarmDriver.Generated.cs | 5 +- .../Models/SwarmIPAMConfig.Generated.cs | 7 +- .../Models/SwarmInitParameters.Generated.cs | 21 +-- .../Models/SwarmInspectResponse.Generated.cs | 23 +-- .../Models/SwarmJoinParameters.Generated.cs | 13 +- .../Models/SwarmLeaveParameters.Generated.cs | 1 + .../Models/SwarmLimit.Generated.cs | 7 +- .../Models/SwarmNetwork.Generated.cs | 15 +- .../Models/SwarmPlatform.Generated.cs | 5 +- .../Models/SwarmResources.Generated.cs | 7 +- .../Models/SwarmRestartPolicy.Generated.cs | 3 +- .../Models/SwarmRuntimeSpec.Generated.cs | 11 +- .../Models/SwarmSecretSpec.Generated.cs | 11 +- .../Models/SwarmService.Generated.cs | 21 +-- .../Models/SwarmUnlockParameters.Generated.cs | 3 +- .../Models/SwarmUnlockResponse.Generated.cs | 3 +- .../Models/SwarmUpdateConfig.Generated.cs | 13 +- .../SwarmUpdateConfigParameters.Generated.cs | 5 +- .../Models/SwarmUpdateParameters.Generated.cs | 5 +- .../Models/SystemInfoResponse.Generated.cs | 125 ++++++++--------- src/Docker.DotNet/Models/TLSInfo.Generated.cs | 7 +- .../Models/TaskDefaults.Generated.cs | 3 +- .../Models/TaskResponse.Generated.cs | 33 ++--- .../Models/TaskSpec.Generated.cs | 21 +-- .../Models/TaskStatus.Generated.cs | 13 +- .../Models/TasksListParameters.Generated.cs | 3 +- .../Models/ThrottleDevice.Generated.cs | 5 +- .../Models/ThrottlingData.Generated.cs | 7 +- .../Models/TmpfsOptions.Generated.cs | 7 +- .../Models/Topology.Generated.cs | 3 +- .../Models/TopologyRequirement.Generated.cs | 5 +- .../Models/TypeBlock.Generated.cs | 1 + .../Models/TypeMount.Generated.cs | 5 +- src/Docker.DotNet/Models/Ulimit.Generated.cs | 7 +- .../Models/UpdateConfig.Generated.cs | 55 ++++---- .../Models/UpdateStatus.Generated.cs | 5 +- .../Models/UsageData.Generated.cs | 5 +- src/Docker.DotNet/Models/Version.Generated.cs | 3 +- .../Models/VersionResponse.Generated.cs | 25 ++-- .../Models/VolumeAccessMode.Generated.cs | 9 +- .../Models/VolumeAttachment.Generated.cs | 7 +- .../Models/VolumeInfo.Generated.cs | 9 +- .../Models/VolumeOptions.Generated.cs | 9 +- .../Models/VolumeResponse.Generated.cs | 21 +-- .../Models/VolumeSecret.Generated.cs | 5 +- .../Models/VolumeTopology.Generated.cs | 3 +- .../VolumesCreateParameters.Generated.cs | 9 +- .../Models/VolumesListParameters.Generated.cs | 3 +- .../Models/VolumesListResponse.Generated.cs | 5 +- .../VolumesPruneParameters.Generated.cs | 3 +- .../Models/VolumesPruneResponse.Generated.cs | 5 +- .../Models/WaitExitError.Generated.cs | 3 +- .../Models/WeightDevice.Generated.cs | 5 +- tools/specgen/csharptype.go | 6 +- 298 files changed, 1659 insertions(+), 1359 deletions(-) diff --git a/src/Docker.DotNet/Endpoints/ContainerOperations.cs b/src/Docker.DotNet/Endpoints/ContainerOperations.cs index 967b06c1..7b7553a5 100644 --- a/src/Docker.DotNet/Endpoints/ContainerOperations.cs +++ b/src/Docker.DotNet/Endpoints/ContainerOperations.cs @@ -133,7 +133,7 @@ public async Task GetContainerLogsAsync(string id, ContainerL var response = await _client.MakeRequestForStreamAsync([NoSuchContainerHandler], HttpMethod.Get, $"containers/{id}/logs", queryParameters, null, null, cancellationToken) .ConfigureAwait(false); - return new MultiplexedStream(response, !containerInspectResponse.Config.Tty); + return new MultiplexedStream(response, !(containerInspectResponse.Config?.Tty ?? false)); } public async Task> InspectChangesAsync(string id, CancellationToken cancellationToken = default) @@ -353,7 +353,7 @@ public async Task AttachContainerAsync(string id, ContainerAt var response = await _client.MakeRequestForHijackedStreamAsync([NoSuchContainerHandler], HttpMethod.Post, $"containers/{id}/attach", queryParameters, null, null, cancellationToken) .ConfigureAwait(false); - return new MultiplexedStream(response, !containerInspectResponse.Config.Tty); + return new MultiplexedStream(response, !(containerInspectResponse.Config?.Tty ?? false)); } public async Task WaitContainerAsync(string id, CancellationToken cancellationToken = default) diff --git a/src/Docker.DotNet/Models/Actor.Generated.cs b/src/Docker.DotNet/Models/Actor.Generated.cs index 34923406..6704d520 100644 --- a/src/Docker.DotNet/Models/Actor.Generated.cs +++ b/src/Docker.DotNet/Models/Actor.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class Actor // (events.Actor) { [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Attributes")] - public IDictionary Attributes { get; set; } + public IDictionary Attributes { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Annotations.Generated.cs b/src/Docker.DotNet/Models/Annotations.Generated.cs index 4b85dd75..8a9dd9c0 100644 --- a/src/Docker.DotNet/Models/Annotations.Generated.cs +++ b/src/Docker.DotNet/Models/Annotations.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class Annotations // (swarm.Annotations) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/AppArmorOpts.Generated.cs b/src/Docker.DotNet/Models/AppArmorOpts.Generated.cs index da234f50..8eebd162 100644 --- a/src/Docker.DotNet/Models/AppArmorOpts.Generated.cs +++ b/src/Docker.DotNet/Models/AppArmorOpts.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class AppArmorOpts // (swarm.AppArmorOpts) { [JsonPropertyName("Mode")] - public string Mode { get; set; } + public string Mode { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/AttestationProperties.Generated.cs b/src/Docker.DotNet/Models/AttestationProperties.Generated.cs index d3ca7c19..bfe316d7 100644 --- a/src/Docker.DotNet/Models/AttestationProperties.Generated.cs +++ b/src/Docker.DotNet/Models/AttestationProperties.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class AttestationProperties // (image.AttestationProperties) { [JsonPropertyName("For")] - public string For { get; set; } + public string For { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/AuthConfig.Generated.cs b/src/Docker.DotNet/Models/AuthConfig.Generated.cs index a39ca39f..49318d3b 100644 --- a/src/Docker.DotNet/Models/AuthConfig.Generated.cs +++ b/src/Docker.DotNet/Models/AuthConfig.Generated.cs @@ -1,23 +1,24 @@ +#nullable enable namespace Docker.DotNet.Models { public class AuthConfig // (registry.AuthConfig) { [JsonPropertyName("username")] - public string Username { get; set; } + public string Username { get; set; } = default!; [JsonPropertyName("password")] - public string Password { get; set; } + public string Password { get; set; } = default!; [JsonPropertyName("auth")] - public string Auth { get; set; } + public string Auth { get; set; } = default!; [JsonPropertyName("serveraddress")] - public string ServerAddress { get; set; } + public string ServerAddress { get; set; } = default!; [JsonPropertyName("identitytoken")] - public string IdentityToken { get; set; } + public string IdentityToken { get; set; } = default!; [JsonPropertyName("registrytoken")] - public string RegistryToken { get; set; } + public string RegistryToken { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/AuthResponse.Generated.cs b/src/Docker.DotNet/Models/AuthResponse.Generated.cs index 75050ce1..fbe84017 100644 --- a/src/Docker.DotNet/Models/AuthResponse.Generated.cs +++ b/src/Docker.DotNet/Models/AuthResponse.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class AuthResponse // (registry.AuthResponse) { [JsonPropertyName("IdentityToken")] - public string IdentityToken { get; set; } + public string IdentityToken { get; set; } = default!; [JsonPropertyName("Status")] - public string Status { get; set; } + public string Status { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/BindOptions.Generated.cs b/src/Docker.DotNet/Models/BindOptions.Generated.cs index 944d6a9e..e54ee26a 100644 --- a/src/Docker.DotNet/Models/BindOptions.Generated.cs +++ b/src/Docker.DotNet/Models/BindOptions.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class BindOptions // (mount.BindOptions) { [JsonPropertyName("Propagation")] - public string Propagation { get; set; } + public string Propagation { get; set; } = default!; [JsonPropertyName("NonRecursive")] - public bool NonRecursive { get; set; } + public bool NonRecursive { get; set; } = default!; [JsonPropertyName("CreateMountpoint")] - public bool CreateMountpoint { get; set; } + public bool CreateMountpoint { get; set; } = default!; [JsonPropertyName("ReadOnlyNonRecursive")] - public bool ReadOnlyNonRecursive { get; set; } + public bool ReadOnlyNonRecursive { get; set; } = default!; [JsonPropertyName("ReadOnlyForceRecursive")] - public bool ReadOnlyForceRecursive { get; set; } + public bool ReadOnlyForceRecursive { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/BlkioStatEntry.Generated.cs b/src/Docker.DotNet/Models/BlkioStatEntry.Generated.cs index ce877b7e..88c95f66 100644 --- a/src/Docker.DotNet/Models/BlkioStatEntry.Generated.cs +++ b/src/Docker.DotNet/Models/BlkioStatEntry.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class BlkioStatEntry // (container.BlkioStatEntry) { [JsonPropertyName("major")] - public ulong Major { get; set; } + public ulong Major { get; set; } = default!; [JsonPropertyName("minor")] - public ulong Minor { get; set; } + public ulong Minor { get; set; } = default!; [JsonPropertyName("op")] - public string Op { get; set; } + public string Op { get; set; } = default!; [JsonPropertyName("value")] - public ulong Value { get; set; } + public ulong Value { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/BlkioStats.Generated.cs b/src/Docker.DotNet/Models/BlkioStats.Generated.cs index 3710ef28..220bb9ba 100644 --- a/src/Docker.DotNet/Models/BlkioStats.Generated.cs +++ b/src/Docker.DotNet/Models/BlkioStats.Generated.cs @@ -1,29 +1,30 @@ +#nullable enable namespace Docker.DotNet.Models { public class BlkioStats // (container.BlkioStats) { [JsonPropertyName("io_service_bytes_recursive")] - public IList IoServiceBytesRecursive { get; set; } + public IList IoServiceBytesRecursive { get; set; } = default!; [JsonPropertyName("io_serviced_recursive")] - public IList IoServicedRecursive { get; set; } + public IList IoServicedRecursive { get; set; } = default!; [JsonPropertyName("io_queue_recursive")] - public IList IoQueuedRecursive { get; set; } + public IList IoQueuedRecursive { get; set; } = default!; [JsonPropertyName("io_service_time_recursive")] - public IList IoServiceTimeRecursive { get; set; } + public IList IoServiceTimeRecursive { get; set; } = default!; [JsonPropertyName("io_wait_time_recursive")] - public IList IoWaitTimeRecursive { get; set; } + public IList IoWaitTimeRecursive { get; set; } = default!; [JsonPropertyName("io_merged_recursive")] - public IList IoMergedRecursive { get; set; } + public IList IoMergedRecursive { get; set; } = default!; [JsonPropertyName("io_time_recursive")] - public IList IoTimeRecursive { get; set; } + public IList IoTimeRecursive { get; set; } = default!; [JsonPropertyName("sectors_recursive")] - public IList SectorsRecursive { get; set; } + public IList SectorsRecursive { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/CAConfig.Generated.cs b/src/Docker.DotNet/Models/CAConfig.Generated.cs index 378c6454..ee087923 100644 --- a/src/Docker.DotNet/Models/CAConfig.Generated.cs +++ b/src/Docker.DotNet/Models/CAConfig.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class CAConfig // (swarm.CAConfig) { [JsonPropertyName("NodeCertExpiry")] - public long NodeCertExpiry { get; set; } + public long NodeCertExpiry { get; set; } = default!; [JsonPropertyName("ExternalCAs")] - public IList ExternalCAs { get; set; } + public IList ExternalCAs { get; set; } = default!; [JsonPropertyName("SigningCACert")] - public string SigningCACert { get; set; } + public string SigningCACert { get; set; } = default!; [JsonPropertyName("SigningCAKey")] - public string SigningCAKey { get; set; } + public string SigningCAKey { get; set; } = default!; [JsonPropertyName("ForceRotate")] - public ulong ForceRotate { get; set; } + public ulong ForceRotate { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/CPUStats.Generated.cs b/src/Docker.DotNet/Models/CPUStats.Generated.cs index 0ad1764b..9069336d 100644 --- a/src/Docker.DotNet/Models/CPUStats.Generated.cs +++ b/src/Docker.DotNet/Models/CPUStats.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class CPUStats // (container.CPUStats) { [JsonPropertyName("cpu_usage")] - public CPUUsage CPUUsage { get; set; } + public CPUUsage CPUUsage { get; set; } = default!; [JsonPropertyName("system_cpu_usage")] - public ulong SystemUsage { get; set; } + public ulong SystemUsage { get; set; } = default!; [JsonPropertyName("online_cpus")] - public uint OnlineCPUs { get; set; } + public uint OnlineCPUs { get; set; } = default!; [JsonPropertyName("throttling_data")] - public ThrottlingData ThrottlingData { get; set; } + public ThrottlingData ThrottlingData { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/CPUUsage.Generated.cs b/src/Docker.DotNet/Models/CPUUsage.Generated.cs index b4f54c18..806fc214 100644 --- a/src/Docker.DotNet/Models/CPUUsage.Generated.cs +++ b/src/Docker.DotNet/Models/CPUUsage.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class CPUUsage // (container.CPUUsage) { [JsonPropertyName("total_usage")] - public ulong TotalUsage { get; set; } + public ulong TotalUsage { get; set; } = default!; [JsonPropertyName("percpu_usage")] - public IList PercpuUsage { get; set; } + public IList PercpuUsage { get; set; } = default!; [JsonPropertyName("usage_in_kernelmode")] - public ulong UsageInKernelmode { get; set; } + public ulong UsageInKernelmode { get; set; } = default!; [JsonPropertyName("usage_in_usermode")] - public ulong UsageInUsermode { get; set; } + public ulong UsageInUsermode { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/CapacityRange.Generated.cs b/src/Docker.DotNet/Models/CapacityRange.Generated.cs index d4944ef1..3b713a35 100644 --- a/src/Docker.DotNet/Models/CapacityRange.Generated.cs +++ b/src/Docker.DotNet/Models/CapacityRange.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class CapacityRange // (volume.CapacityRange) { [JsonPropertyName("RequiredBytes")] - public long RequiredBytes { get; set; } + public long RequiredBytes { get; set; } = default!; [JsonPropertyName("LimitBytes")] - public long LimitBytes { get; set; } + public long LimitBytes { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ClusterInfo.Generated.cs b/src/Docker.DotNet/Models/ClusterInfo.Generated.cs index ad774fb7..204f5103 100644 --- a/src/Docker.DotNet/Models/ClusterInfo.Generated.cs +++ b/src/Docker.DotNet/Models/ClusterInfo.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ClusterInfo // (swarm.ClusterInfo) @@ -17,33 +18,33 @@ public ClusterInfo(Meta Meta) } [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } + public Version Version { get; set; } = default!; [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } + public DateTime CreatedAt { get; set; } = default!; [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } + public DateTime UpdatedAt { get; set; } = default!; [JsonPropertyName("Spec")] - public Spec Spec { get; set; } + public Spec Spec { get; set; } = default!; [JsonPropertyName("TLSInfo")] - public TLSInfo TLSInfo { get; set; } + public TLSInfo TLSInfo { get; set; } = default!; [JsonPropertyName("RootRotationInProgress")] - public bool RootRotationInProgress { get; set; } + public bool RootRotationInProgress { get; set; } = default!; [JsonPropertyName("DefaultAddrPool")] - public IList DefaultAddrPool { get; set; } + public IList DefaultAddrPool { get; set; } = default!; [JsonPropertyName("SubnetSize")] - public uint SubnetSize { get; set; } + public uint SubnetSize { get; set; } = default!; [JsonPropertyName("DataPathPort")] - public uint DataPathPort { get; set; } + public uint DataPathPort { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ClusterOptions.Generated.cs b/src/Docker.DotNet/Models/ClusterOptions.Generated.cs index 7306dc09..b85361a4 100644 --- a/src/Docker.DotNet/Models/ClusterOptions.Generated.cs +++ b/src/Docker.DotNet/Models/ClusterOptions.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ClusterOptions // (mount.ClusterOptions) diff --git a/src/Docker.DotNet/Models/ClusterVolume.Generated.cs b/src/Docker.DotNet/Models/ClusterVolume.Generated.cs index 3c6995ca..f40ac78a 100644 --- a/src/Docker.DotNet/Models/ClusterVolume.Generated.cs +++ b/src/Docker.DotNet/Models/ClusterVolume.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ClusterVolume // (volume.ClusterVolume) @@ -17,24 +18,24 @@ public ClusterVolume(Meta Meta) } [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } + public Version Version { get; set; } = default!; [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } + public DateTime CreatedAt { get; set; } = default!; [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } + public DateTime UpdatedAt { get; set; } = default!; [JsonPropertyName("Spec")] - public ClusterVolumeSpec Spec { get; set; } + public ClusterVolumeSpec Spec { get; set; } = default!; [JsonPropertyName("PublishStatus")] - public IList PublishStatus { get; set; } + public IList PublishStatus { get; set; } = default!; [JsonPropertyName("Info")] - public VolumeInfo Info { get; set; } + public VolumeInfo? Info { get; set; } } } diff --git a/src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs b/src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs index 3030e608..48da257f 100644 --- a/src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs +++ b/src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs @@ -1,23 +1,24 @@ +#nullable enable namespace Docker.DotNet.Models { public class ClusterVolumeSpec // (volume.ClusterVolumeSpec) { [JsonPropertyName("Group")] - public string Group { get; set; } + public string Group { get; set; } = default!; [JsonPropertyName("AccessMode")] - public VolumeAccessMode AccessMode { get; set; } + public VolumeAccessMode? AccessMode { get; set; } [JsonPropertyName("AccessibilityRequirements")] - public TopologyRequirement AccessibilityRequirements { get; set; } + public TopologyRequirement? AccessibilityRequirements { get; set; } [JsonPropertyName("CapacityRange")] - public CapacityRange CapacityRange { get; set; } + public CapacityRange? CapacityRange { get; set; } [JsonPropertyName("Secrets")] - public IList Secrets { get; set; } + public IList Secrets { get; set; } = default!; [JsonPropertyName("Availability")] - public string Availability { get; set; } + public string Availability { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Commit.Generated.cs b/src/Docker.DotNet/Models/Commit.Generated.cs index a7c7390d..1f947adb 100644 --- a/src/Docker.DotNet/Models/Commit.Generated.cs +++ b/src/Docker.DotNet/Models/Commit.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class Commit // (system.Commit) { [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/CommitContainerChangesParameters.Generated.cs b/src/Docker.DotNet/Models/CommitContainerChangesParameters.Generated.cs index aecbb3ec..63100e84 100644 --- a/src/Docker.DotNet/Models/CommitContainerChangesParameters.Generated.cs +++ b/src/Docker.DotNet/Models/CommitContainerChangesParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class CommitContainerChangesParameters // (main.CommitContainerChangesParameters) @@ -38,97 +39,97 @@ public CommitContainerChangesParameters(ContainerConfig Config) } [QueryStringParameter("container", true)] - public string ContainerID { get; set; } + public string ContainerID { get; set; } = default!; [QueryStringParameter("repo", false)] - public string RepositoryName { get; set; } + public string? RepositoryName { get; set; } [QueryStringParameter("tag", false)] - public string Tag { get; set; } + public string? Tag { get; set; } [QueryStringParameter("comment", false)] - public string Comment { get; set; } + public string? Comment { get; set; } [QueryStringParameter("author", false)] - public string Author { get; set; } + public string? Author { get; set; } [QueryStringParameter("changes", false, typeof(EnumerableQueryStringConverter))] - public IList Changes { get; set; } + public IList? Changes { get; set; } [QueryStringParameter("pause", false, typeof(BoolQueryStringConverter))] public bool? Pause { get; set; } [JsonPropertyName("Hostname")] - public string Hostname { get; set; } + public string Hostname { get; set; } = default!; [JsonPropertyName("Domainname")] - public string Domainname { get; set; } + public string Domainname { get; set; } = default!; [JsonPropertyName("User")] - public string User { get; set; } + public string User { get; set; } = default!; [JsonPropertyName("AttachStdin")] - public bool AttachStdin { get; set; } + public bool AttachStdin { get; set; } = default!; [JsonPropertyName("AttachStdout")] - public bool AttachStdout { get; set; } + public bool AttachStdout { get; set; } = default!; [JsonPropertyName("AttachStderr")] - public bool AttachStderr { get; set; } + public bool AttachStderr { get; set; } = default!; [JsonPropertyName("ExposedPorts")] - public IDictionary ExposedPorts { get; set; } + public IDictionary ExposedPorts { get; set; } = default!; [JsonPropertyName("Tty")] - public bool Tty { get; set; } + public bool Tty { get; set; } = default!; [JsonPropertyName("OpenStdin")] - public bool OpenStdin { get; set; } + public bool OpenStdin { get; set; } = default!; [JsonPropertyName("StdinOnce")] - public bool StdinOnce { get; set; } + public bool StdinOnce { get; set; } = default!; [JsonPropertyName("Env")] - public IList Env { get; set; } + public IList Env { get; set; } = default!; [JsonPropertyName("Cmd")] - public IList Cmd { get; set; } + public IList Cmd { get; set; } = default!; [JsonPropertyName("Healthcheck")] - public HealthcheckConfig Healthcheck { get; set; } + public HealthcheckConfig? Healthcheck { get; set; } [JsonPropertyName("ArgsEscaped")] - public bool ArgsEscaped { get; set; } + public bool ArgsEscaped { get; set; } = default!; [JsonPropertyName("Image")] - public string Image { get; set; } + public string Image { get; set; } = default!; [JsonPropertyName("Volumes")] - public IDictionary Volumes { get; set; } + public IDictionary Volumes { get; set; } = default!; [JsonPropertyName("WorkingDir")] - public string WorkingDir { get; set; } + public string WorkingDir { get; set; } = default!; [JsonPropertyName("Entrypoint")] - public IList Entrypoint { get; set; } + public IList Entrypoint { get; set; } = default!; [JsonPropertyName("NetworkDisabled")] - public bool NetworkDisabled { get; set; } + public bool NetworkDisabled { get; set; } = default!; [JsonPropertyName("OnBuild")] - public IList OnBuild { get; set; } + public IList OnBuild { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("StopSignal")] - public string StopSignal { get; set; } + public string StopSignal { get; set; } = default!; [JsonPropertyName("StopTimeout")] [JsonConverter(typeof(TimeSpanSecondsConverter))] public TimeSpan? StopTimeout { get; set; } [JsonPropertyName("Shell")] - public IList Shell { get; set; } + public IList Shell { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/CommitContainerChangesResponse.Generated.cs b/src/Docker.DotNet/Models/CommitContainerChangesResponse.Generated.cs index 6eef12f1..45c4d935 100644 --- a/src/Docker.DotNet/Models/CommitContainerChangesResponse.Generated.cs +++ b/src/Docker.DotNet/Models/CommitContainerChangesResponse.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class CommitContainerChangesResponse // (main.CommitContainerChangesResponse) { [JsonPropertyName("Id")] - public string ID { get; set; } + public string ID { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ComponentVersion.Generated.cs b/src/Docker.DotNet/Models/ComponentVersion.Generated.cs index 8e53dad0..ceea2c1c 100644 --- a/src/Docker.DotNet/Models/ComponentVersion.Generated.cs +++ b/src/Docker.DotNet/Models/ComponentVersion.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class ComponentVersion // (system.ComponentVersion) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Version")] - public string Version { get; set; } + public string Version { get; set; } = default!; [JsonPropertyName("Details")] - public IDictionary Details { get; set; } + public IDictionary Details { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ConfigReference.Generated.cs b/src/Docker.DotNet/Models/ConfigReference.Generated.cs index 01378003..59370350 100644 --- a/src/Docker.DotNet/Models/ConfigReference.Generated.cs +++ b/src/Docker.DotNet/Models/ConfigReference.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ConfigReference // (network.ConfigReference) { [JsonPropertyName("Network")] - public string Network { get; set; } + public string Network { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ConfigReferenceFileTarget.Generated.cs b/src/Docker.DotNet/Models/ConfigReferenceFileTarget.Generated.cs index 0057cb96..43edc6fb 100644 --- a/src/Docker.DotNet/Models/ConfigReferenceFileTarget.Generated.cs +++ b/src/Docker.DotNet/Models/ConfigReferenceFileTarget.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class ConfigReferenceFileTarget // (swarm.ConfigReferenceFileTarget) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("UID")] - public string UID { get; set; } + public string UID { get; set; } = default!; [JsonPropertyName("GID")] - public string GID { get; set; } + public string GID { get; set; } = default!; [JsonPropertyName("Mode")] - public uint Mode { get; set; } + public uint Mode { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ConfigReferenceRuntimeTarget.Generated.cs b/src/Docker.DotNet/Models/ConfigReferenceRuntimeTarget.Generated.cs index dc3582a9..7dbb0b8b 100644 --- a/src/Docker.DotNet/Models/ConfigReferenceRuntimeTarget.Generated.cs +++ b/src/Docker.DotNet/Models/ConfigReferenceRuntimeTarget.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ConfigReferenceRuntimeTarget // (swarm.ConfigReferenceRuntimeTarget) diff --git a/src/Docker.DotNet/Models/ConsoleSize.Generated.cs b/src/Docker.DotNet/Models/ConsoleSize.Generated.cs index bfffea9c..ac0b770f 100644 --- a/src/Docker.DotNet/Models/ConsoleSize.Generated.cs +++ b/src/Docker.DotNet/Models/ConsoleSize.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ConsoleSize // (client.ConsoleSize) { [JsonPropertyName("Height")] - public ulong Height { get; set; } + public ulong Height { get; set; } = default!; [JsonPropertyName("Width")] - public ulong Width { get; set; } + public ulong Width { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerAttachParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerAttachParameters.Generated.cs index 76cf5717..536058c3 100644 --- a/src/Docker.DotNet/Models/ContainerAttachParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerAttachParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerAttachParameters // (main.ContainerAttachParameters) @@ -15,7 +16,7 @@ public class ContainerAttachParameters // (main.ContainerAttachParameters) public bool? Stderr { get; set; } [QueryStringParameter("detachKeys", false)] - public string DetachKeys { get; set; } + public string? DetachKeys { get; set; } [QueryStringParameter("logs", false, typeof(BoolQueryStringConverter))] public bool? Logs { get; set; } diff --git a/src/Docker.DotNet/Models/ContainerConfig.Generated.cs b/src/Docker.DotNet/Models/ContainerConfig.Generated.cs index a90fe10e..268ab61f 100644 --- a/src/Docker.DotNet/Models/ContainerConfig.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerConfig.Generated.cs @@ -1,78 +1,79 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerConfig // (container.Config) { [JsonPropertyName("Hostname")] - public string Hostname { get; set; } + public string Hostname { get; set; } = default!; [JsonPropertyName("Domainname")] - public string Domainname { get; set; } + public string Domainname { get; set; } = default!; [JsonPropertyName("User")] - public string User { get; set; } + public string User { get; set; } = default!; [JsonPropertyName("AttachStdin")] - public bool AttachStdin { get; set; } + public bool AttachStdin { get; set; } = default!; [JsonPropertyName("AttachStdout")] - public bool AttachStdout { get; set; } + public bool AttachStdout { get; set; } = default!; [JsonPropertyName("AttachStderr")] - public bool AttachStderr { get; set; } + public bool AttachStderr { get; set; } = default!; [JsonPropertyName("ExposedPorts")] - public IDictionary ExposedPorts { get; set; } + public IDictionary ExposedPorts { get; set; } = default!; [JsonPropertyName("Tty")] - public bool Tty { get; set; } + public bool Tty { get; set; } = default!; [JsonPropertyName("OpenStdin")] - public bool OpenStdin { get; set; } + public bool OpenStdin { get; set; } = default!; [JsonPropertyName("StdinOnce")] - public bool StdinOnce { get; set; } + public bool StdinOnce { get; set; } = default!; [JsonPropertyName("Env")] - public IList Env { get; set; } + public IList Env { get; set; } = default!; [JsonPropertyName("Cmd")] - public IList Cmd { get; set; } + public IList Cmd { get; set; } = default!; [JsonPropertyName("Healthcheck")] - public HealthcheckConfig Healthcheck { get; set; } + public HealthcheckConfig? Healthcheck { get; set; } [JsonPropertyName("ArgsEscaped")] - public bool ArgsEscaped { get; set; } + public bool ArgsEscaped { get; set; } = default!; [JsonPropertyName("Image")] - public string Image { get; set; } + public string Image { get; set; } = default!; [JsonPropertyName("Volumes")] - public IDictionary Volumes { get; set; } + public IDictionary Volumes { get; set; } = default!; [JsonPropertyName("WorkingDir")] - public string WorkingDir { get; set; } + public string WorkingDir { get; set; } = default!; [JsonPropertyName("Entrypoint")] - public IList Entrypoint { get; set; } + public IList Entrypoint { get; set; } = default!; [JsonPropertyName("NetworkDisabled")] - public bool NetworkDisabled { get; set; } + public bool NetworkDisabled { get; set; } = default!; [JsonPropertyName("OnBuild")] - public IList OnBuild { get; set; } + public IList OnBuild { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("StopSignal")] - public string StopSignal { get; set; } + public string StopSignal { get; set; } = default!; [JsonPropertyName("StopTimeout")] [JsonConverter(typeof(TimeSpanSecondsConverter))] public TimeSpan? StopTimeout { get; set; } [JsonPropertyName("Shell")] - public IList Shell { get; set; } + public IList Shell { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerEventsParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerEventsParameters.Generated.cs index eb20b79c..7214bcc7 100644 --- a/src/Docker.DotNet/Models/ContainerEventsParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerEventsParameters.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerEventsParameters // (main.ContainerEventsParameters) { [QueryStringParameter("since", false)] - public string Since { get; set; } + public string? Since { get; set; } [QueryStringParameter("until", false)] - public string Until { get; set; } + public string? Until { get; set; } [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerExecCreateParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerExecCreateParameters.Generated.cs index d2918b36..ed597b84 100644 --- a/src/Docker.DotNet/Models/ContainerExecCreateParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerExecCreateParameters.Generated.cs @@ -1,39 +1,40 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerExecCreateParameters // (main.ContainerExecCreateParameters) { [JsonPropertyName("User")] - public string User { get; set; } + public string User { get; set; } = default!; [JsonPropertyName("Privileged")] - public bool Privileged { get; set; } + public bool Privileged { get; set; } = default!; [JsonPropertyName("TTY")] - public bool TTY { get; set; } + public bool TTY { get; set; } = default!; [JsonPropertyName("ConsoleSize")] [JsonConverter(typeof(ConsoleSizeConverter))] - public ConsoleSize ConsoleSize { get; set; } + public ConsoleSize ConsoleSize { get; set; } = default!; [JsonPropertyName("AttachStdin")] - public bool AttachStdin { get; set; } + public bool AttachStdin { get; set; } = default!; [JsonPropertyName("AttachStderr")] - public bool AttachStderr { get; set; } + public bool AttachStderr { get; set; } = default!; [JsonPropertyName("AttachStdout")] - public bool AttachStdout { get; set; } + public bool AttachStdout { get; set; } = default!; [JsonPropertyName("DetachKeys")] - public string DetachKeys { get; set; } + public string DetachKeys { get; set; } = default!; [JsonPropertyName("Env")] - public IList Env { get; set; } + public IList Env { get; set; } = default!; [JsonPropertyName("WorkingDir")] - public string WorkingDir { get; set; } + public string WorkingDir { get; set; } = default!; [JsonPropertyName("Cmd")] - public IList Cmd { get; set; } + public IList Cmd { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerExecCreateResponse.Generated.cs b/src/Docker.DotNet/Models/ContainerExecCreateResponse.Generated.cs index 1d38e315..a867ec63 100644 --- a/src/Docker.DotNet/Models/ContainerExecCreateResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerExecCreateResponse.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerExecCreateResponse // (main.ContainerExecCreateResponse) { [JsonPropertyName("Id")] - public string ID { get; set; } + public string ID { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerExecInspectResponse.Generated.cs b/src/Docker.DotNet/Models/ContainerExecInspectResponse.Generated.cs index 5767dd12..4cc25646 100644 --- a/src/Docker.DotNet/Models/ContainerExecInspectResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerExecInspectResponse.Generated.cs @@ -1,38 +1,39 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerExecInspectResponse // (container.ExecInspectResponse) { [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Running")] - public bool Running { get; set; } + public bool Running { get; set; } = default!; [JsonPropertyName("ExitCode")] public long? ExitCode { get; set; } [JsonPropertyName("ProcessConfig")] - public ExecProcessConfig ProcessConfig { get; set; } + public ExecProcessConfig? ProcessConfig { get; set; } [JsonPropertyName("OpenStdin")] - public bool OpenStdin { get; set; } + public bool OpenStdin { get; set; } = default!; [JsonPropertyName("OpenStderr")] - public bool OpenStderr { get; set; } + public bool OpenStderr { get; set; } = default!; [JsonPropertyName("OpenStdout")] - public bool OpenStdout { get; set; } + public bool OpenStdout { get; set; } = default!; [JsonPropertyName("CanRemove")] - public bool CanRemove { get; set; } + public bool CanRemove { get; set; } = default!; [JsonPropertyName("ContainerID")] - public string ContainerID { get; set; } + public string ContainerID { get; set; } = default!; [JsonPropertyName("DetachKeys")] - public string DetachKeys { get; set; } + public string DetachKeys { get; set; } = default!; [JsonPropertyName("Pid")] - public long Pid { get; set; } + public long Pid { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerExecStartParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerExecStartParameters.Generated.cs index cb76cac8..5b496006 100644 --- a/src/Docker.DotNet/Models/ContainerExecStartParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerExecStartParameters.Generated.cs @@ -1,15 +1,16 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerExecStartParameters // (main.ContainerExecStartParameters) { [JsonPropertyName("Detach")] - public bool Detach { get; set; } + public bool Detach { get; set; } = default!; [JsonPropertyName("TTY")] - public bool TTY { get; set; } + public bool TTY { get; set; } = default!; [JsonPropertyName("ConsoleSize")] [JsonConverter(typeof(ConsoleSizeConverter))] - public ConsoleSize ConsoleSize { get; set; } + public ConsoleSize ConsoleSize { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerFileSystemChangeResponse.Generated.cs b/src/Docker.DotNet/Models/ContainerFileSystemChangeResponse.Generated.cs index 6f29b536..13b56aed 100644 --- a/src/Docker.DotNet/Models/ContainerFileSystemChangeResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerFileSystemChangeResponse.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerFileSystemChangeResponse // (container.FilesystemChange) { [JsonPropertyName("Kind")] - public FileSystemChangeKind Kind { get; set; } + public FileSystemChangeKind Kind { get; set; } = default!; [JsonPropertyName("Path")] - public string Path { get; set; } + public string Path { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerInspectParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerInspectParameters.Generated.cs index 7a4f7a8f..9da5c347 100644 --- a/src/Docker.DotNet/Models/ContainerInspectParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerInspectParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerInspectParameters // (main.ContainerInspectParameters) diff --git a/src/Docker.DotNet/Models/ContainerInspectResponse.Generated.cs b/src/Docker.DotNet/Models/ContainerInspectResponse.Generated.cs index ca72ecd7..1c1fb53f 100644 --- a/src/Docker.DotNet/Models/ContainerInspectResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerInspectResponse.Generated.cs @@ -1,69 +1,70 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerInspectResponse // (container.InspectResponse) { [JsonPropertyName("Id")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Created")] - public DateTime Created { get; set; } + public DateTime Created { get; set; } = default!; [JsonPropertyName("Path")] - public string Path { get; set; } + public string Path { get; set; } = default!; [JsonPropertyName("Args")] - public IList Args { get; set; } + public IList Args { get; set; } = default!; [JsonPropertyName("State")] - public State State { get; set; } + public State? State { get; set; } [JsonPropertyName("Image")] - public string Image { get; set; } + public string Image { get; set; } = default!; [JsonPropertyName("ResolvConfPath")] - public string ResolvConfPath { get; set; } + public string ResolvConfPath { get; set; } = default!; [JsonPropertyName("HostnamePath")] - public string HostnamePath { get; set; } + public string HostnamePath { get; set; } = default!; [JsonPropertyName("HostsPath")] - public string HostsPath { get; set; } + public string HostsPath { get; set; } = default!; [JsonPropertyName("LogPath")] - public string LogPath { get; set; } + public string LogPath { get; set; } = default!; [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("RestartCount")] - public long RestartCount { get; set; } + public long RestartCount { get; set; } = default!; [JsonPropertyName("Driver")] - public string Driver { get; set; } + public string Driver { get; set; } = default!; [JsonPropertyName("Platform")] - public string Platform { get; set; } + public string Platform { get; set; } = default!; [JsonPropertyName("MountLabel")] - public string MountLabel { get; set; } + public string MountLabel { get; set; } = default!; [JsonPropertyName("ProcessLabel")] - public string ProcessLabel { get; set; } + public string ProcessLabel { get; set; } = default!; [JsonPropertyName("AppArmorProfile")] - public string AppArmorProfile { get; set; } + public string AppArmorProfile { get; set; } = default!; [JsonPropertyName("ExecIDs")] - public IList ExecIDs { get; set; } + public IList ExecIDs { get; set; } = default!; [JsonPropertyName("HostConfig")] - public HostConfig HostConfig { get; set; } + public HostConfig? HostConfig { get; set; } [JsonPropertyName("GraphDriver")] - public DriverData GraphDriver { get; set; } + public DriverData? GraphDriver { get; set; } [JsonPropertyName("Storage")] - public Storage Storage { get; set; } + public Storage? Storage { get; set; } [JsonPropertyName("SizeRw")] public long? SizeRw { get; set; } @@ -72,15 +73,15 @@ public class ContainerInspectResponse // (container.InspectResponse) public long? SizeRootFs { get; set; } [JsonPropertyName("Mounts")] - public IList Mounts { get; set; } + public IList Mounts { get; set; } = default!; [JsonPropertyName("Config")] - public ContainerConfig Config { get; set; } + public ContainerConfig? Config { get; set; } [JsonPropertyName("NetworkSettings")] - public NetworkSettings NetworkSettings { get; set; } + public NetworkSettings? NetworkSettings { get; set; } [JsonPropertyName("ImageManifestDescriptor")] - public Descriptor ImageManifestDescriptor { get; set; } + public Descriptor? ImageManifestDescriptor { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerKillParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerKillParameters.Generated.cs index 63e91ff0..74686052 100644 --- a/src/Docker.DotNet/Models/ContainerKillParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerKillParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerKillParameters // (main.ContainerKillParameters) { [QueryStringParameter("signal", false)] - public string Signal { get; set; } + public string? Signal { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerListProcessesParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerListProcessesParameters.Generated.cs index a897f859..d48199de 100644 --- a/src/Docker.DotNet/Models/ContainerListProcessesParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerListProcessesParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerListProcessesParameters // (main.ContainerListProcessesParameters) { [QueryStringParameter("ps_args", false)] - public string PsArgs { get; set; } + public string? PsArgs { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerListResponse.Generated.cs b/src/Docker.DotNet/Models/ContainerListResponse.Generated.cs index 0b273e85..25ac63ed 100644 --- a/src/Docker.DotNet/Models/ContainerListResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerListResponse.Generated.cs @@ -1,56 +1,57 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerListResponse // (container.Summary) { [JsonPropertyName("Id")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Names")] - public IList Names { get; set; } + public IList Names { get; set; } = default!; [JsonPropertyName("Image")] - public string Image { get; set; } + public string Image { get; set; } = default!; [JsonPropertyName("ImageID")] - public string ImageID { get; set; } + public string ImageID { get; set; } = default!; [JsonPropertyName("ImageManifestDescriptor")] - public Descriptor ImageManifestDescriptor { get; set; } + public Descriptor? ImageManifestDescriptor { get; set; } [JsonPropertyName("Command")] - public string Command { get; set; } + public string Command { get; set; } = default!; [JsonPropertyName("Created")] - public DateTime Created { get; set; } + public DateTime Created { get; set; } = default!; [JsonPropertyName("Ports")] - public IList Ports { get; set; } + public IList Ports { get; set; } = default!; [JsonPropertyName("SizeRw")] - public long SizeRw { get; set; } + public long SizeRw { get; set; } = default!; [JsonPropertyName("SizeRootFs")] - public long SizeRootFs { get; set; } + public long SizeRootFs { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("State")] - public string State { get; set; } + public string State { get; set; } = default!; [JsonPropertyName("Status")] - public string Status { get; set; } + public string Status { get; set; } = default!; [JsonPropertyName("HostConfig")] - public SummaryHostConfig HostConfig { get; set; } + public SummaryHostConfig HostConfig { get; set; } = default!; [JsonPropertyName("Health")] - public HealthSummary Health { get; set; } + public HealthSummary? Health { get; set; } [JsonPropertyName("NetworkSettings")] - public NetworkSettingsSummary NetworkSettings { get; set; } + public NetworkSettingsSummary? NetworkSettings { get; set; } [JsonPropertyName("Mounts")] - public IList Mounts { get; set; } + public IList Mounts { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerLogsParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerLogsParameters.Generated.cs index f14cca85..32c8e832 100644 --- a/src/Docker.DotNet/Models/ContainerLogsParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerLogsParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerLogsParameters // (main.ContainerLogsParameters) @@ -9,10 +10,10 @@ public class ContainerLogsParameters // (main.ContainerLogsParameters) public bool? ShowStderr { get; set; } [QueryStringParameter("since", false)] - public string Since { get; set; } + public string? Since { get; set; } [QueryStringParameter("until", false)] - public string Until { get; set; } + public string? Until { get; set; } [QueryStringParameter("timestamps", false, typeof(BoolQueryStringConverter))] public bool? Timestamps { get; set; } @@ -21,6 +22,6 @@ public class ContainerLogsParameters // (main.ContainerLogsParameters) public bool? Follow { get; set; } [QueryStringParameter("tail", false)] - public string Tail { get; set; } + public string? Tail { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerPathStatParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerPathStatParameters.Generated.cs index 039095eb..be230d73 100644 --- a/src/Docker.DotNet/Models/ContainerPathStatParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerPathStatParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerPathStatParameters // (main.ContainerPathStatParameters) { [QueryStringParameter("path", true)] - public string Path { get; set; } + public string Path { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerPathStatResponse.Generated.cs b/src/Docker.DotNet/Models/ContainerPathStatResponse.Generated.cs index 8363fb2c..64f86cf0 100644 --- a/src/Docker.DotNet/Models/ContainerPathStatResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerPathStatResponse.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerPathStatResponse // (container.PathStat) { [JsonPropertyName("name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("size")] - public long Size { get; set; } + public long Size { get; set; } = default!; [JsonPropertyName("mode")] - public uint Mode { get; set; } + public uint Mode { get; set; } = default!; [JsonPropertyName("mtime")] - public DateTime Mtime { get; set; } + public DateTime Mtime { get; set; } = default!; [JsonPropertyName("linkTarget")] - public string LinkTarget { get; set; } + public string LinkTarget { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerProcessesResponse.Generated.cs b/src/Docker.DotNet/Models/ContainerProcessesResponse.Generated.cs index 2cc92110..1a77f04b 100644 --- a/src/Docker.DotNet/Models/ContainerProcessesResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerProcessesResponse.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerProcessesResponse // (container.TopResponse) { [JsonPropertyName("Processes")] - public IList> Processes { get; set; } + public IList> Processes { get; set; } = default!; [JsonPropertyName("Titles")] - public IList Titles { get; set; } + public IList Titles { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerRemoveParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerRemoveParameters.Generated.cs index 61afe711..861ab467 100644 --- a/src/Docker.DotNet/Models/ContainerRemoveParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerRemoveParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerRemoveParameters // (main.ContainerRemoveParameters) diff --git a/src/Docker.DotNet/Models/ContainerRenameParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerRenameParameters.Generated.cs index c5980b5d..980209c5 100644 --- a/src/Docker.DotNet/Models/ContainerRenameParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerRenameParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerRenameParameters // (main.ContainerRenameParameters) { [QueryStringParameter("name", false)] - public string NewName { get; set; } + public string? NewName { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerResizeParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerResizeParameters.Generated.cs index 51c8a5d2..3b435bda 100644 --- a/src/Docker.DotNet/Models/ContainerResizeParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerResizeParameters.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerResizeParameters // (main.ContainerResizeParameters) { [QueryStringParameter("h", true)] - public long Height { get; set; } + public long Height { get; set; } = default!; [QueryStringParameter("w", true)] - public long Width { get; set; } + public long Width { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerRestartParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerRestartParameters.Generated.cs index 34aeeaf9..158c5bc9 100644 --- a/src/Docker.DotNet/Models/ContainerRestartParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerRestartParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerRestartParameters // (main.ContainerRestartParameters) @@ -6,6 +7,6 @@ public class ContainerRestartParameters // (main.ContainerRestartParameters) public uint? WaitBeforeKillSeconds { get; set; } [QueryStringParameter("signal", false)] - public string Signal { get; set; } + public string? Signal { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerSpec.Generated.cs b/src/Docker.DotNet/Models/ContainerSpec.Generated.cs index 9cacf55a..8ccc3560 100644 --- a/src/Docker.DotNet/Models/ContainerSpec.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerSpec.Generated.cs @@ -1,89 +1,90 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerSpec // (swarm.ContainerSpec) { [JsonPropertyName("Image")] - public string Image { get; set; } + public string Image { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Command")] - public IList Command { get; set; } + public IList Command { get; set; } = default!; [JsonPropertyName("Args")] - public IList Args { get; set; } + public IList Args { get; set; } = default!; [JsonPropertyName("Hostname")] - public string Hostname { get; set; } + public string Hostname { get; set; } = default!; [JsonPropertyName("Env")] - public IList Env { get; set; } + public IList Env { get; set; } = default!; [JsonPropertyName("Dir")] - public string Dir { get; set; } + public string Dir { get; set; } = default!; [JsonPropertyName("User")] - public string User { get; set; } + public string User { get; set; } = default!; [JsonPropertyName("Groups")] - public IList Groups { get; set; } + public IList Groups { get; set; } = default!; [JsonPropertyName("Privileges")] - public Privileges Privileges { get; set; } + public Privileges? Privileges { get; set; } [JsonPropertyName("Init")] public bool? Init { get; set; } [JsonPropertyName("StopSignal")] - public string StopSignal { get; set; } + public string StopSignal { get; set; } = default!; [JsonPropertyName("TTY")] - public bool TTY { get; set; } + public bool TTY { get; set; } = default!; [JsonPropertyName("OpenStdin")] - public bool OpenStdin { get; set; } + public bool OpenStdin { get; set; } = default!; [JsonPropertyName("ReadOnly")] - public bool ReadOnly { get; set; } + public bool ReadOnly { get; set; } = default!; [JsonPropertyName("Mounts")] - public IList Mounts { get; set; } + public IList Mounts { get; set; } = default!; [JsonPropertyName("StopGracePeriod")] public long? StopGracePeriod { get; set; } [JsonPropertyName("Healthcheck")] - public HealthcheckConfig Healthcheck { get; set; } + public HealthcheckConfig? Healthcheck { get; set; } [JsonPropertyName("Hosts")] - public IList Hosts { get; set; } + public IList Hosts { get; set; } = default!; [JsonPropertyName("DNSConfig")] - public DNSConfig DNSConfig { get; set; } + public DNSConfig? DNSConfig { get; set; } [JsonPropertyName("Secrets")] - public IList Secrets { get; set; } + public IList Secrets { get; set; } = default!; [JsonPropertyName("Configs")] - public IList Configs { get; set; } + public IList Configs { get; set; } = default!; [JsonPropertyName("Isolation")] - public string Isolation { get; set; } + public string Isolation { get; set; } = default!; [JsonPropertyName("Sysctls")] - public IDictionary Sysctls { get; set; } + public IDictionary Sysctls { get; set; } = default!; [JsonPropertyName("CapabilityAdd")] - public IList CapabilityAdd { get; set; } + public IList CapabilityAdd { get; set; } = default!; [JsonPropertyName("CapabilityDrop")] - public IList CapabilityDrop { get; set; } + public IList CapabilityDrop { get; set; } = default!; [JsonPropertyName("Ulimits")] - public IList Ulimits { get; set; } + public IList Ulimits { get; set; } = default!; [JsonPropertyName("OomScoreAdj")] - public long OomScoreAdj { get; set; } + public long OomScoreAdj { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerStartParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerStartParameters.Generated.cs index ddd4174d..e8c1114d 100644 --- a/src/Docker.DotNet/Models/ContainerStartParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerStartParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerStartParameters // (main.ContainerStartParameters) { [QueryStringParameter("detachKeys", false)] - public string DetachKeys { get; set; } + public string? DetachKeys { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerStatsParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerStatsParameters.Generated.cs index 01ca2bfc..8c00b12d 100644 --- a/src/Docker.DotNet/Models/ContainerStatsParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerStatsParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerStatsParameters // (main.ContainerStatsParameters) diff --git a/src/Docker.DotNet/Models/ContainerStatsResponse.Generated.cs b/src/Docker.DotNet/Models/ContainerStatsResponse.Generated.cs index 1965d296..4955a372 100644 --- a/src/Docker.DotNet/Models/ContainerStatsResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerStatsResponse.Generated.cs @@ -1,44 +1,45 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerStatsResponse // (container.StatsResponse) { [JsonPropertyName("id")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("os_type")] - public string OSType { get; set; } + public string OSType { get; set; } = default!; [JsonPropertyName("read")] - public DateTime Read { get; set; } + public DateTime Read { get; set; } = default!; [JsonPropertyName("cpu_stats")] - public CPUStats CPUStats { get; set; } + public CPUStats CPUStats { get; set; } = default!; [JsonPropertyName("memory_stats")] - public MemoryStats MemoryStats { get; set; } + public MemoryStats MemoryStats { get; set; } = default!; [JsonPropertyName("networks")] - public IDictionary Networks { get; set; } + public IDictionary Networks { get; set; } = default!; [JsonPropertyName("pids_stats")] - public PidsStats PidsStats { get; set; } + public PidsStats PidsStats { get; set; } = default!; [JsonPropertyName("blkio_stats")] - public BlkioStats BlkioStats { get; set; } + public BlkioStats BlkioStats { get; set; } = default!; [JsonPropertyName("num_procs")] - public uint NumProcs { get; set; } + public uint NumProcs { get; set; } = default!; [JsonPropertyName("storage_stats")] - public StorageStats StorageStats { get; set; } + public StorageStats StorageStats { get; set; } = default!; [JsonPropertyName("preread")] - public DateTime PreRead { get; set; } + public DateTime PreRead { get; set; } = default!; [JsonPropertyName("precpu_stats")] - public CPUStats PreCPUStats { get; set; } + public CPUStats PreCPUStats { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerStatus.Generated.cs b/src/Docker.DotNet/Models/ContainerStatus.Generated.cs index 6adbcda7..77a54d49 100644 --- a/src/Docker.DotNet/Models/ContainerStatus.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerStatus.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerStatus // (swarm.ContainerStatus) { [JsonPropertyName("ContainerID")] - public string ContainerID { get; set; } + public string ContainerID { get; set; } = default!; [JsonPropertyName("PID")] - public long PID { get; set; } + public long PID { get; set; } = default!; [JsonPropertyName("ExitCode")] - public long ExitCode { get; set; } + public long ExitCode { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerStopParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerStopParameters.Generated.cs index 7399c808..0e0412d0 100644 --- a/src/Docker.DotNet/Models/ContainerStopParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerStopParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerStopParameters // (main.ContainerStopParameters) @@ -6,6 +7,6 @@ public class ContainerStopParameters // (main.ContainerStopParameters) public uint? WaitBeforeKillSeconds { get; set; } [QueryStringParameter("signal", false)] - public string Signal { get; set; } + public string? Signal { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerUpdateParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerUpdateParameters.Generated.cs index 82f1f5fe..7b411c8c 100644 --- a/src/Docker.DotNet/Models/ContainerUpdateParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerUpdateParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerUpdateParameters // (main.ContainerUpdateParameters) @@ -44,67 +45,67 @@ public ContainerUpdateParameters(UpdateConfig UpdateConfig) } [JsonPropertyName("CpuShares")] - public long CPUShares { get; set; } + public long CPUShares { get; set; } = default!; [JsonPropertyName("Memory")] - public long Memory { get; set; } + public long Memory { get; set; } = default!; [JsonPropertyName("NanoCpus")] - public long NanoCPUs { get; set; } + public long NanoCPUs { get; set; } = default!; [JsonPropertyName("CgroupParent")] - public string CgroupParent { get; set; } + public string CgroupParent { get; set; } = default!; [JsonPropertyName("BlkioWeight")] - public ushort BlkioWeight { get; set; } + public ushort BlkioWeight { get; set; } = default!; [JsonPropertyName("BlkioWeightDevice")] - public IList BlkioWeightDevice { get; set; } + public IList BlkioWeightDevice { get; set; } = default!; [JsonPropertyName("BlkioDeviceReadBps")] - public IList BlkioDeviceReadBps { get; set; } + public IList BlkioDeviceReadBps { get; set; } = default!; [JsonPropertyName("BlkioDeviceWriteBps")] - public IList BlkioDeviceWriteBps { get; set; } + public IList BlkioDeviceWriteBps { get; set; } = default!; [JsonPropertyName("BlkioDeviceReadIOps")] - public IList BlkioDeviceReadIOps { get; set; } + public IList BlkioDeviceReadIOps { get; set; } = default!; [JsonPropertyName("BlkioDeviceWriteIOps")] - public IList BlkioDeviceWriteIOps { get; set; } + public IList BlkioDeviceWriteIOps { get; set; } = default!; [JsonPropertyName("CpuPeriod")] - public long CPUPeriod { get; set; } + public long CPUPeriod { get; set; } = default!; [JsonPropertyName("CpuQuota")] - public long CPUQuota { get; set; } + public long CPUQuota { get; set; } = default!; [JsonPropertyName("CpuRealtimePeriod")] - public long CPURealtimePeriod { get; set; } + public long CPURealtimePeriod { get; set; } = default!; [JsonPropertyName("CpuRealtimeRuntime")] - public long CPURealtimeRuntime { get; set; } + public long CPURealtimeRuntime { get; set; } = default!; [JsonPropertyName("CpusetCpus")] - public string CpusetCpus { get; set; } + public string CpusetCpus { get; set; } = default!; [JsonPropertyName("CpusetMems")] - public string CpusetMems { get; set; } + public string CpusetMems { get; set; } = default!; [JsonPropertyName("Devices")] - public IList Devices { get; set; } + public IList Devices { get; set; } = default!; [JsonPropertyName("DeviceCgroupRules")] - public IList DeviceCgroupRules { get; set; } + public IList DeviceCgroupRules { get; set; } = default!; [JsonPropertyName("DeviceRequests")] - public IList DeviceRequests { get; set; } + public IList DeviceRequests { get; set; } = default!; [JsonPropertyName("MemoryReservation")] - public long MemoryReservation { get; set; } + public long MemoryReservation { get; set; } = default!; [JsonPropertyName("MemorySwap")] - public long MemorySwap { get; set; } + public long MemorySwap { get; set; } = default!; [JsonPropertyName("MemorySwappiness")] public long? MemorySwappiness { get; set; } @@ -116,21 +117,21 @@ public ContainerUpdateParameters(UpdateConfig UpdateConfig) public long? PidsLimit { get; set; } [JsonPropertyName("Ulimits")] - public IList Ulimits { get; set; } + public IList Ulimits { get; set; } = default!; [JsonPropertyName("CpuCount")] - public long CPUCount { get; set; } + public long CPUCount { get; set; } = default!; [JsonPropertyName("CpuPercent")] - public long CPUPercent { get; set; } + public long CPUPercent { get; set; } = default!; [JsonPropertyName("IOMaximumIOps")] - public ulong IOMaximumIOps { get; set; } + public ulong IOMaximumIOps { get; set; } = default!; [JsonPropertyName("IOMaximumBandwidth")] - public ulong IOMaximumBandwidth { get; set; } + public ulong IOMaximumBandwidth { get; set; } = default!; [JsonPropertyName("RestartPolicy")] - public RestartPolicy RestartPolicy { get; set; } + public RestartPolicy RestartPolicy { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerUpdateResponse.Generated.cs b/src/Docker.DotNet/Models/ContainerUpdateResponse.Generated.cs index b36c6b52..1dcf5204 100644 --- a/src/Docker.DotNet/Models/ContainerUpdateResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerUpdateResponse.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerUpdateResponse // (main.ContainerUpdateResponse) { [JsonPropertyName("Warnings")] - public IList Warnings { get; set; } + public IList Warnings { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerWaitResponse.Generated.cs b/src/Docker.DotNet/Models/ContainerWaitResponse.Generated.cs index 59428a46..e09bc25f 100644 --- a/src/Docker.DotNet/Models/ContainerWaitResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerWaitResponse.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerWaitResponse // (main.ContainerWaitResponse) { [JsonPropertyName("Error")] - public WaitExitError Error { get; set; } + public WaitExitError? Error { get; set; } [JsonPropertyName("StatusCode")] - public long StatusCode { get; set; } + public long StatusCode { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerdInfo.Generated.cs b/src/Docker.DotNet/Models/ContainerdInfo.Generated.cs index b3b7002e..0c0d9e56 100644 --- a/src/Docker.DotNet/Models/ContainerdInfo.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerdInfo.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerdInfo // (system.ContainerdInfo) { [JsonPropertyName("Address")] - public string Address { get; set; } + public string Address { get; set; } = default!; [JsonPropertyName("Namespaces")] - public ContainerdNamespaces Namespaces { get; set; } + public ContainerdNamespaces Namespaces { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainerdNamespaces.Generated.cs b/src/Docker.DotNet/Models/ContainerdNamespaces.Generated.cs index a96f290d..15102d62 100644 --- a/src/Docker.DotNet/Models/ContainerdNamespaces.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerdNamespaces.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainerdNamespaces // (system.ContainerdNamespaces) { [JsonPropertyName("Containers")] - public string Containers { get; set; } + public string Containers { get; set; } = default!; [JsonPropertyName("Plugins")] - public string Plugins { get; set; } + public string Plugins { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ContainersListParameters.Generated.cs b/src/Docker.DotNet/Models/ContainersListParameters.Generated.cs index e11f3a2e..f7573786 100644 --- a/src/Docker.DotNet/Models/ContainersListParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainersListParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainersListParameters // (main.ContainersListParameters) @@ -12,6 +13,6 @@ public class ContainersListParameters // (main.ContainersListParameters) public bool? Size { get; set; } [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainersPruneParameters.Generated.cs b/src/Docker.DotNet/Models/ContainersPruneParameters.Generated.cs index ef50d220..e25de825 100644 --- a/src/Docker.DotNet/Models/ContainersPruneParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ContainersPruneParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainersPruneParameters // (main.ContainersPruneParameters) { [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainersPruneResponse.Generated.cs b/src/Docker.DotNet/Models/ContainersPruneResponse.Generated.cs index 686f9a26..cfcd6d27 100644 --- a/src/Docker.DotNet/Models/ContainersPruneResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainersPruneResponse.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ContainersPruneResponse // (container.PruneReport) { [JsonPropertyName("ContainersDeleted")] - public IList ContainersDeleted { get; set; } + public IList ContainersDeleted { get; set; } = default!; [JsonPropertyName("SpaceReclaimed")] - public ulong SpaceReclaimed { get; set; } + public ulong SpaceReclaimed { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/CopyToContainerParameters.Generated.cs b/src/Docker.DotNet/Models/CopyToContainerParameters.Generated.cs index c7e2a928..b3e0608c 100644 --- a/src/Docker.DotNet/Models/CopyToContainerParameters.Generated.cs +++ b/src/Docker.DotNet/Models/CopyToContainerParameters.Generated.cs @@ -1,9 +1,10 @@ +#nullable enable namespace Docker.DotNet.Models { public class CopyToContainerParameters // (main.CopyToContainerParameters) { [QueryStringParameter("path", true)] - public string Path { get; set; } + public string Path { get; set; } = default!; [QueryStringParameter("noOverwriteDirNonDir", false, typeof(BoolQueryStringConverter))] public bool? AllowOverwriteDirWithFile { get; set; } diff --git a/src/Docker.DotNet/Models/CreateContainerParameters.Generated.cs b/src/Docker.DotNet/Models/CreateContainerParameters.Generated.cs index a0b9d19a..45aa7327 100644 --- a/src/Docker.DotNet/Models/CreateContainerParameters.Generated.cs +++ b/src/Docker.DotNet/Models/CreateContainerParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class CreateContainerParameters // (main.CreateContainerParameters) @@ -38,88 +39,88 @@ public CreateContainerParameters(ContainerConfig Config) } [QueryStringParameter("name", false)] - public string Name { get; set; } + public string? Name { get; set; } [QueryStringParameter("platform", false)] - public string Platform { get; set; } + public string? Platform { get; set; } [JsonPropertyName("Hostname")] - public string Hostname { get; set; } + public string Hostname { get; set; } = default!; [JsonPropertyName("Domainname")] - public string Domainname { get; set; } + public string Domainname { get; set; } = default!; [JsonPropertyName("User")] - public string User { get; set; } + public string User { get; set; } = default!; [JsonPropertyName("AttachStdin")] - public bool AttachStdin { get; set; } + public bool AttachStdin { get; set; } = default!; [JsonPropertyName("AttachStdout")] - public bool AttachStdout { get; set; } + public bool AttachStdout { get; set; } = default!; [JsonPropertyName("AttachStderr")] - public bool AttachStderr { get; set; } + public bool AttachStderr { get; set; } = default!; [JsonPropertyName("ExposedPorts")] - public IDictionary ExposedPorts { get; set; } + public IDictionary ExposedPorts { get; set; } = default!; [JsonPropertyName("Tty")] - public bool Tty { get; set; } + public bool Tty { get; set; } = default!; [JsonPropertyName("OpenStdin")] - public bool OpenStdin { get; set; } + public bool OpenStdin { get; set; } = default!; [JsonPropertyName("StdinOnce")] - public bool StdinOnce { get; set; } + public bool StdinOnce { get; set; } = default!; [JsonPropertyName("Env")] - public IList Env { get; set; } + public IList Env { get; set; } = default!; [JsonPropertyName("Cmd")] - public IList Cmd { get; set; } + public IList Cmd { get; set; } = default!; [JsonPropertyName("Healthcheck")] - public HealthcheckConfig Healthcheck { get; set; } + public HealthcheckConfig? Healthcheck { get; set; } [JsonPropertyName("ArgsEscaped")] - public bool ArgsEscaped { get; set; } + public bool ArgsEscaped { get; set; } = default!; [JsonPropertyName("Image")] - public string Image { get; set; } + public string Image { get; set; } = default!; [JsonPropertyName("Volumes")] - public IDictionary Volumes { get; set; } + public IDictionary Volumes { get; set; } = default!; [JsonPropertyName("WorkingDir")] - public string WorkingDir { get; set; } + public string WorkingDir { get; set; } = default!; [JsonPropertyName("Entrypoint")] - public IList Entrypoint { get; set; } + public IList Entrypoint { get; set; } = default!; [JsonPropertyName("NetworkDisabled")] - public bool NetworkDisabled { get; set; } + public bool NetworkDisabled { get; set; } = default!; [JsonPropertyName("OnBuild")] - public IList OnBuild { get; set; } + public IList OnBuild { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("StopSignal")] - public string StopSignal { get; set; } + public string StopSignal { get; set; } = default!; [JsonPropertyName("StopTimeout")] [JsonConverter(typeof(TimeSpanSecondsConverter))] public TimeSpan? StopTimeout { get; set; } [JsonPropertyName("Shell")] - public IList Shell { get; set; } + public IList Shell { get; set; } = default!; [JsonPropertyName("HostConfig")] - public HostConfig HostConfig { get; set; } + public HostConfig? HostConfig { get; set; } [JsonPropertyName("NetworkingConfig")] - public NetworkingConfig NetworkingConfig { get; set; } + public NetworkingConfig? NetworkingConfig { get; set; } } } diff --git a/src/Docker.DotNet/Models/CreateContainerResponse.Generated.cs b/src/Docker.DotNet/Models/CreateContainerResponse.Generated.cs index 002fb893..94b69b10 100644 --- a/src/Docker.DotNet/Models/CreateContainerResponse.Generated.cs +++ b/src/Docker.DotNet/Models/CreateContainerResponse.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class CreateContainerResponse // (container.CreateResponse) { [JsonPropertyName("Id")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Warnings")] - public IList Warnings { get; set; } + public IList Warnings { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/CredentialSpec.Generated.cs b/src/Docker.DotNet/Models/CredentialSpec.Generated.cs index df778bd2..1c0610b8 100644 --- a/src/Docker.DotNet/Models/CredentialSpec.Generated.cs +++ b/src/Docker.DotNet/Models/CredentialSpec.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class CredentialSpec // (swarm.CredentialSpec) { [JsonPropertyName("Config")] - public string Config { get; set; } + public string Config { get; set; } = default!; [JsonPropertyName("File")] - public string File { get; set; } + public string File { get; set; } = default!; [JsonPropertyName("Registry")] - public string Registry { get; set; } + public string Registry { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/DNSConfig.Generated.cs b/src/Docker.DotNet/Models/DNSConfig.Generated.cs index feecca62..257b5076 100644 --- a/src/Docker.DotNet/Models/DNSConfig.Generated.cs +++ b/src/Docker.DotNet/Models/DNSConfig.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class DNSConfig // (swarm.DNSConfig) { [JsonPropertyName("Nameservers")] - public IList Nameservers { get; set; } + public IList Nameservers { get; set; } = default!; [JsonPropertyName("Search")] - public IList Search { get; set; } + public IList Search { get; set; } = default!; [JsonPropertyName("Options")] - public IList Options { get; set; } + public IList Options { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Descriptor.Generated.cs b/src/Docker.DotNet/Models/Descriptor.Generated.cs index b4c2aed1..5b27bedd 100644 --- a/src/Docker.DotNet/Models/Descriptor.Generated.cs +++ b/src/Docker.DotNet/Models/Descriptor.Generated.cs @@ -1,30 +1,31 @@ +#nullable enable namespace Docker.DotNet.Models { public class Descriptor // (v1.Descriptor) { [JsonPropertyName("mediaType")] - public string MediaType { get; set; } + public string MediaType { get; set; } = default!; [JsonPropertyName("digest")] - public string Digest { get; set; } + public string Digest { get; set; } = default!; [JsonPropertyName("size")] - public long Size { get; set; } + public long Size { get; set; } = default!; [JsonPropertyName("urls")] - public IList URLs { get; set; } + public IList URLs { get; set; } = default!; [JsonPropertyName("annotations")] - public IDictionary Annotations { get; set; } + public IDictionary Annotations { get; set; } = default!; [JsonPropertyName("data")] [JsonConverter(typeof(Base64Converter))] - public IList Data { get; set; } + public IList Data { get; set; } = default!; [JsonPropertyName("platform")] - public Platform Platform { get; set; } + public Platform? Platform { get; set; } [JsonPropertyName("artifactType")] - public string ArtifactType { get; set; } + public string ArtifactType { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/DeviceInfo.Generated.cs b/src/Docker.DotNet/Models/DeviceInfo.Generated.cs index 0377b44b..f6850b5d 100644 --- a/src/Docker.DotNet/Models/DeviceInfo.Generated.cs +++ b/src/Docker.DotNet/Models/DeviceInfo.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class DeviceInfo // (system.DeviceInfo) { [JsonPropertyName("Source")] - public string Source { get; set; } + public string Source { get; set; } = default!; [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/DeviceMapping.Generated.cs b/src/Docker.DotNet/Models/DeviceMapping.Generated.cs index a02c8227..f82df0ac 100644 --- a/src/Docker.DotNet/Models/DeviceMapping.Generated.cs +++ b/src/Docker.DotNet/Models/DeviceMapping.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class DeviceMapping // (container.DeviceMapping) { [JsonPropertyName("PathOnHost")] - public string PathOnHost { get; set; } + public string PathOnHost { get; set; } = default!; [JsonPropertyName("PathInContainer")] - public string PathInContainer { get; set; } + public string PathInContainer { get; set; } = default!; [JsonPropertyName("CgroupPermissions")] - public string CgroupPermissions { get; set; } + public string CgroupPermissions { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/DeviceRequest.Generated.cs b/src/Docker.DotNet/Models/DeviceRequest.Generated.cs index 3e6bc627..30d8650b 100644 --- a/src/Docker.DotNet/Models/DeviceRequest.Generated.cs +++ b/src/Docker.DotNet/Models/DeviceRequest.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class DeviceRequest // (container.DeviceRequest) { [JsonPropertyName("Driver")] - public string Driver { get; set; } + public string Driver { get; set; } = default!; [JsonPropertyName("Count")] - public long Count { get; set; } + public long Count { get; set; } = default!; [JsonPropertyName("DeviceIDs")] - public IList DeviceIDs { get; set; } + public IList DeviceIDs { get; set; } = default!; [JsonPropertyName("Capabilities")] - public IList> Capabilities { get; set; } + public IList> Capabilities { get; set; } = default!; [JsonPropertyName("Options")] - public IDictionary Options { get; set; } + public IDictionary Options { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/DiscreteGenericResource.Generated.cs b/src/Docker.DotNet/Models/DiscreteGenericResource.Generated.cs index 32996797..e6ffe324 100644 --- a/src/Docker.DotNet/Models/DiscreteGenericResource.Generated.cs +++ b/src/Docker.DotNet/Models/DiscreteGenericResource.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class DiscreteGenericResource // (swarm.DiscreteGenericResource) { [JsonPropertyName("Kind")] - public string Kind { get; set; } + public string Kind { get; set; } = default!; [JsonPropertyName("Value")] - public long Value { get; set; } + public long Value { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/DispatcherConfig.Generated.cs b/src/Docker.DotNet/Models/DispatcherConfig.Generated.cs index 0e9c2602..dcb1a057 100644 --- a/src/Docker.DotNet/Models/DispatcherConfig.Generated.cs +++ b/src/Docker.DotNet/Models/DispatcherConfig.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class DispatcherConfig // (swarm.DispatcherConfig) { [JsonPropertyName("HeartbeatPeriod")] - public long HeartbeatPeriod { get; set; } + public long HeartbeatPeriod { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/DockerOCIImageConfig.Generated.cs b/src/Docker.DotNet/Models/DockerOCIImageConfig.Generated.cs index d24f7ca8..53ab5883 100644 --- a/src/Docker.DotNet/Models/DockerOCIImageConfig.Generated.cs +++ b/src/Docker.DotNet/Models/DockerOCIImageConfig.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class DockerOCIImageConfig // (v1.DockerOCIImageConfig) @@ -31,42 +32,42 @@ public DockerOCIImageConfig(ImageConfig ImageConfig, DockerOCIImageConfigExt Doc } [JsonPropertyName("User")] - public string User { get; set; } + public string User { get; set; } = default!; [JsonPropertyName("ExposedPorts")] - public IDictionary ExposedPorts { get; set; } + public IDictionary ExposedPorts { get; set; } = default!; [JsonPropertyName("Env")] - public IList Env { get; set; } + public IList Env { get; set; } = default!; [JsonPropertyName("Entrypoint")] - public IList Entrypoint { get; set; } + public IList Entrypoint { get; set; } = default!; [JsonPropertyName("Cmd")] - public IList Cmd { get; set; } + public IList Cmd { get; set; } = default!; [JsonPropertyName("Volumes")] - public IDictionary Volumes { get; set; } + public IDictionary Volumes { get; set; } = default!; [JsonPropertyName("WorkingDir")] - public string WorkingDir { get; set; } + public string WorkingDir { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("StopSignal")] - public string StopSignal { get; set; } + public string StopSignal { get; set; } = default!; [JsonPropertyName("ArgsEscaped")] - public bool ArgsEscaped { get; set; } + public bool ArgsEscaped { get; set; } = default!; [JsonPropertyName("Healthcheck")] - public HealthcheckConfig Healthcheck { get; set; } + public HealthcheckConfig? Healthcheck { get; set; } [JsonPropertyName("OnBuild")] - public IList OnBuild { get; set; } + public IList OnBuild { get; set; } = default!; [JsonPropertyName("Shell")] - public IList Shell { get; set; } + public IList Shell { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/DockerOCIImageConfigExt.Generated.cs b/src/Docker.DotNet/Models/DockerOCIImageConfigExt.Generated.cs index a0d10939..4afd6592 100644 --- a/src/Docker.DotNet/Models/DockerOCIImageConfigExt.Generated.cs +++ b/src/Docker.DotNet/Models/DockerOCIImageConfigExt.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class DockerOCIImageConfigExt // (v1.DockerOCIImageConfigExt) { [JsonPropertyName("Healthcheck")] - public HealthcheckConfig Healthcheck { get; set; } + public HealthcheckConfig? Healthcheck { get; set; } [JsonPropertyName("OnBuild")] - public IList OnBuild { get; set; } + public IList OnBuild { get; set; } = default!; [JsonPropertyName("Shell")] - public IList Shell { get; set; } + public IList Shell { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Driver.Generated.cs b/src/Docker.DotNet/Models/Driver.Generated.cs index 98f54116..d41d17ad 100644 --- a/src/Docker.DotNet/Models/Driver.Generated.cs +++ b/src/Docker.DotNet/Models/Driver.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class Driver // (mount.Driver) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Options")] - public IDictionary Options { get; set; } + public IDictionary Options { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/DriverData.Generated.cs b/src/Docker.DotNet/Models/DriverData.Generated.cs index 8cd65ad0..f2e6a430 100644 --- a/src/Docker.DotNet/Models/DriverData.Generated.cs +++ b/src/Docker.DotNet/Models/DriverData.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class DriverData // (storage.DriverData) { [JsonPropertyName("Data")] - public IDictionary Data { get; set; } + public IDictionary Data { get; set; } = default!; [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/EncryptionConfig.Generated.cs b/src/Docker.DotNet/Models/EncryptionConfig.Generated.cs index 04682a07..b8d6a593 100644 --- a/src/Docker.DotNet/Models/EncryptionConfig.Generated.cs +++ b/src/Docker.DotNet/Models/EncryptionConfig.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class EncryptionConfig // (swarm.EncryptionConfig) { [JsonPropertyName("AutoLockManagers")] - public bool AutoLockManagers { get; set; } + public bool AutoLockManagers { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Endpoint.Generated.cs b/src/Docker.DotNet/Models/Endpoint.Generated.cs index e79c9303..9e4498dc 100644 --- a/src/Docker.DotNet/Models/Endpoint.Generated.cs +++ b/src/Docker.DotNet/Models/Endpoint.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class Endpoint // (swarm.Endpoint) { [JsonPropertyName("Spec")] - public EndpointSpec Spec { get; set; } + public EndpointSpec Spec { get; set; } = default!; [JsonPropertyName("Ports")] - public IList Ports { get; set; } + public IList Ports { get; set; } = default!; [JsonPropertyName("VirtualIPs")] - public IList VirtualIPs { get; set; } + public IList VirtualIPs { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/EndpointIPAMConfig.Generated.cs b/src/Docker.DotNet/Models/EndpointIPAMConfig.Generated.cs index 873bd964..c6f180d6 100644 --- a/src/Docker.DotNet/Models/EndpointIPAMConfig.Generated.cs +++ b/src/Docker.DotNet/Models/EndpointIPAMConfig.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class EndpointIPAMConfig // (network.EndpointIPAMConfig) { [JsonPropertyName("IPv4Address")] - public string IPv4Address { get; set; } + public string IPv4Address { get; set; } = default!; [JsonPropertyName("IPv6Address")] - public string IPv6Address { get; set; } + public string IPv6Address { get; set; } = default!; [JsonPropertyName("LinkLocalIPs")] - public IList LinkLocalIPs { get; set; } + public IList LinkLocalIPs { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/EndpointResource.Generated.cs b/src/Docker.DotNet/Models/EndpointResource.Generated.cs index cfd2cb0a..54a47c8c 100644 --- a/src/Docker.DotNet/Models/EndpointResource.Generated.cs +++ b/src/Docker.DotNet/Models/EndpointResource.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class EndpointResource // (network.EndpointResource) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("EndpointID")] - public string EndpointID { get; set; } + public string EndpointID { get; set; } = default!; [JsonPropertyName("MacAddress")] - public string MacAddress { get; set; } + public string MacAddress { get; set; } = default!; [JsonPropertyName("IPv4Address")] - public string IPv4Address { get; set; } + public string IPv4Address { get; set; } = default!; [JsonPropertyName("IPv6Address")] - public string IPv6Address { get; set; } + public string IPv6Address { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/EndpointSettings.Generated.cs b/src/Docker.DotNet/Models/EndpointSettings.Generated.cs index de8f1532..c2a4fea2 100644 --- a/src/Docker.DotNet/Models/EndpointSettings.Generated.cs +++ b/src/Docker.DotNet/Models/EndpointSettings.Generated.cs @@ -1,50 +1,51 @@ +#nullable enable namespace Docker.DotNet.Models { public class EndpointSettings // (network.EndpointSettings) { [JsonPropertyName("IPAMConfig")] - public EndpointIPAMConfig IPAMConfig { get; set; } + public EndpointIPAMConfig? IPAMConfig { get; set; } [JsonPropertyName("Links")] - public IList Links { get; set; } + public IList Links { get; set; } = default!; [JsonPropertyName("Aliases")] - public IList Aliases { get; set; } + public IList Aliases { get; set; } = default!; [JsonPropertyName("DriverOpts")] - public IDictionary DriverOpts { get; set; } + public IDictionary DriverOpts { get; set; } = default!; [JsonPropertyName("GwPriority")] - public long GwPriority { get; set; } + public long GwPriority { get; set; } = default!; [JsonPropertyName("NetworkID")] - public string NetworkID { get; set; } + public string NetworkID { get; set; } = default!; [JsonPropertyName("EndpointID")] - public string EndpointID { get; set; } + public string EndpointID { get; set; } = default!; [JsonPropertyName("Gateway")] - public string Gateway { get; set; } + public string Gateway { get; set; } = default!; [JsonPropertyName("IPAddress")] - public string IPAddress { get; set; } + public string IPAddress { get; set; } = default!; [JsonPropertyName("MacAddress")] - public string MacAddress { get; set; } + public string MacAddress { get; set; } = default!; [JsonPropertyName("IPPrefixLen")] - public long IPPrefixLen { get; set; } + public long IPPrefixLen { get; set; } = default!; [JsonPropertyName("IPv6Gateway")] - public string IPv6Gateway { get; set; } + public string IPv6Gateway { get; set; } = default!; [JsonPropertyName("GlobalIPv6Address")] - public string GlobalIPv6Address { get; set; } + public string GlobalIPv6Address { get; set; } = default!; [JsonPropertyName("GlobalIPv6PrefixLen")] - public long GlobalIPv6PrefixLen { get; set; } + public long GlobalIPv6PrefixLen { get; set; } = default!; [JsonPropertyName("DNSNames")] - public IList DNSNames { get; set; } + public IList DNSNames { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/EndpointSpec.Generated.cs b/src/Docker.DotNet/Models/EndpointSpec.Generated.cs index 67ca3d1f..753317e6 100644 --- a/src/Docker.DotNet/Models/EndpointSpec.Generated.cs +++ b/src/Docker.DotNet/Models/EndpointSpec.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class EndpointSpec // (swarm.EndpointSpec) { [JsonPropertyName("Mode")] - public string Mode { get; set; } + public string Mode { get; set; } = default!; [JsonPropertyName("Ports")] - public IList Ports { get; set; } + public IList Ports { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/EndpointVirtualIP.Generated.cs b/src/Docker.DotNet/Models/EndpointVirtualIP.Generated.cs index 61bdba45..669bb7d1 100644 --- a/src/Docker.DotNet/Models/EndpointVirtualIP.Generated.cs +++ b/src/Docker.DotNet/Models/EndpointVirtualIP.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class EndpointVirtualIP // (swarm.EndpointVirtualIP) { [JsonPropertyName("NetworkID")] - public string NetworkID { get; set; } + public string NetworkID { get; set; } = default!; [JsonPropertyName("Addr")] - public string Addr { get; set; } + public string Addr { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/EngineDescription.Generated.cs b/src/Docker.DotNet/Models/EngineDescription.Generated.cs index 0fcf6543..512a4a03 100644 --- a/src/Docker.DotNet/Models/EngineDescription.Generated.cs +++ b/src/Docker.DotNet/Models/EngineDescription.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class EngineDescription // (swarm.EngineDescription) { [JsonPropertyName("EngineVersion")] - public string EngineVersion { get; set; } + public string EngineVersion { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Plugins")] - public IList Plugins { get; set; } + public IList Plugins { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ExecProcessConfig.Generated.cs b/src/Docker.DotNet/Models/ExecProcessConfig.Generated.cs index 4dc93257..7ea4c8f3 100644 --- a/src/Docker.DotNet/Models/ExecProcessConfig.Generated.cs +++ b/src/Docker.DotNet/Models/ExecProcessConfig.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class ExecProcessConfig // (container.ExecProcessConfig) { [JsonPropertyName("tty")] - public bool Tty { get; set; } + public bool Tty { get; set; } = default!; [JsonPropertyName("entrypoint")] - public string Entrypoint { get; set; } + public string Entrypoint { get; set; } = default!; [JsonPropertyName("arguments")] - public IList Arguments { get; set; } + public IList Arguments { get; set; } = default!; [JsonPropertyName("privileged")] public bool? Privileged { get; set; } [JsonPropertyName("user")] - public string User { get; set; } + public string User { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ExternalCA.Generated.cs b/src/Docker.DotNet/Models/ExternalCA.Generated.cs index b68457ea..f39a48b7 100644 --- a/src/Docker.DotNet/Models/ExternalCA.Generated.cs +++ b/src/Docker.DotNet/Models/ExternalCA.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class ExternalCA // (swarm.ExternalCA) { [JsonPropertyName("Protocol")] - public string Protocol { get; set; } + public string Protocol { get; set; } = default!; [JsonPropertyName("URL")] - public string URL { get; set; } + public string URL { get; set; } = default!; [JsonPropertyName("Options")] - public IDictionary Options { get; set; } + public IDictionary Options { get; set; } = default!; [JsonPropertyName("CACert")] - public string CACert { get; set; } + public string CACert { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/FirewallInfo.Generated.cs b/src/Docker.DotNet/Models/FirewallInfo.Generated.cs index 83235dfc..930009f3 100644 --- a/src/Docker.DotNet/Models/FirewallInfo.Generated.cs +++ b/src/Docker.DotNet/Models/FirewallInfo.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class FirewallInfo // (system.FirewallInfo) { [JsonPropertyName("Driver")] - public string Driver { get; set; } + public string Driver { get; set; } = default!; [JsonPropertyName("Info")] - public IList Info { get; set; } + public IList Info { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/GenericResource.Generated.cs b/src/Docker.DotNet/Models/GenericResource.Generated.cs index aaa883d2..c1336935 100644 --- a/src/Docker.DotNet/Models/GenericResource.Generated.cs +++ b/src/Docker.DotNet/Models/GenericResource.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class GenericResource // (swarm.GenericResource) { [JsonPropertyName("NamedResourceSpec")] - public NamedGenericResource NamedResourceSpec { get; set; } + public NamedGenericResource? NamedResourceSpec { get; set; } [JsonPropertyName("DiscreteResourceSpec")] - public DiscreteGenericResource DiscreteResourceSpec { get; set; } + public DiscreteGenericResource? DiscreteResourceSpec { get; set; } } } diff --git a/src/Docker.DotNet/Models/GlobalJob.Generated.cs b/src/Docker.DotNet/Models/GlobalJob.Generated.cs index eb81aab7..554e68aa 100644 --- a/src/Docker.DotNet/Models/GlobalJob.Generated.cs +++ b/src/Docker.DotNet/Models/GlobalJob.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class GlobalJob // (swarm.GlobalJob) diff --git a/src/Docker.DotNet/Models/GlobalService.Generated.cs b/src/Docker.DotNet/Models/GlobalService.Generated.cs index 20b81bba..78ffb29c 100644 --- a/src/Docker.DotNet/Models/GlobalService.Generated.cs +++ b/src/Docker.DotNet/Models/GlobalService.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class GlobalService // (swarm.GlobalService) diff --git a/src/Docker.DotNet/Models/Health.Generated.cs b/src/Docker.DotNet/Models/Health.Generated.cs index a30e90e9..003e2d58 100644 --- a/src/Docker.DotNet/Models/Health.Generated.cs +++ b/src/Docker.DotNet/Models/Health.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class Health // (container.Health) { [JsonPropertyName("Status")] - public string Status { get; set; } + public string Status { get; set; } = default!; [JsonPropertyName("FailingStreak")] - public long FailingStreak { get; set; } + public long FailingStreak { get; set; } = default!; [JsonPropertyName("Log")] - public IList Log { get; set; } + public IList Log { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/HealthSummary.Generated.cs b/src/Docker.DotNet/Models/HealthSummary.Generated.cs index f7ed0cd1..b66a969e 100644 --- a/src/Docker.DotNet/Models/HealthSummary.Generated.cs +++ b/src/Docker.DotNet/Models/HealthSummary.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class HealthSummary // (container.HealthSummary) { [JsonPropertyName("Status")] - public string Status { get; set; } + public string Status { get; set; } = default!; [JsonPropertyName("FailingStreak")] - public long FailingStreak { get; set; } + public long FailingStreak { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/HealthcheckConfig.Generated.cs b/src/Docker.DotNet/Models/HealthcheckConfig.Generated.cs index 64967ef7..75961242 100644 --- a/src/Docker.DotNet/Models/HealthcheckConfig.Generated.cs +++ b/src/Docker.DotNet/Models/HealthcheckConfig.Generated.cs @@ -1,25 +1,26 @@ +#nullable enable namespace Docker.DotNet.Models { public class HealthcheckConfig // (v1.HealthcheckConfig) { [JsonPropertyName("Test")] - public IList Test { get; set; } + public IList Test { get; set; } = default!; [JsonPropertyName("Interval")] [JsonConverter(typeof(TimeSpanNanosecondsConverter))] - public TimeSpan Interval { get; set; } + public TimeSpan Interval { get; set; } = default!; [JsonPropertyName("Timeout")] [JsonConverter(typeof(TimeSpanNanosecondsConverter))] - public TimeSpan Timeout { get; set; } + public TimeSpan Timeout { get; set; } = default!; [JsonPropertyName("StartPeriod")] - public long StartPeriod { get; set; } + public long StartPeriod { get; set; } = default!; [JsonPropertyName("StartInterval")] - public long StartInterval { get; set; } + public long StartInterval { get; set; } = default!; [JsonPropertyName("Retries")] - public long Retries { get; set; } + public long Retries { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/HealthcheckResult.Generated.cs b/src/Docker.DotNet/Models/HealthcheckResult.Generated.cs index fe8494ed..aa5dbd4a 100644 --- a/src/Docker.DotNet/Models/HealthcheckResult.Generated.cs +++ b/src/Docker.DotNet/Models/HealthcheckResult.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class HealthcheckResult // (container.HealthcheckResult) { [JsonPropertyName("Start")] - public DateTime Start { get; set; } + public DateTime Start { get; set; } = default!; [JsonPropertyName("End")] - public DateTime End { get; set; } + public DateTime End { get; set; } = default!; [JsonPropertyName("ExitCode")] - public long ExitCode { get; set; } + public long ExitCode { get; set; } = default!; [JsonPropertyName("Output")] - public string Output { get; set; } + public string Output { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/HostConfig.Generated.cs b/src/Docker.DotNet/Models/HostConfig.Generated.cs index 3632a0b3..08ddc635 100644 --- a/src/Docker.DotNet/Models/HostConfig.Generated.cs +++ b/src/Docker.DotNet/Models/HostConfig.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class HostConfig // (container.HostConfig) @@ -43,176 +44,176 @@ public HostConfig(Resources Resources) } [JsonPropertyName("Binds")] - public IList Binds { get; set; } + public IList Binds { get; set; } = default!; [JsonPropertyName("ContainerIDFile")] - public string ContainerIDFile { get; set; } + public string ContainerIDFile { get; set; } = default!; [JsonPropertyName("LogConfig")] - public LogConfig LogConfig { get; set; } + public LogConfig LogConfig { get; set; } = default!; [JsonPropertyName("NetworkMode")] - public string NetworkMode { get; set; } + public string NetworkMode { get; set; } = default!; [JsonPropertyName("PortBindings")] - public IDictionary> PortBindings { get; set; } + public IDictionary> PortBindings { get; set; } = default!; [JsonPropertyName("RestartPolicy")] - public RestartPolicy RestartPolicy { get; set; } + public RestartPolicy RestartPolicy { get; set; } = default!; [JsonPropertyName("AutoRemove")] - public bool AutoRemove { get; set; } + public bool AutoRemove { get; set; } = default!; [JsonPropertyName("VolumeDriver")] - public string VolumeDriver { get; set; } + public string VolumeDriver { get; set; } = default!; [JsonPropertyName("VolumesFrom")] - public IList VolumesFrom { get; set; } + public IList VolumesFrom { get; set; } = default!; [JsonPropertyName("ConsoleSize")] [JsonConverter(typeof(ConsoleSizeConverter))] - public ConsoleSize ConsoleSize { get; set; } + public ConsoleSize ConsoleSize { get; set; } = default!; [JsonPropertyName("Annotations")] - public IDictionary Annotations { get; set; } + public IDictionary Annotations { get; set; } = default!; [JsonPropertyName("CapAdd")] - public IList CapAdd { get; set; } + public IList CapAdd { get; set; } = default!; [JsonPropertyName("CapDrop")] - public IList CapDrop { get; set; } + public IList CapDrop { get; set; } = default!; [JsonPropertyName("CgroupnsMode")] - public string CgroupnsMode { get; set; } + public string CgroupnsMode { get; set; } = default!; [JsonPropertyName("Dns")] - public IList DNS { get; set; } + public IList DNS { get; set; } = default!; [JsonPropertyName("DnsOptions")] - public IList DNSOptions { get; set; } + public IList DNSOptions { get; set; } = default!; [JsonPropertyName("DnsSearch")] - public IList DNSSearch { get; set; } + public IList DNSSearch { get; set; } = default!; [JsonPropertyName("ExtraHosts")] - public IList ExtraHosts { get; set; } + public IList ExtraHosts { get; set; } = default!; [JsonPropertyName("GroupAdd")] - public IList GroupAdd { get; set; } + public IList GroupAdd { get; set; } = default!; [JsonPropertyName("IpcMode")] - public string IpcMode { get; set; } + public string IpcMode { get; set; } = default!; [JsonPropertyName("Cgroup")] - public string Cgroup { get; set; } + public string Cgroup { get; set; } = default!; [JsonPropertyName("Links")] - public IList Links { get; set; } + public IList Links { get; set; } = default!; [JsonPropertyName("OomScoreAdj")] - public long OomScoreAdj { get; set; } + public long OomScoreAdj { get; set; } = default!; [JsonPropertyName("PidMode")] - public string PidMode { get; set; } + public string PidMode { get; set; } = default!; [JsonPropertyName("Privileged")] - public bool Privileged { get; set; } + public bool Privileged { get; set; } = default!; [JsonPropertyName("PublishAllPorts")] - public bool PublishAllPorts { get; set; } + public bool PublishAllPorts { get; set; } = default!; [JsonPropertyName("ReadonlyRootfs")] - public bool ReadonlyRootfs { get; set; } + public bool ReadonlyRootfs { get; set; } = default!; [JsonPropertyName("SecurityOpt")] - public IList SecurityOpt { get; set; } + public IList SecurityOpt { get; set; } = default!; [JsonPropertyName("StorageOpt")] - public IDictionary StorageOpt { get; set; } + public IDictionary StorageOpt { get; set; } = default!; [JsonPropertyName("Tmpfs")] - public IDictionary Tmpfs { get; set; } + public IDictionary Tmpfs { get; set; } = default!; [JsonPropertyName("UTSMode")] - public string UTSMode { get; set; } + public string UTSMode { get; set; } = default!; [JsonPropertyName("UsernsMode")] - public string UsernsMode { get; set; } + public string UsernsMode { get; set; } = default!; [JsonPropertyName("ShmSize")] - public long ShmSize { get; set; } + public long ShmSize { get; set; } = default!; [JsonPropertyName("Sysctls")] - public IDictionary Sysctls { get; set; } + public IDictionary Sysctls { get; set; } = default!; [JsonPropertyName("Runtime")] - public string Runtime { get; set; } + public string Runtime { get; set; } = default!; [JsonPropertyName("Isolation")] - public string Isolation { get; set; } + public string Isolation { get; set; } = default!; [JsonPropertyName("CpuShares")] - public long CPUShares { get; set; } + public long CPUShares { get; set; } = default!; [JsonPropertyName("Memory")] - public long Memory { get; set; } + public long Memory { get; set; } = default!; [JsonPropertyName("NanoCpus")] - public long NanoCPUs { get; set; } + public long NanoCPUs { get; set; } = default!; [JsonPropertyName("CgroupParent")] - public string CgroupParent { get; set; } + public string CgroupParent { get; set; } = default!; [JsonPropertyName("BlkioWeight")] - public ushort BlkioWeight { get; set; } + public ushort BlkioWeight { get; set; } = default!; [JsonPropertyName("BlkioWeightDevice")] - public IList BlkioWeightDevice { get; set; } + public IList BlkioWeightDevice { get; set; } = default!; [JsonPropertyName("BlkioDeviceReadBps")] - public IList BlkioDeviceReadBps { get; set; } + public IList BlkioDeviceReadBps { get; set; } = default!; [JsonPropertyName("BlkioDeviceWriteBps")] - public IList BlkioDeviceWriteBps { get; set; } + public IList BlkioDeviceWriteBps { get; set; } = default!; [JsonPropertyName("BlkioDeviceReadIOps")] - public IList BlkioDeviceReadIOps { get; set; } + public IList BlkioDeviceReadIOps { get; set; } = default!; [JsonPropertyName("BlkioDeviceWriteIOps")] - public IList BlkioDeviceWriteIOps { get; set; } + public IList BlkioDeviceWriteIOps { get; set; } = default!; [JsonPropertyName("CpuPeriod")] - public long CPUPeriod { get; set; } + public long CPUPeriod { get; set; } = default!; [JsonPropertyName("CpuQuota")] - public long CPUQuota { get; set; } + public long CPUQuota { get; set; } = default!; [JsonPropertyName("CpuRealtimePeriod")] - public long CPURealtimePeriod { get; set; } + public long CPURealtimePeriod { get; set; } = default!; [JsonPropertyName("CpuRealtimeRuntime")] - public long CPURealtimeRuntime { get; set; } + public long CPURealtimeRuntime { get; set; } = default!; [JsonPropertyName("CpusetCpus")] - public string CpusetCpus { get; set; } + public string CpusetCpus { get; set; } = default!; [JsonPropertyName("CpusetMems")] - public string CpusetMems { get; set; } + public string CpusetMems { get; set; } = default!; [JsonPropertyName("Devices")] - public IList Devices { get; set; } + public IList Devices { get; set; } = default!; [JsonPropertyName("DeviceCgroupRules")] - public IList DeviceCgroupRules { get; set; } + public IList DeviceCgroupRules { get; set; } = default!; [JsonPropertyName("DeviceRequests")] - public IList DeviceRequests { get; set; } + public IList DeviceRequests { get; set; } = default!; [JsonPropertyName("MemoryReservation")] - public long MemoryReservation { get; set; } + public long MemoryReservation { get; set; } = default!; [JsonPropertyName("MemorySwap")] - public long MemorySwap { get; set; } + public long MemorySwap { get; set; } = default!; [JsonPropertyName("MemorySwappiness")] public long? MemorySwappiness { get; set; } @@ -224,28 +225,28 @@ public HostConfig(Resources Resources) public long? PidsLimit { get; set; } [JsonPropertyName("Ulimits")] - public IList Ulimits { get; set; } + public IList Ulimits { get; set; } = default!; [JsonPropertyName("CpuCount")] - public long CPUCount { get; set; } + public long CPUCount { get; set; } = default!; [JsonPropertyName("CpuPercent")] - public long CPUPercent { get; set; } + public long CPUPercent { get; set; } = default!; [JsonPropertyName("IOMaximumIOps")] - public ulong IOMaximumIOps { get; set; } + public ulong IOMaximumIOps { get; set; } = default!; [JsonPropertyName("IOMaximumBandwidth")] - public ulong IOMaximumBandwidth { get; set; } + public ulong IOMaximumBandwidth { get; set; } = default!; [JsonPropertyName("Mounts")] - public IList Mounts { get; set; } + public IList Mounts { get; set; } = default!; [JsonPropertyName("MaskedPaths")] - public IList MaskedPaths { get; set; } + public IList MaskedPaths { get; set; } = default!; [JsonPropertyName("ReadonlyPaths")] - public IList ReadonlyPaths { get; set; } + public IList ReadonlyPaths { get; set; } = default!; [JsonPropertyName("Init")] public bool? Init { get; set; } diff --git a/src/Docker.DotNet/Models/IPAM.Generated.cs b/src/Docker.DotNet/Models/IPAM.Generated.cs index 7c3a8e65..226db27c 100644 --- a/src/Docker.DotNet/Models/IPAM.Generated.cs +++ b/src/Docker.DotNet/Models/IPAM.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class IPAM // (network.IPAM) { [JsonPropertyName("Driver")] - public string Driver { get; set; } + public string Driver { get; set; } = default!; [JsonPropertyName("Options")] - public IDictionary Options { get; set; } + public IDictionary Options { get; set; } = default!; [JsonPropertyName("Config")] - public IList Config { get; set; } + public IList Config { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/IPAMConfig.Generated.cs b/src/Docker.DotNet/Models/IPAMConfig.Generated.cs index 6e75d1ab..7482c318 100644 --- a/src/Docker.DotNet/Models/IPAMConfig.Generated.cs +++ b/src/Docker.DotNet/Models/IPAMConfig.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class IPAMConfig // (network.IPAMConfig) { [JsonPropertyName("Subnet")] - public string Subnet { get; set; } + public string Subnet { get; set; } = default!; [JsonPropertyName("IPRange")] - public string IPRange { get; set; } + public string IPRange { get; set; } = default!; [JsonPropertyName("Gateway")] - public string Gateway { get; set; } + public string Gateway { get; set; } = default!; [JsonPropertyName("AuxiliaryAddresses")] - public IDictionary AuxAddress { get; set; } + public IDictionary AuxAddress { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/IPAMOptions.Generated.cs b/src/Docker.DotNet/Models/IPAMOptions.Generated.cs index 26dcb5e9..bb3fc868 100644 --- a/src/Docker.DotNet/Models/IPAMOptions.Generated.cs +++ b/src/Docker.DotNet/Models/IPAMOptions.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class IPAMOptions // (swarm.IPAMOptions) { [JsonPropertyName("Driver")] - public SwarmDriver Driver { get; set; } + public SwarmDriver Driver { get; set; } = default!; [JsonPropertyName("Configs")] - public IList Configs { get; set; } + public IList Configs { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/IPAMStatus.Generated.cs b/src/Docker.DotNet/Models/IPAMStatus.Generated.cs index 8b0412bf..88a196a4 100644 --- a/src/Docker.DotNet/Models/IPAMStatus.Generated.cs +++ b/src/Docker.DotNet/Models/IPAMStatus.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class IPAMStatus // (network.IPAMStatus) { [JsonPropertyName("Subnets")] - public IDictionary Subnets { get; set; } + public IDictionary Subnets { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImageBuildParameters.Generated.cs b/src/Docker.DotNet/Models/ImageBuildParameters.Generated.cs index 9855b34d..65d412bb 100644 --- a/src/Docker.DotNet/Models/ImageBuildParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ImageBuildParameters.Generated.cs @@ -1,15 +1,16 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImageBuildParameters // (main.ImageBuildParameters) { [QueryStringParameter("t", false, typeof(EnumerableQueryStringConverter))] - public IList Tags { get; set; } + public IList? Tags { get; set; } [QueryStringParameter("q", false, typeof(BoolQueryStringConverter))] public bool? SuppressOutput { get; set; } [QueryStringParameter("remote", false)] - public string RemoteContext { get; set; } + public string? RemoteContext { get; set; } [QueryStringParameter("nocache", false, typeof(BoolQueryStringConverter))] public bool? NoCache { get; set; } @@ -21,10 +22,10 @@ public class ImageBuildParameters // (main.ImageBuildParameters) public bool? ForceRemove { get; set; } [QueryStringParameter("pull", false)] - public string Pull { get; set; } + public string? Pull { get; set; } [QueryStringParameter("cpusetcpus", false)] - public string CPUSetCPUs { get; set; } + public string? CPUSetCPUs { get; set; } [QueryStringParameter("cpushares", false)] public long? CPUShares { get; set; } @@ -42,42 +43,42 @@ public class ImageBuildParameters // (main.ImageBuildParameters) public long? MemorySwap { get; set; } [QueryStringParameter("networkmode", false)] - public string NetworkMode { get; set; } + public string? NetworkMode { get; set; } [QueryStringParameter("shmsize", false)] public long? ShmSize { get; set; } [QueryStringParameter("dockerfile", false)] - public string Dockerfile { get; set; } + public string? Dockerfile { get; set; } [QueryStringParameter("buildargs", false, typeof(MapQueryStringConverter))] - public IDictionary BuildArgs { get; set; } + public IDictionary? BuildArgs { get; set; } [QueryStringParameter("labels", false, typeof(MapQueryStringConverter))] - public IDictionary Labels { get; set; } + public IDictionary? Labels { get; set; } [QueryStringParameter("squash", false, typeof(BoolQueryStringConverter))] public bool? Squash { get; set; } [QueryStringParameter("cachefrom", false, typeof(EnumerableQueryStringConverter))] - public IList CacheFrom { get; set; } + public IList? CacheFrom { get; set; } [QueryStringParameter("extrahosts", false, typeof(EnumerableQueryStringConverter))] - public IList ExtraHosts { get; set; } + public IList? ExtraHosts { get; set; } [QueryStringParameter("target", false)] - public string Target { get; set; } + public string? Target { get; set; } [QueryStringParameter("platform", false)] - public string Platform { get; set; } + public string? Platform { get; set; } [QueryStringParameter("outputs", false)] - public string Outputs { get; set; } + public string? Outputs { get; set; } [QueryStringParameter("version", false)] - public string Version { get; set; } + public string? Version { get; set; } [JsonPropertyName("AuthConfigs")] - public IDictionary AuthConfigs { get; set; } + public IDictionary AuthConfigs { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImageBuildResult.Generated.cs b/src/Docker.DotNet/Models/ImageBuildResult.Generated.cs index ed6c102e..291fb945 100644 --- a/src/Docker.DotNet/Models/ImageBuildResult.Generated.cs +++ b/src/Docker.DotNet/Models/ImageBuildResult.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImageBuildResult // (client.ImageBuildResult) { [JsonPropertyName("Body")] - public object Body { get; set; } + public object Body { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImageConfig.Generated.cs b/src/Docker.DotNet/Models/ImageConfig.Generated.cs index fc53888f..2885f55c 100644 --- a/src/Docker.DotNet/Models/ImageConfig.Generated.cs +++ b/src/Docker.DotNet/Models/ImageConfig.Generated.cs @@ -1,35 +1,36 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImageConfig // (v1.ImageConfig) { [JsonPropertyName("User")] - public string User { get; set; } + public string User { get; set; } = default!; [JsonPropertyName("ExposedPorts")] - public IDictionary ExposedPorts { get; set; } + public IDictionary ExposedPorts { get; set; } = default!; [JsonPropertyName("Env")] - public IList Env { get; set; } + public IList Env { get; set; } = default!; [JsonPropertyName("Entrypoint")] - public IList Entrypoint { get; set; } + public IList Entrypoint { get; set; } = default!; [JsonPropertyName("Cmd")] - public IList Cmd { get; set; } + public IList Cmd { get; set; } = default!; [JsonPropertyName("Volumes")] - public IDictionary Volumes { get; set; } + public IDictionary Volumes { get; set; } = default!; [JsonPropertyName("WorkingDir")] - public string WorkingDir { get; set; } + public string WorkingDir { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("StopSignal")] - public string StopSignal { get; set; } + public string StopSignal { get; set; } = default!; [JsonPropertyName("ArgsEscaped")] - public bool ArgsEscaped { get; set; } + public bool ArgsEscaped { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImageDeleteParameters.Generated.cs b/src/Docker.DotNet/Models/ImageDeleteParameters.Generated.cs index d03a447b..fae052ba 100644 --- a/src/Docker.DotNet/Models/ImageDeleteParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ImageDeleteParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImageDeleteParameters // (main.ImageDeleteParameters) diff --git a/src/Docker.DotNet/Models/ImageDeleteResponse.Generated.cs b/src/Docker.DotNet/Models/ImageDeleteResponse.Generated.cs index 09af85b2..dab8c363 100644 --- a/src/Docker.DotNet/Models/ImageDeleteResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ImageDeleteResponse.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImageDeleteResponse // (image.DeleteResponse) { [JsonPropertyName("Deleted")] - public string Deleted { get; set; } + public string Deleted { get; set; } = default!; [JsonPropertyName("Untagged")] - public string Untagged { get; set; } + public string Untagged { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImageHistoryResponse.Generated.cs b/src/Docker.DotNet/Models/ImageHistoryResponse.Generated.cs index 82a788a8..94dad48a 100644 --- a/src/Docker.DotNet/Models/ImageHistoryResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ImageHistoryResponse.Generated.cs @@ -1,23 +1,24 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImageHistoryResponse // (image.HistoryResponseItem) { [JsonPropertyName("Comment")] - public string Comment { get; set; } + public string Comment { get; set; } = default!; [JsonPropertyName("Created")] - public DateTime Created { get; set; } + public DateTime Created { get; set; } = default!; [JsonPropertyName("CreatedBy")] - public string CreatedBy { get; set; } + public string CreatedBy { get; set; } = default!; [JsonPropertyName("Id")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Size")] - public long Size { get; set; } + public long Size { get; set; } = default!; [JsonPropertyName("Tags")] - public IList Tags { get; set; } + public IList Tags { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImageInspectResponse.Generated.cs b/src/Docker.DotNet/Models/ImageInspectResponse.Generated.cs index 55c5c9f5..3982a83f 100644 --- a/src/Docker.DotNet/Models/ImageInspectResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ImageInspectResponse.Generated.cs @@ -1,56 +1,57 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImageInspectResponse // (image.InspectResponse) { [JsonPropertyName("Id")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("RepoTags")] - public IList RepoTags { get; set; } + public IList RepoTags { get; set; } = default!; [JsonPropertyName("RepoDigests")] - public IList RepoDigests { get; set; } + public IList RepoDigests { get; set; } = default!; [JsonPropertyName("Comment")] - public string Comment { get; set; } + public string Comment { get; set; } = default!; [JsonPropertyName("Created")] - public DateTime Created { get; set; } + public DateTime Created { get; set; } = default!; [JsonPropertyName("Author")] - public string Author { get; set; } + public string Author { get; set; } = default!; [JsonPropertyName("Config")] - public DockerOCIImageConfig Config { get; set; } + public DockerOCIImageConfig? Config { get; set; } [JsonPropertyName("Architecture")] - public string Architecture { get; set; } + public string Architecture { get; set; } = default!; [JsonPropertyName("Variant")] - public string Variant { get; set; } + public string Variant { get; set; } = default!; [JsonPropertyName("Os")] - public string Os { get; set; } + public string Os { get; set; } = default!; [JsonPropertyName("OsVersion")] - public string OsVersion { get; set; } + public string OsVersion { get; set; } = default!; [JsonPropertyName("Size")] - public long Size { get; set; } + public long Size { get; set; } = default!; [JsonPropertyName("GraphDriver")] - public DriverData GraphDriver { get; set; } + public DriverData? GraphDriver { get; set; } [JsonPropertyName("RootFS")] - public RootFS RootFS { get; set; } + public RootFS RootFS { get; set; } = default!; [JsonPropertyName("Metadata")] - public Metadata Metadata { get; set; } + public Metadata Metadata { get; set; } = default!; [JsonPropertyName("Descriptor")] - public Descriptor Descriptor { get; set; } + public Descriptor? Descriptor { get; set; } [JsonPropertyName("Manifests")] - public IList Manifests { get; set; } + public IList Manifests { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImageLoadParameters.Generated.cs b/src/Docker.DotNet/Models/ImageLoadParameters.Generated.cs index 9980d33b..4b13705a 100644 --- a/src/Docker.DotNet/Models/ImageLoadParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ImageLoadParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImageLoadParameters // (main.ImageLoadParameters) { [QueryStringParameter("quiet", true, typeof(BoolQueryStringConverter))] - public bool Quiet { get; set; } + public bool Quiet { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImageOptions.Generated.cs b/src/Docker.DotNet/Models/ImageOptions.Generated.cs index df9dc292..ff4f2178 100644 --- a/src/Docker.DotNet/Models/ImageOptions.Generated.cs +++ b/src/Docker.DotNet/Models/ImageOptions.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImageOptions // (mount.ImageOptions) { [JsonPropertyName("Subpath")] - public string Subpath { get; set; } + public string Subpath { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImageProperties.Generated.cs b/src/Docker.DotNet/Models/ImageProperties.Generated.cs index da4711dd..dc27d5f5 100644 --- a/src/Docker.DotNet/Models/ImageProperties.Generated.cs +++ b/src/Docker.DotNet/Models/ImageProperties.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImageProperties // (image.ImageProperties) { [JsonPropertyName("Platform")] - public Platform Platform { get; set; } + public Platform Platform { get; set; } = default!; [JsonPropertyName("Size")] - public ImagePropertiesSize Size { get; set; } + public ImagePropertiesSize Size { get; set; } = default!; [JsonPropertyName("Containers")] - public IList Containers { get; set; } + public IList Containers { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImagePropertiesSize.Generated.cs b/src/Docker.DotNet/Models/ImagePropertiesSize.Generated.cs index d903dc29..d09293bb 100644 --- a/src/Docker.DotNet/Models/ImagePropertiesSize.Generated.cs +++ b/src/Docker.DotNet/Models/ImagePropertiesSize.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImagePropertiesSize // (image.ImageProperties.Size) { [JsonPropertyName("Unpacked")] - public long Unpacked { get; set; } + public long Unpacked { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImagePushParameters.Generated.cs b/src/Docker.DotNet/Models/ImagePushParameters.Generated.cs index ac465197..37b0aa53 100644 --- a/src/Docker.DotNet/Models/ImagePushParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ImagePushParameters.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImagePushParameters // (main.ImagePushParameters) { [QueryStringParameter("tag", false)] - public string Tag { get; set; } + public string? Tag { get; set; } [QueryStringParameter("platform", false)] - public string Platform { get; set; } + public string? Platform { get; set; } [JsonPropertyName("RegistryAuth")] - public AuthConfig RegistryAuth { get; set; } + public AuthConfig RegistryAuth { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImageSearchResponse.Generated.cs b/src/Docker.DotNet/Models/ImageSearchResponse.Generated.cs index c3218ae9..e7411d50 100644 --- a/src/Docker.DotNet/Models/ImageSearchResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ImageSearchResponse.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImageSearchResponse // (registry.SearchResult) { [JsonPropertyName("star_count")] - public long StarCount { get; set; } + public long StarCount { get; set; } = default!; [JsonPropertyName("is_official")] - public bool IsOfficial { get; set; } + public bool IsOfficial { get; set; } = default!; [JsonPropertyName("name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("is_automated")] - public bool IsAutomated { get; set; } + public bool IsAutomated { get; set; } = default!; [JsonPropertyName("description")] - public string Description { get; set; } + public string Description { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImageTagParameters.Generated.cs b/src/Docker.DotNet/Models/ImageTagParameters.Generated.cs index 62dd7dec..b8478274 100644 --- a/src/Docker.DotNet/Models/ImageTagParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ImageTagParameters.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImageTagParameters // (main.ImageTagParameters) { [QueryStringParameter("repo", false)] - public string RepositoryName { get; set; } + public string? RepositoryName { get; set; } [QueryStringParameter("tag", false)] - public string Tag { get; set; } + public string? Tag { get; set; } } } diff --git a/src/Docker.DotNet/Models/ImagesCreateParameters.Generated.cs b/src/Docker.DotNet/Models/ImagesCreateParameters.Generated.cs index deae2011..03931b53 100644 --- a/src/Docker.DotNet/Models/ImagesCreateParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ImagesCreateParameters.Generated.cs @@ -1,29 +1,30 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImagesCreateParameters // (main.ImagesCreateParameters) { [QueryStringParameter("fromImage", false)] - public string FromImage { get; set; } + public string? FromImage { get; set; } [QueryStringParameter("fromSrc", false)] - public string FromSrc { get; set; } + public string? FromSrc { get; set; } [QueryStringParameter("repo", false)] - public string Repo { get; set; } + public string? Repo { get; set; } [QueryStringParameter("tag", false)] - public string Tag { get; set; } + public string? Tag { get; set; } [QueryStringParameter("message", false)] - public string Message { get; set; } + public string? Message { get; set; } [QueryStringParameter("changes", false, typeof(EnumerableQueryStringConverter))] - public IList Changes { get; set; } + public IList? Changes { get; set; } [QueryStringParameter("platform", false)] - public string Platform { get; set; } + public string? Platform { get; set; } [JsonPropertyName("RegistryAuth")] - public AuthConfig RegistryAuth { get; set; } + public AuthConfig RegistryAuth { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImagesListParameters.Generated.cs b/src/Docker.DotNet/Models/ImagesListParameters.Generated.cs index ad961335..c1e26dec 100644 --- a/src/Docker.DotNet/Models/ImagesListParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ImagesListParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImagesListParameters // (main.ImagesListParameters) @@ -6,7 +7,7 @@ public class ImagesListParameters // (main.ImagesListParameters) public bool? All { get; set; } [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } [QueryStringParameter("shared-size", false, typeof(BoolQueryStringConverter))] public bool? SharedSize { get; set; } diff --git a/src/Docker.DotNet/Models/ImagesListResponse.Generated.cs b/src/Docker.DotNet/Models/ImagesListResponse.Generated.cs index 6d46bacf..2752827b 100644 --- a/src/Docker.DotNet/Models/ImagesListResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ImagesListResponse.Generated.cs @@ -1,38 +1,39 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImagesListResponse // (image.Summary) { [JsonPropertyName("Containers")] - public long Containers { get; set; } + public long Containers { get; set; } = default!; [JsonPropertyName("Created")] - public DateTime Created { get; set; } + public DateTime Created { get; set; } = default!; [JsonPropertyName("Id")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("ParentId")] - public string ParentID { get; set; } + public string ParentID { get; set; } = default!; [JsonPropertyName("Descriptor")] - public Descriptor Descriptor { get; set; } + public Descriptor? Descriptor { get; set; } [JsonPropertyName("Manifests")] - public IList Manifests { get; set; } + public IList Manifests { get; set; } = default!; [JsonPropertyName("RepoDigests")] - public IList RepoDigests { get; set; } + public IList RepoDigests { get; set; } = default!; [JsonPropertyName("RepoTags")] - public IList RepoTags { get; set; } + public IList RepoTags { get; set; } = default!; [JsonPropertyName("SharedSize")] - public long SharedSize { get; set; } + public long SharedSize { get; set; } = default!; [JsonPropertyName("Size")] - public long Size { get; set; } + public long Size { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImagesLoadResponse.Generated.cs b/src/Docker.DotNet/Models/ImagesLoadResponse.Generated.cs index 9f00346a..40e2569d 100644 --- a/src/Docker.DotNet/Models/ImagesLoadResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ImagesLoadResponse.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImagesLoadResponse // (main.ImageLoadResult) diff --git a/src/Docker.DotNet/Models/ImagesPruneParameters.Generated.cs b/src/Docker.DotNet/Models/ImagesPruneParameters.Generated.cs index 3efc71b3..e457204b 100644 --- a/src/Docker.DotNet/Models/ImagesPruneParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ImagesPruneParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImagesPruneParameters // (main.ImagesPruneParameters) { [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } } } diff --git a/src/Docker.DotNet/Models/ImagesPruneResponse.Generated.cs b/src/Docker.DotNet/Models/ImagesPruneResponse.Generated.cs index cd514162..dd2047c6 100644 --- a/src/Docker.DotNet/Models/ImagesPruneResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ImagesPruneResponse.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImagesPruneResponse // (image.PruneReport) { [JsonPropertyName("ImagesDeleted")] - public IList ImagesDeleted { get; set; } + public IList ImagesDeleted { get; set; } = default!; [JsonPropertyName("SpaceReclaimed")] - public ulong SpaceReclaimed { get; set; } + public ulong SpaceReclaimed { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ImagesSearchParameters.Generated.cs b/src/Docker.DotNet/Models/ImagesSearchParameters.Generated.cs index 3ad05a36..4c6ff82b 100644 --- a/src/Docker.DotNet/Models/ImagesSearchParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ImagesSearchParameters.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class ImagesSearchParameters // (main.ImagesSearchParameters) { [QueryStringParameter("term", false)] - public string Term { get; set; } + public string? Term { get; set; } [QueryStringParameter("limit", false)] public long? Limit { get; set; } [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } } } diff --git a/src/Docker.DotNet/Models/IndexInfo.Generated.cs b/src/Docker.DotNet/Models/IndexInfo.Generated.cs index 49bd518e..fd413e24 100644 --- a/src/Docker.DotNet/Models/IndexInfo.Generated.cs +++ b/src/Docker.DotNet/Models/IndexInfo.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class IndexInfo // (registry.IndexInfo) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Mirrors")] - public IList Mirrors { get; set; } + public IList Mirrors { get; set; } = default!; [JsonPropertyName("Secure")] - public bool Secure { get; set; } + public bool Secure { get; set; } = default!; [JsonPropertyName("Official")] - public bool Official { get; set; } + public bool Official { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Info.Generated.cs b/src/Docker.DotNet/Models/Info.Generated.cs index 1d246618..efc1951f 100644 --- a/src/Docker.DotNet/Models/Info.Generated.cs +++ b/src/Docker.DotNet/Models/Info.Generated.cs @@ -1,35 +1,36 @@ +#nullable enable namespace Docker.DotNet.Models { public class Info // (swarm.Info) { [JsonPropertyName("NodeID")] - public string NodeID { get; set; } + public string NodeID { get; set; } = default!; [JsonPropertyName("NodeAddr")] - public string NodeAddr { get; set; } + public string NodeAddr { get; set; } = default!; [JsonPropertyName("LocalNodeState")] - public string LocalNodeState { get; set; } + public string LocalNodeState { get; set; } = default!; [JsonPropertyName("ControlAvailable")] - public bool ControlAvailable { get; set; } + public bool ControlAvailable { get; set; } = default!; [JsonPropertyName("Error")] - public string Error { get; set; } + public string Error { get; set; } = default!; [JsonPropertyName("RemoteManagers")] - public IList RemoteManagers { get; set; } + public IList RemoteManagers { get; set; } = default!; [JsonPropertyName("Nodes")] - public long Nodes { get; set; } + public long Nodes { get; set; } = default!; [JsonPropertyName("Managers")] - public long Managers { get; set; } + public long Managers { get; set; } = default!; [JsonPropertyName("Cluster")] - public ClusterInfo Cluster { get; set; } + public ClusterInfo? Cluster { get; set; } [JsonPropertyName("Warnings")] - public IList Warnings { get; set; } + public IList Warnings { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/JSONError.Generated.cs b/src/Docker.DotNet/Models/JSONError.Generated.cs index 1f0d4ef4..adc4e4e0 100644 --- a/src/Docker.DotNet/Models/JSONError.Generated.cs +++ b/src/Docker.DotNet/Models/JSONError.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class JSONError // (jsonstream.Error) { [JsonPropertyName("code")] - public long Code { get; set; } + public long Code { get; set; } = default!; [JsonPropertyName("message")] - public string Message { get; set; } + public string Message { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/JSONMessage.Generated.cs b/src/Docker.DotNet/Models/JSONMessage.Generated.cs index 24e4f12f..2d3ce706 100644 --- a/src/Docker.DotNet/Models/JSONMessage.Generated.cs +++ b/src/Docker.DotNet/Models/JSONMessage.Generated.cs @@ -1,23 +1,24 @@ +#nullable enable namespace Docker.DotNet.Models { public class JSONMessage // (jsonstream.Message) { [JsonPropertyName("stream")] - public string Stream { get; set; } + public string Stream { get; set; } = default!; [JsonPropertyName("status")] - public string Status { get; set; } + public string Status { get; set; } = default!; [JsonPropertyName("progressDetail")] - public JSONProgress Progress { get; set; } + public JSONProgress? Progress { get; set; } [JsonPropertyName("id")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("errorDetail")] - public JSONError Error { get; set; } + public JSONError? Error { get; set; } [JsonPropertyName("aux")] - public ObjectExtensionData Aux { get; set; } + public ObjectExtensionData? Aux { get; set; } } } diff --git a/src/Docker.DotNet/Models/JSONProgress.Generated.cs b/src/Docker.DotNet/Models/JSONProgress.Generated.cs index 9e7a8c16..843d83fa 100644 --- a/src/Docker.DotNet/Models/JSONProgress.Generated.cs +++ b/src/Docker.DotNet/Models/JSONProgress.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class JSONProgress // (jsonstream.Progress) { [JsonPropertyName("current")] - public long Current { get; set; } + public long Current { get; set; } = default!; [JsonPropertyName("total")] - public long Total { get; set; } + public long Total { get; set; } = default!; [JsonPropertyName("start")] - public long Start { get; set; } + public long Start { get; set; } = default!; [JsonPropertyName("hidecounts")] - public bool HideCounts { get; set; } + public bool HideCounts { get; set; } = default!; [JsonPropertyName("units")] - public string Units { get; set; } + public string Units { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/JobStatus.Generated.cs b/src/Docker.DotNet/Models/JobStatus.Generated.cs index b9a16578..691f0b0b 100644 --- a/src/Docker.DotNet/Models/JobStatus.Generated.cs +++ b/src/Docker.DotNet/Models/JobStatus.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class JobStatus // (swarm.JobStatus) { [JsonPropertyName("JobIteration")] - public Version JobIteration { get; set; } + public Version JobIteration { get; set; } = default!; [JsonPropertyName("LastExecution")] - public DateTime LastExecution { get; set; } + public DateTime LastExecution { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/JoinTokens.Generated.cs b/src/Docker.DotNet/Models/JoinTokens.Generated.cs index 03f0f57a..b0194a8a 100644 --- a/src/Docker.DotNet/Models/JoinTokens.Generated.cs +++ b/src/Docker.DotNet/Models/JoinTokens.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class JoinTokens // (swarm.JoinTokens) { [JsonPropertyName("Worker")] - public string Worker { get; set; } + public string Worker { get; set; } = default!; [JsonPropertyName("Manager")] - public string Manager { get; set; } + public string Manager { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/LogConfig.Generated.cs b/src/Docker.DotNet/Models/LogConfig.Generated.cs index f1de7902..52410b2a 100644 --- a/src/Docker.DotNet/Models/LogConfig.Generated.cs +++ b/src/Docker.DotNet/Models/LogConfig.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class LogConfig // (container.LogConfig) { [JsonPropertyName("Type")] - public string Type { get; set; } + public string Type { get; set; } = default!; [JsonPropertyName("Config")] - public IDictionary Config { get; set; } + public IDictionary Config { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ManagerStatus.Generated.cs b/src/Docker.DotNet/Models/ManagerStatus.Generated.cs index d079b95b..7dc45f9b 100644 --- a/src/Docker.DotNet/Models/ManagerStatus.Generated.cs +++ b/src/Docker.DotNet/Models/ManagerStatus.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class ManagerStatus // (swarm.ManagerStatus) { [JsonPropertyName("Leader")] - public bool Leader { get; set; } + public bool Leader { get; set; } = default!; [JsonPropertyName("Reachability")] - public string Reachability { get; set; } + public string Reachability { get; set; } = default!; [JsonPropertyName("Addr")] - public string Addr { get; set; } + public string Addr { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ManifestSummary.Generated.cs b/src/Docker.DotNet/Models/ManifestSummary.Generated.cs index a9087071..57761b48 100644 --- a/src/Docker.DotNet/Models/ManifestSummary.Generated.cs +++ b/src/Docker.DotNet/Models/ManifestSummary.Generated.cs @@ -1,26 +1,27 @@ +#nullable enable namespace Docker.DotNet.Models { public class ManifestSummary // (image.ManifestSummary) { [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Descriptor")] - public Descriptor Descriptor { get; set; } + public Descriptor Descriptor { get; set; } = default!; [JsonPropertyName("Available")] - public bool Available { get; set; } + public bool Available { get; set; } = default!; [JsonPropertyName("Size")] - public ManifestSummarySize Size { get; set; } + public ManifestSummarySize Size { get; set; } = default!; [JsonPropertyName("Kind")] - public string Kind { get; set; } + public string Kind { get; set; } = default!; [JsonPropertyName("ImageData")] - public ImageProperties ImageData { get; set; } + public ImageProperties? ImageData { get; set; } [JsonPropertyName("AttestationData")] - public AttestationProperties AttestationData { get; set; } + public AttestationProperties? AttestationData { get; set; } } } diff --git a/src/Docker.DotNet/Models/ManifestSummarySize.Generated.cs b/src/Docker.DotNet/Models/ManifestSummarySize.Generated.cs index 3709f466..980bfece 100644 --- a/src/Docker.DotNet/Models/ManifestSummarySize.Generated.cs +++ b/src/Docker.DotNet/Models/ManifestSummarySize.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ManifestSummarySize // (image.ManifestSummary.Size) { [JsonPropertyName("Content")] - public long Content { get; set; } + public long Content { get; set; } = default!; [JsonPropertyName("Total")] - public long Total { get; set; } + public long Total { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/MemoryStats.Generated.cs b/src/Docker.DotNet/Models/MemoryStats.Generated.cs index 052ec4a2..9e9e7f24 100644 --- a/src/Docker.DotNet/Models/MemoryStats.Generated.cs +++ b/src/Docker.DotNet/Models/MemoryStats.Generated.cs @@ -1,29 +1,30 @@ +#nullable enable namespace Docker.DotNet.Models { public class MemoryStats // (container.MemoryStats) { [JsonPropertyName("usage")] - public ulong Usage { get; set; } + public ulong Usage { get; set; } = default!; [JsonPropertyName("max_usage")] - public ulong MaxUsage { get; set; } + public ulong MaxUsage { get; set; } = default!; [JsonPropertyName("stats")] - public IDictionary Stats { get; set; } + public IDictionary Stats { get; set; } = default!; [JsonPropertyName("failcnt")] - public ulong Failcnt { get; set; } + public ulong Failcnt { get; set; } = default!; [JsonPropertyName("limit")] - public ulong Limit { get; set; } + public ulong Limit { get; set; } = default!; [JsonPropertyName("commitbytes")] - public ulong Commit { get; set; } + public ulong Commit { get; set; } = default!; [JsonPropertyName("commitpeakbytes")] - public ulong CommitPeak { get; set; } + public ulong CommitPeak { get; set; } = default!; [JsonPropertyName("privateworkingset")] - public ulong PrivateWorkingSet { get; set; } + public ulong PrivateWorkingSet { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Message.Generated.cs b/src/Docker.DotNet/Models/Message.Generated.cs index df0fd4a4..9035e486 100644 --- a/src/Docker.DotNet/Models/Message.Generated.cs +++ b/src/Docker.DotNet/Models/Message.Generated.cs @@ -1,23 +1,24 @@ +#nullable enable namespace Docker.DotNet.Models { public class Message // (events.Message) { [JsonPropertyName("Type")] - public string Type { get; set; } + public string Type { get; set; } = default!; [JsonPropertyName("Action")] - public string Action { get; set; } + public string Action { get; set; } = default!; [JsonPropertyName("Actor")] - public Actor Actor { get; set; } + public Actor Actor { get; set; } = default!; [JsonPropertyName("scope")] - public string Scope { get; set; } + public string Scope { get; set; } = default!; [JsonPropertyName("time")] - public long Time { get; set; } + public long Time { get; set; } = default!; [JsonPropertyName("timeNano")] - public long TimeNano { get; set; } + public long TimeNano { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Meta.Generated.cs b/src/Docker.DotNet/Models/Meta.Generated.cs index d93001e7..b160e3a7 100644 --- a/src/Docker.DotNet/Models/Meta.Generated.cs +++ b/src/Docker.DotNet/Models/Meta.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class Meta // (swarm.Meta) { [JsonPropertyName("Version")] - public Version Version { get; set; } + public Version Version { get; set; } = default!; [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } + public DateTime CreatedAt { get; set; } = default!; [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } + public DateTime UpdatedAt { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Metadata.Generated.cs b/src/Docker.DotNet/Models/Metadata.Generated.cs index 1594ec66..a3de565c 100644 --- a/src/Docker.DotNet/Models/Metadata.Generated.cs +++ b/src/Docker.DotNet/Models/Metadata.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class Metadata // (image.Metadata) { [JsonPropertyName("LastTagTime")] - public DateTime LastTagTime { get; set; } + public DateTime LastTagTime { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Mount.Generated.cs b/src/Docker.DotNet/Models/Mount.Generated.cs index 828c39f3..eb8eb162 100644 --- a/src/Docker.DotNet/Models/Mount.Generated.cs +++ b/src/Docker.DotNet/Models/Mount.Generated.cs @@ -1,35 +1,36 @@ +#nullable enable namespace Docker.DotNet.Models { public class Mount // (mount.Mount) { [JsonPropertyName("Type")] - public string Type { get; set; } + public string Type { get; set; } = default!; [JsonPropertyName("Source")] - public string Source { get; set; } + public string Source { get; set; } = default!; [JsonPropertyName("Target")] - public string Target { get; set; } + public string Target { get; set; } = default!; [JsonPropertyName("ReadOnly")] - public bool ReadOnly { get; set; } + public bool ReadOnly { get; set; } = default!; [JsonPropertyName("Consistency")] - public string Consistency { get; set; } + public string Consistency { get; set; } = default!; [JsonPropertyName("BindOptions")] - public BindOptions BindOptions { get; set; } + public BindOptions? BindOptions { get; set; } [JsonPropertyName("VolumeOptions")] - public VolumeOptions VolumeOptions { get; set; } + public VolumeOptions? VolumeOptions { get; set; } [JsonPropertyName("ImageOptions")] - public ImageOptions ImageOptions { get; set; } + public ImageOptions? ImageOptions { get; set; } [JsonPropertyName("TmpfsOptions")] - public TmpfsOptions TmpfsOptions { get; set; } + public TmpfsOptions? TmpfsOptions { get; set; } [JsonPropertyName("ClusterOptions")] - public ClusterOptions ClusterOptions { get; set; } + public ClusterOptions? ClusterOptions { get; set; } } } diff --git a/src/Docker.DotNet/Models/MountPoint.Generated.cs b/src/Docker.DotNet/Models/MountPoint.Generated.cs index 692a9a38..1b429043 100644 --- a/src/Docker.DotNet/Models/MountPoint.Generated.cs +++ b/src/Docker.DotNet/Models/MountPoint.Generated.cs @@ -1,29 +1,30 @@ +#nullable enable namespace Docker.DotNet.Models { public class MountPoint // (container.MountPoint) { [JsonPropertyName("Type")] - public string Type { get; set; } + public string Type { get; set; } = default!; [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Source")] - public string Source { get; set; } + public string Source { get; set; } = default!; [JsonPropertyName("Destination")] - public string Destination { get; set; } + public string Destination { get; set; } = default!; [JsonPropertyName("Driver")] - public string Driver { get; set; } + public string Driver { get; set; } = default!; [JsonPropertyName("Mode")] - public string Mode { get; set; } + public string Mode { get; set; } = default!; [JsonPropertyName("RW")] - public bool RW { get; set; } + public bool RW { get; set; } = default!; [JsonPropertyName("Propagation")] - public string Propagation { get; set; } + public string Propagation { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NamedGenericResource.Generated.cs b/src/Docker.DotNet/Models/NamedGenericResource.Generated.cs index 737b5a21..b9dd6523 100644 --- a/src/Docker.DotNet/Models/NamedGenericResource.Generated.cs +++ b/src/Docker.DotNet/Models/NamedGenericResource.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class NamedGenericResource // (swarm.NamedGenericResource) { [JsonPropertyName("Kind")] - public string Kind { get; set; } + public string Kind { get; set; } = default!; [JsonPropertyName("Value")] - public string Value { get; set; } + public string Value { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Network.Generated.cs b/src/Docker.DotNet/Models/Network.Generated.cs index 03642177..01d08901 100644 --- a/src/Docker.DotNet/Models/Network.Generated.cs +++ b/src/Docker.DotNet/Models/Network.Generated.cs @@ -1,53 +1,54 @@ +#nullable enable namespace Docker.DotNet.Models { public class Network // (network.Network) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Id")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Created")] - public DateTime Created { get; set; } + public DateTime Created { get; set; } = default!; [JsonPropertyName("Scope")] - public string Scope { get; set; } + public string Scope { get; set; } = default!; [JsonPropertyName("Driver")] - public string Driver { get; set; } + public string Driver { get; set; } = default!; [JsonPropertyName("EnableIPv4")] - public bool EnableIPv4 { get; set; } + public bool EnableIPv4 { get; set; } = default!; [JsonPropertyName("EnableIPv6")] - public bool EnableIPv6 { get; set; } + public bool EnableIPv6 { get; set; } = default!; [JsonPropertyName("IPAM")] - public IPAM IPAM { get; set; } + public IPAM IPAM { get; set; } = default!; [JsonPropertyName("Internal")] - public bool Internal { get; set; } + public bool Internal { get; set; } = default!; [JsonPropertyName("Attachable")] - public bool Attachable { get; set; } + public bool Attachable { get; set; } = default!; [JsonPropertyName("Ingress")] - public bool Ingress { get; set; } + public bool Ingress { get; set; } = default!; [JsonPropertyName("ConfigFrom")] - public ConfigReference ConfigFrom { get; set; } + public ConfigReference ConfigFrom { get; set; } = default!; [JsonPropertyName("ConfigOnly")] - public bool ConfigOnly { get; set; } + public bool ConfigOnly { get; set; } = default!; [JsonPropertyName("Options")] - public IDictionary Options { get; set; } + public IDictionary Options { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Peers")] - public IList Peers { get; set; } + public IList Peers { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworkAddressPool.Generated.cs b/src/Docker.DotNet/Models/NetworkAddressPool.Generated.cs index 9457e25f..41718448 100644 --- a/src/Docker.DotNet/Models/NetworkAddressPool.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkAddressPool.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkAddressPool // (system.NetworkAddressPool) { [JsonPropertyName("Base")] - public string Base { get; set; } + public string Base { get; set; } = default!; [JsonPropertyName("Size")] - public long Size { get; set; } + public long Size { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworkAttachment.Generated.cs b/src/Docker.DotNet/Models/NetworkAttachment.Generated.cs index c44e7ef6..4e9902d3 100644 --- a/src/Docker.DotNet/Models/NetworkAttachment.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkAttachment.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkAttachment // (swarm.NetworkAttachment) { [JsonPropertyName("Network")] - public SwarmNetwork Network { get; set; } + public SwarmNetwork Network { get; set; } = default!; [JsonPropertyName("Addresses")] - public IList Addresses { get; set; } + public IList Addresses { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworkAttachmentConfig.Generated.cs b/src/Docker.DotNet/Models/NetworkAttachmentConfig.Generated.cs index 75ea9ec1..0c9fefea 100644 --- a/src/Docker.DotNet/Models/NetworkAttachmentConfig.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkAttachmentConfig.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkAttachmentConfig // (swarm.NetworkAttachmentConfig) { [JsonPropertyName("Target")] - public string Target { get; set; } + public string Target { get; set; } = default!; [JsonPropertyName("Aliases")] - public IList Aliases { get; set; } + public IList Aliases { get; set; } = default!; [JsonPropertyName("DriverOpts")] - public IDictionary DriverOpts { get; set; } + public IDictionary DriverOpts { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworkAttachmentSpec.Generated.cs b/src/Docker.DotNet/Models/NetworkAttachmentSpec.Generated.cs index bba6f1b5..7bdc9382 100644 --- a/src/Docker.DotNet/Models/NetworkAttachmentSpec.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkAttachmentSpec.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkAttachmentSpec // (swarm.NetworkAttachmentSpec) { [JsonPropertyName("ContainerID")] - public string ContainerID { get; set; } + public string ContainerID { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworkConnectParameters.Generated.cs b/src/Docker.DotNet/Models/NetworkConnectParameters.Generated.cs index ab73e765..5f8768e2 100644 --- a/src/Docker.DotNet/Models/NetworkConnectParameters.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkConnectParameters.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkConnectParameters // (client.NetworkConnectOptions) { [JsonPropertyName("Container")] - public string Container { get; set; } + public string Container { get; set; } = default!; [JsonPropertyName("EndpointConfig")] - public EndpointSettings EndpointConfig { get; set; } + public EndpointSettings? EndpointConfig { get; set; } } } diff --git a/src/Docker.DotNet/Models/NetworkDisconnectParameters.Generated.cs b/src/Docker.DotNet/Models/NetworkDisconnectParameters.Generated.cs index 8240aaae..d7d084ba 100644 --- a/src/Docker.DotNet/Models/NetworkDisconnectParameters.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkDisconnectParameters.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkDisconnectParameters // (client.NetworkDisconnectOptions) { [JsonPropertyName("Container")] - public string Container { get; set; } + public string Container { get; set; } = default!; [JsonPropertyName("Force")] - public bool Force { get; set; } + public bool Force { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworkResponse.Generated.cs b/src/Docker.DotNet/Models/NetworkResponse.Generated.cs index ba7cd21b..d1743096 100644 --- a/src/Docker.DotNet/Models/NetworkResponse.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkResponse.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkResponse // (network.Inspect) @@ -30,60 +31,60 @@ public NetworkResponse(Network Network) } [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Id")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Created")] - public DateTime Created { get; set; } + public DateTime Created { get; set; } = default!; [JsonPropertyName("Scope")] - public string Scope { get; set; } + public string Scope { get; set; } = default!; [JsonPropertyName("Driver")] - public string Driver { get; set; } + public string Driver { get; set; } = default!; [JsonPropertyName("EnableIPv4")] - public bool EnableIPv4 { get; set; } + public bool EnableIPv4 { get; set; } = default!; [JsonPropertyName("EnableIPv6")] - public bool EnableIPv6 { get; set; } + public bool EnableIPv6 { get; set; } = default!; [JsonPropertyName("IPAM")] - public IPAM IPAM { get; set; } + public IPAM IPAM { get; set; } = default!; [JsonPropertyName("Internal")] - public bool Internal { get; set; } + public bool Internal { get; set; } = default!; [JsonPropertyName("Attachable")] - public bool Attachable { get; set; } + public bool Attachable { get; set; } = default!; [JsonPropertyName("Ingress")] - public bool Ingress { get; set; } + public bool Ingress { get; set; } = default!; [JsonPropertyName("ConfigFrom")] - public ConfigReference ConfigFrom { get; set; } + public ConfigReference ConfigFrom { get; set; } = default!; [JsonPropertyName("ConfigOnly")] - public bool ConfigOnly { get; set; } + public bool ConfigOnly { get; set; } = default!; [JsonPropertyName("Options")] - public IDictionary Options { get; set; } + public IDictionary Options { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Peers")] - public IList Peers { get; set; } + public IList Peers { get; set; } = default!; [JsonPropertyName("Containers")] - public IDictionary Containers { get; set; } + public IDictionary Containers { get; set; } = default!; [JsonPropertyName("Services")] - public IDictionary Services { get; set; } + public IDictionary Services { get; set; } = default!; [JsonPropertyName("Status")] - public Status Status { get; set; } + public Status? Status { get; set; } } } diff --git a/src/Docker.DotNet/Models/NetworkSettings.Generated.cs b/src/Docker.DotNet/Models/NetworkSettings.Generated.cs index c11ef06a..09f1be22 100644 --- a/src/Docker.DotNet/Models/NetworkSettings.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkSettings.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkSettings // (container.NetworkSettings) { [JsonPropertyName("SandboxID")] - public string SandboxID { get; set; } + public string SandboxID { get; set; } = default!; [JsonPropertyName("SandboxKey")] - public string SandboxKey { get; set; } + public string SandboxKey { get; set; } = default!; [JsonPropertyName("Ports")] - public IDictionary> Ports { get; set; } + public IDictionary> Ports { get; set; } = default!; [JsonPropertyName("Networks")] - public IDictionary Networks { get; set; } + public IDictionary Networks { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworkSettingsSummary.Generated.cs b/src/Docker.DotNet/Models/NetworkSettingsSummary.Generated.cs index 90ef35dc..54473331 100644 --- a/src/Docker.DotNet/Models/NetworkSettingsSummary.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkSettingsSummary.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkSettingsSummary // (container.NetworkSettingsSummary) { [JsonPropertyName("Networks")] - public IDictionary Networks { get; set; } + public IDictionary Networks { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworkSpec.Generated.cs b/src/Docker.DotNet/Models/NetworkSpec.Generated.cs index fa6befe7..0770fa7d 100644 --- a/src/Docker.DotNet/Models/NetworkSpec.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkSpec.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkSpec // (swarm.NetworkSpec) @@ -16,33 +17,33 @@ public NetworkSpec(Annotations Annotations) } [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("DriverConfiguration")] - public SwarmDriver DriverConfiguration { get; set; } + public SwarmDriver? DriverConfiguration { get; set; } [JsonPropertyName("IPv6Enabled")] - public bool IPv6Enabled { get; set; } + public bool IPv6Enabled { get; set; } = default!; [JsonPropertyName("Internal")] - public bool Internal { get; set; } + public bool Internal { get; set; } = default!; [JsonPropertyName("Attachable")] - public bool Attachable { get; set; } + public bool Attachable { get; set; } = default!; [JsonPropertyName("Ingress")] - public bool Ingress { get; set; } + public bool Ingress { get; set; } = default!; [JsonPropertyName("IPAMOptions")] - public IPAMOptions IPAMOptions { get; set; } + public IPAMOptions? IPAMOptions { get; set; } [JsonPropertyName("ConfigFrom")] - public ConfigReference ConfigFrom { get; set; } + public ConfigReference? ConfigFrom { get; set; } [JsonPropertyName("Scope")] - public string Scope { get; set; } + public string Scope { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworkStats.Generated.cs b/src/Docker.DotNet/Models/NetworkStats.Generated.cs index 123ff017..476f8dd8 100644 --- a/src/Docker.DotNet/Models/NetworkStats.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkStats.Generated.cs @@ -1,35 +1,36 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkStats // (container.NetworkStats) { [JsonPropertyName("rx_bytes")] - public ulong RxBytes { get; set; } + public ulong RxBytes { get; set; } = default!; [JsonPropertyName("rx_packets")] - public ulong RxPackets { get; set; } + public ulong RxPackets { get; set; } = default!; [JsonPropertyName("rx_errors")] - public ulong RxErrors { get; set; } + public ulong RxErrors { get; set; } = default!; [JsonPropertyName("rx_dropped")] - public ulong RxDropped { get; set; } + public ulong RxDropped { get; set; } = default!; [JsonPropertyName("tx_bytes")] - public ulong TxBytes { get; set; } + public ulong TxBytes { get; set; } = default!; [JsonPropertyName("tx_packets")] - public ulong TxPackets { get; set; } + public ulong TxPackets { get; set; } = default!; [JsonPropertyName("tx_errors")] - public ulong TxErrors { get; set; } + public ulong TxErrors { get; set; } = default!; [JsonPropertyName("tx_dropped")] - public ulong TxDropped { get; set; } + public ulong TxDropped { get; set; } = default!; [JsonPropertyName("endpoint_id")] - public string EndpointID { get; set; } + public string EndpointID { get; set; } = default!; [JsonPropertyName("instance_id")] - public string InstanceID { get; set; } + public string InstanceID { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworkTask.Generated.cs b/src/Docker.DotNet/Models/NetworkTask.Generated.cs index 2de70fdc..fef8a4e6 100644 --- a/src/Docker.DotNet/Models/NetworkTask.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkTask.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkTask // (network.Task) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("EndpointID")] - public string EndpointID { get; set; } + public string EndpointID { get; set; } = default!; [JsonPropertyName("EndpointIP")] - public string EndpointIP { get; set; } + public string EndpointIP { get; set; } = default!; [JsonPropertyName("Info")] - public IDictionary Info { get; set; } + public IDictionary Info { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworkingConfig.Generated.cs b/src/Docker.DotNet/Models/NetworkingConfig.Generated.cs index 6d2e4fee..c1185520 100644 --- a/src/Docker.DotNet/Models/NetworkingConfig.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkingConfig.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworkingConfig // (network.NetworkingConfig) { [JsonPropertyName("EndpointsConfig")] - public IDictionary EndpointsConfig { get; set; } + public IDictionary EndpointsConfig { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworksCreateParameters.Generated.cs b/src/Docker.DotNet/Models/NetworksCreateParameters.Generated.cs index 1f105b89..be909822 100644 --- a/src/Docker.DotNet/Models/NetworksCreateParameters.Generated.cs +++ b/src/Docker.DotNet/Models/NetworksCreateParameters.Generated.cs @@ -1,15 +1,16 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworksCreateParameters // (network.CreateRequest) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Driver")] - public string Driver { get; set; } + public string Driver { get; set; } = default!; [JsonPropertyName("Scope")] - public string Scope { get; set; } + public string Scope { get; set; } = default!; [JsonPropertyName("EnableIPv4")] public bool? EnableIPv4 { get; set; } @@ -18,27 +19,27 @@ public class NetworksCreateParameters // (network.CreateRequest) public bool? EnableIPv6 { get; set; } [JsonPropertyName("IPAM")] - public IPAM IPAM { get; set; } + public IPAM? IPAM { get; set; } [JsonPropertyName("Internal")] - public bool Internal { get; set; } + public bool Internal { get; set; } = default!; [JsonPropertyName("Attachable")] - public bool Attachable { get; set; } + public bool Attachable { get; set; } = default!; [JsonPropertyName("Ingress")] - public bool Ingress { get; set; } + public bool Ingress { get; set; } = default!; [JsonPropertyName("ConfigOnly")] - public bool ConfigOnly { get; set; } + public bool ConfigOnly { get; set; } = default!; [JsonPropertyName("ConfigFrom")] - public ConfigReference ConfigFrom { get; set; } + public ConfigReference? ConfigFrom { get; set; } [JsonPropertyName("Options")] - public IDictionary Options { get; set; } + public IDictionary Options { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworksCreateResponse.Generated.cs b/src/Docker.DotNet/Models/NetworksCreateResponse.Generated.cs index 6372a0dc..bd5c78c1 100644 --- a/src/Docker.DotNet/Models/NetworksCreateResponse.Generated.cs +++ b/src/Docker.DotNet/Models/NetworksCreateResponse.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworksCreateResponse // (network.CreateResponse) { [JsonPropertyName("Id")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Warning")] - public string Warning { get; set; } + public string Warning { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NetworksDeleteUnusedParameters.Generated.cs b/src/Docker.DotNet/Models/NetworksDeleteUnusedParameters.Generated.cs index a0b7980c..1788f844 100644 --- a/src/Docker.DotNet/Models/NetworksDeleteUnusedParameters.Generated.cs +++ b/src/Docker.DotNet/Models/NetworksDeleteUnusedParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworksDeleteUnusedParameters // (main.NetworksDeleteUnusedParameters) { [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } } } diff --git a/src/Docker.DotNet/Models/NetworksListParameters.Generated.cs b/src/Docker.DotNet/Models/NetworksListParameters.Generated.cs index 0b07412c..10e2deb0 100644 --- a/src/Docker.DotNet/Models/NetworksListParameters.Generated.cs +++ b/src/Docker.DotNet/Models/NetworksListParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworksListParameters // (main.NetworksListParameters) { [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } } } diff --git a/src/Docker.DotNet/Models/NetworksPruneResponse.Generated.cs b/src/Docker.DotNet/Models/NetworksPruneResponse.Generated.cs index 33db1b39..ffe5afcd 100644 --- a/src/Docker.DotNet/Models/NetworksPruneResponse.Generated.cs +++ b/src/Docker.DotNet/Models/NetworksPruneResponse.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class NetworksPruneResponse // (network.PruneReport) { [JsonPropertyName("NetworksDeleted")] - public IList NetworksDeleted { get; set; } + public IList NetworksDeleted { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NodeCSIInfo.Generated.cs b/src/Docker.DotNet/Models/NodeCSIInfo.Generated.cs index c0f92fb5..3114516c 100644 --- a/src/Docker.DotNet/Models/NodeCSIInfo.Generated.cs +++ b/src/Docker.DotNet/Models/NodeCSIInfo.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class NodeCSIInfo // (swarm.NodeCSIInfo) { [JsonPropertyName("PluginName")] - public string PluginName { get; set; } + public string PluginName { get; set; } = default!; [JsonPropertyName("NodeID")] - public string NodeID { get; set; } + public string NodeID { get; set; } = default!; [JsonPropertyName("MaxVolumesPerNode")] - public long MaxVolumesPerNode { get; set; } + public long MaxVolumesPerNode { get; set; } = default!; [JsonPropertyName("AccessibleTopology")] - public Topology AccessibleTopology { get; set; } + public Topology? AccessibleTopology { get; set; } } } diff --git a/src/Docker.DotNet/Models/NodeDescription.Generated.cs b/src/Docker.DotNet/Models/NodeDescription.Generated.cs index 712f5d48..483700a7 100644 --- a/src/Docker.DotNet/Models/NodeDescription.Generated.cs +++ b/src/Docker.DotNet/Models/NodeDescription.Generated.cs @@ -1,23 +1,24 @@ +#nullable enable namespace Docker.DotNet.Models { public class NodeDescription // (swarm.NodeDescription) { [JsonPropertyName("Hostname")] - public string Hostname { get; set; } + public string Hostname { get; set; } = default!; [JsonPropertyName("Platform")] - public SwarmPlatform Platform { get; set; } + public SwarmPlatform Platform { get; set; } = default!; [JsonPropertyName("Resources")] - public SwarmResources Resources { get; set; } + public SwarmResources Resources { get; set; } = default!; [JsonPropertyName("Engine")] - public EngineDescription Engine { get; set; } + public EngineDescription Engine { get; set; } = default!; [JsonPropertyName("TLSInfo")] - public TLSInfo TLSInfo { get; set; } + public TLSInfo TLSInfo { get; set; } = default!; [JsonPropertyName("CSIInfo")] - public IList CSIInfo { get; set; } + public IList CSIInfo { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NodeListResponse.Generated.cs b/src/Docker.DotNet/Models/NodeListResponse.Generated.cs index f98c4d3a..4d656a42 100644 --- a/src/Docker.DotNet/Models/NodeListResponse.Generated.cs +++ b/src/Docker.DotNet/Models/NodeListResponse.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class NodeListResponse // (swarm.Node) @@ -17,27 +18,27 @@ public NodeListResponse(Meta Meta) } [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } + public Version Version { get; set; } = default!; [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } + public DateTime CreatedAt { get; set; } = default!; [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } + public DateTime UpdatedAt { get; set; } = default!; [JsonPropertyName("Spec")] - public NodeUpdateParameters Spec { get; set; } + public NodeUpdateParameters Spec { get; set; } = default!; [JsonPropertyName("Description")] - public NodeDescription Description { get; set; } + public NodeDescription Description { get; set; } = default!; [JsonPropertyName("Status")] - public NodeStatus Status { get; set; } + public NodeStatus Status { get; set; } = default!; [JsonPropertyName("ManagerStatus")] - public ManagerStatus ManagerStatus { get; set; } + public ManagerStatus? ManagerStatus { get; set; } } } diff --git a/src/Docker.DotNet/Models/NodeRemoveParameters.Generated.cs b/src/Docker.DotNet/Models/NodeRemoveParameters.Generated.cs index 79b73f20..305699ef 100644 --- a/src/Docker.DotNet/Models/NodeRemoveParameters.Generated.cs +++ b/src/Docker.DotNet/Models/NodeRemoveParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class NodeRemoveParameters // (main.NodeRemoveParameters) diff --git a/src/Docker.DotNet/Models/NodeStatus.Generated.cs b/src/Docker.DotNet/Models/NodeStatus.Generated.cs index 47f4041b..421ab4a0 100644 --- a/src/Docker.DotNet/Models/NodeStatus.Generated.cs +++ b/src/Docker.DotNet/Models/NodeStatus.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class NodeStatus // (swarm.NodeStatus) { [JsonPropertyName("State")] - public string State { get; set; } + public string State { get; set; } = default!; [JsonPropertyName("Message")] - public string Message { get; set; } + public string Message { get; set; } = default!; [JsonPropertyName("Addr")] - public string Addr { get; set; } + public string Addr { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/NodeUpdateParameters.Generated.cs b/src/Docker.DotNet/Models/NodeUpdateParameters.Generated.cs index 4d3c58f8..557c63fe 100644 --- a/src/Docker.DotNet/Models/NodeUpdateParameters.Generated.cs +++ b/src/Docker.DotNet/Models/NodeUpdateParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class NodeUpdateParameters // (swarm.NodeSpec) @@ -16,15 +17,15 @@ public NodeUpdateParameters(Annotations Annotations) } [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Role")] - public string Role { get; set; } + public string Role { get; set; } = default!; [JsonPropertyName("Availability")] - public string Availability { get; set; } + public string Availability { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/OrchestrationConfig.Generated.cs b/src/Docker.DotNet/Models/OrchestrationConfig.Generated.cs index 63ef539a..05cdf4dd 100644 --- a/src/Docker.DotNet/Models/OrchestrationConfig.Generated.cs +++ b/src/Docker.DotNet/Models/OrchestrationConfig.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class OrchestrationConfig // (swarm.OrchestrationConfig) diff --git a/src/Docker.DotNet/Models/Peer.Generated.cs b/src/Docker.DotNet/Models/Peer.Generated.cs index 0f9a44c7..10664463 100644 --- a/src/Docker.DotNet/Models/Peer.Generated.cs +++ b/src/Docker.DotNet/Models/Peer.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class Peer // (swarm.Peer) { [JsonPropertyName("NodeID")] - public string NodeID { get; set; } + public string NodeID { get; set; } = default!; [JsonPropertyName("Addr")] - public string Addr { get; set; } + public string Addr { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PeerInfo.Generated.cs b/src/Docker.DotNet/Models/PeerInfo.Generated.cs index d195547a..c6c29709 100644 --- a/src/Docker.DotNet/Models/PeerInfo.Generated.cs +++ b/src/Docker.DotNet/Models/PeerInfo.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class PeerInfo // (network.PeerInfo) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("IP")] - public string IP { get; set; } + public string IP { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PidsStats.Generated.cs b/src/Docker.DotNet/Models/PidsStats.Generated.cs index bcad8a6b..61925770 100644 --- a/src/Docker.DotNet/Models/PidsStats.Generated.cs +++ b/src/Docker.DotNet/Models/PidsStats.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class PidsStats // (container.PidsStats) { [JsonPropertyName("current")] - public ulong Current { get; set; } + public ulong Current { get; set; } = default!; [JsonPropertyName("limit")] - public ulong Limit { get; set; } + public ulong Limit { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Placement.Generated.cs b/src/Docker.DotNet/Models/Placement.Generated.cs index 8ac5b8d5..f43a1e7d 100644 --- a/src/Docker.DotNet/Models/Placement.Generated.cs +++ b/src/Docker.DotNet/Models/Placement.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class Placement // (swarm.Placement) { [JsonPropertyName("Constraints")] - public IList Constraints { get; set; } + public IList Constraints { get; set; } = default!; [JsonPropertyName("Preferences")] - public IList Preferences { get; set; } + public IList Preferences { get; set; } = default!; [JsonPropertyName("MaxReplicas")] - public ulong MaxReplicas { get; set; } + public ulong MaxReplicas { get; set; } = default!; [JsonPropertyName("Platforms")] - public IList Platforms { get; set; } + public IList Platforms { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PlacementPreference.Generated.cs b/src/Docker.DotNet/Models/PlacementPreference.Generated.cs index 706d2874..63666224 100644 --- a/src/Docker.DotNet/Models/PlacementPreference.Generated.cs +++ b/src/Docker.DotNet/Models/PlacementPreference.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class PlacementPreference // (swarm.PlacementPreference) { [JsonPropertyName("Spread")] - public SpreadOver Spread { get; set; } + public SpreadOver? Spread { get; set; } } } diff --git a/src/Docker.DotNet/Models/Platform.Generated.cs b/src/Docker.DotNet/Models/Platform.Generated.cs index a2a955b3..5014dc9d 100644 --- a/src/Docker.DotNet/Models/Platform.Generated.cs +++ b/src/Docker.DotNet/Models/Platform.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class Platform // (v1.Platform) { [JsonPropertyName("architecture")] - public string Architecture { get; set; } + public string Architecture { get; set; } = default!; [JsonPropertyName("os")] - public string OS { get; set; } + public string OS { get; set; } = default!; [JsonPropertyName("os.version")] - public string OSVersion { get; set; } + public string OSVersion { get; set; } = default!; [JsonPropertyName("os.features")] - public IList OSFeatures { get; set; } + public IList OSFeatures { get; set; } = default!; [JsonPropertyName("variant")] - public string Variant { get; set; } + public string Variant { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PlatformInfo.Generated.cs b/src/Docker.DotNet/Models/PlatformInfo.Generated.cs index 54ef261f..232c5064 100644 --- a/src/Docker.DotNet/Models/PlatformInfo.Generated.cs +++ b/src/Docker.DotNet/Models/PlatformInfo.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class PlatformInfo // (system.PlatformInfo) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Plugin.Generated.cs b/src/Docker.DotNet/Models/Plugin.Generated.cs index 856b7eac..1e5bd990 100644 --- a/src/Docker.DotNet/Models/Plugin.Generated.cs +++ b/src/Docker.DotNet/Models/Plugin.Generated.cs @@ -1,23 +1,24 @@ +#nullable enable namespace Docker.DotNet.Models { public class Plugin // (plugin.Plugin) { [JsonPropertyName("Config")] - public PluginConfig Config { get; set; } + public PluginConfig Config { get; set; } = default!; [JsonPropertyName("Enabled")] - public bool Enabled { get; set; } + public bool Enabled { get; set; } = default!; [JsonPropertyName("Id")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("PluginReference")] - public string PluginReference { get; set; } + public string PluginReference { get; set; } = default!; [JsonPropertyName("Settings")] - public PluginSettings Settings { get; set; } + public PluginSettings Settings { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginArgs.Generated.cs b/src/Docker.DotNet/Models/PluginArgs.Generated.cs index 05e41c66..e255fa09 100644 --- a/src/Docker.DotNet/Models/PluginArgs.Generated.cs +++ b/src/Docker.DotNet/Models/PluginArgs.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginArgs // (plugin.Args) { [JsonPropertyName("Description")] - public string Description { get; set; } + public string Description { get; set; } = default!; [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Settable")] - public IList Settable { get; set; } + public IList Settable { get; set; } = default!; [JsonPropertyName("Value")] - public IList Value { get; set; } + public IList Value { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginCapabilityID.Generated.cs b/src/Docker.DotNet/Models/PluginCapabilityID.Generated.cs index 5768ffa9..44534d8b 100644 --- a/src/Docker.DotNet/Models/PluginCapabilityID.Generated.cs +++ b/src/Docker.DotNet/Models/PluginCapabilityID.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginCapabilityID // (plugin.CapabilityID) { [JsonPropertyName("Capability")] - public string Capability { get; set; } + public string Capability { get; set; } = default!; [JsonPropertyName("Prefix")] - public string Prefix { get; set; } + public string Prefix { get; set; } = default!; [JsonPropertyName("Version")] - public string Version { get; set; } + public string Version { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginConfig.Generated.cs b/src/Docker.DotNet/Models/PluginConfig.Generated.cs index 449c577d..c3b6f2ac 100644 --- a/src/Docker.DotNet/Models/PluginConfig.Generated.cs +++ b/src/Docker.DotNet/Models/PluginConfig.Generated.cs @@ -1,50 +1,51 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginConfig // (plugin.Config) { [JsonPropertyName("Args")] - public PluginArgs Args { get; set; } + public PluginArgs Args { get; set; } = default!; [JsonPropertyName("Description")] - public string Description { get; set; } + public string Description { get; set; } = default!; [JsonPropertyName("Documentation")] - public string Documentation { get; set; } + public string Documentation { get; set; } = default!; [JsonPropertyName("Entrypoint")] - public IList Entrypoint { get; set; } + public IList Entrypoint { get; set; } = default!; [JsonPropertyName("Env")] - public IList Env { get; set; } + public IList Env { get; set; } = default!; [JsonPropertyName("Interface")] - public PluginInterface Interface { get; set; } + public PluginInterface Interface { get; set; } = default!; [JsonPropertyName("IpcHost")] - public bool IpcHost { get; set; } + public bool IpcHost { get; set; } = default!; [JsonPropertyName("Linux")] - public PluginLinuxConfig Linux { get; set; } + public PluginLinuxConfig Linux { get; set; } = default!; [JsonPropertyName("Mounts")] - public IList Mounts { get; set; } + public IList Mounts { get; set; } = default!; [JsonPropertyName("Network")] - public PluginNetworkConfig Network { get; set; } + public PluginNetworkConfig Network { get; set; } = default!; [JsonPropertyName("PidHost")] - public bool PidHost { get; set; } + public bool PidHost { get; set; } = default!; [JsonPropertyName("PropagatedMount")] - public string PropagatedMount { get; set; } + public string PropagatedMount { get; set; } = default!; [JsonPropertyName("User")] - public PluginUser User { get; set; } + public PluginUser User { get; set; } = default!; [JsonPropertyName("WorkDir")] - public string WorkDir { get; set; } + public string WorkDir { get; set; } = default!; [JsonPropertyName("rootfs")] - public PluginRootFS Rootfs { get; set; } + public PluginRootFS? Rootfs { get; set; } } } diff --git a/src/Docker.DotNet/Models/PluginConfigureParameters.Generated.cs b/src/Docker.DotNet/Models/PluginConfigureParameters.Generated.cs index 1d196a92..4df04726 100644 --- a/src/Docker.DotNet/Models/PluginConfigureParameters.Generated.cs +++ b/src/Docker.DotNet/Models/PluginConfigureParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginConfigureParameters // (main.PluginConfigureParameters) { [JsonPropertyName("Args")] - public IList Args { get; set; } + public IList Args { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginCreateParameters.Generated.cs b/src/Docker.DotNet/Models/PluginCreateParameters.Generated.cs index fb9eeb1a..568f1373 100644 --- a/src/Docker.DotNet/Models/PluginCreateParameters.Generated.cs +++ b/src/Docker.DotNet/Models/PluginCreateParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginCreateParameters // (main.PluginCreateParameters) { [QueryStringParameter("name", true)] - public string Name { get; set; } + public string Name { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginDescription.Generated.cs b/src/Docker.DotNet/Models/PluginDescription.Generated.cs index e2f250bc..57a52616 100644 --- a/src/Docker.DotNet/Models/PluginDescription.Generated.cs +++ b/src/Docker.DotNet/Models/PluginDescription.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginDescription // (swarm.PluginDescription) { [JsonPropertyName("Type")] - public string Type { get; set; } + public string Type { get; set; } = default!; [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginDevice.Generated.cs b/src/Docker.DotNet/Models/PluginDevice.Generated.cs index 24aedb67..a10480c2 100644 --- a/src/Docker.DotNet/Models/PluginDevice.Generated.cs +++ b/src/Docker.DotNet/Models/PluginDevice.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginDevice // (plugin.Device) { [JsonPropertyName("Description")] - public string Description { get; set; } + public string Description { get; set; } = default!; [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Path")] - public string Path { get; set; } + public string? Path { get; set; } [JsonPropertyName("Settable")] - public IList Settable { get; set; } + public IList Settable { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginDisableParameters.Generated.cs b/src/Docker.DotNet/Models/PluginDisableParameters.Generated.cs index 7f04d109..ba4deaee 100644 --- a/src/Docker.DotNet/Models/PluginDisableParameters.Generated.cs +++ b/src/Docker.DotNet/Models/PluginDisableParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginDisableParameters // (main.PluginDisableParameters) diff --git a/src/Docker.DotNet/Models/PluginEnableParameters.Generated.cs b/src/Docker.DotNet/Models/PluginEnableParameters.Generated.cs index 98cff4b6..285f619e 100644 --- a/src/Docker.DotNet/Models/PluginEnableParameters.Generated.cs +++ b/src/Docker.DotNet/Models/PluginEnableParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginEnableParameters // (main.PluginEnableParameters) diff --git a/src/Docker.DotNet/Models/PluginEnv.Generated.cs b/src/Docker.DotNet/Models/PluginEnv.Generated.cs index 96f9f615..9c0487d2 100644 --- a/src/Docker.DotNet/Models/PluginEnv.Generated.cs +++ b/src/Docker.DotNet/Models/PluginEnv.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginEnv // (plugin.Env) { [JsonPropertyName("Description")] - public string Description { get; set; } + public string Description { get; set; } = default!; [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Settable")] - public IList Settable { get; set; } + public IList Settable { get; set; } = default!; [JsonPropertyName("Value")] - public string Value { get; set; } + public string? Value { get; set; } } } diff --git a/src/Docker.DotNet/Models/PluginGetPrivilegeParameters.Generated.cs b/src/Docker.DotNet/Models/PluginGetPrivilegeParameters.Generated.cs index 1cd41582..d696c969 100644 --- a/src/Docker.DotNet/Models/PluginGetPrivilegeParameters.Generated.cs +++ b/src/Docker.DotNet/Models/PluginGetPrivilegeParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginGetPrivilegeParameters // (main.PluginGetPrivilegeParameters) { [QueryStringParameter("remote", true)] - public string Remote { get; set; } + public string Remote { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginInstallParameters.Generated.cs b/src/Docker.DotNet/Models/PluginInstallParameters.Generated.cs index fc24541c..8be035df 100644 --- a/src/Docker.DotNet/Models/PluginInstallParameters.Generated.cs +++ b/src/Docker.DotNet/Models/PluginInstallParameters.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginInstallParameters // (main.PluginInstallParameters) { [QueryStringParameter("remote", true)] - public string Remote { get; set; } + public string Remote { get; set; } = default!; [QueryStringParameter("name", false)] - public string Name { get; set; } + public string? Name { get; set; } [JsonPropertyName("RegistryAuth")] - public AuthConfig RegistryAuth { get; set; } + public AuthConfig RegistryAuth { get; set; } = default!; [JsonPropertyName("Privileges")] - public IList Privileges { get; set; } + public IList Privileges { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginInterface.Generated.cs b/src/Docker.DotNet/Models/PluginInterface.Generated.cs index 036765a6..5dd7459d 100644 --- a/src/Docker.DotNet/Models/PluginInterface.Generated.cs +++ b/src/Docker.DotNet/Models/PluginInterface.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginInterface // (plugin.Interface) { [JsonPropertyName("ProtocolScheme")] - public string ProtocolScheme { get; set; } + public string ProtocolScheme { get; set; } = default!; [JsonPropertyName("Socket")] - public string Socket { get; set; } + public string Socket { get; set; } = default!; [JsonPropertyName("Types")] - public IList Types { get; set; } + public IList Types { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginLinuxConfig.Generated.cs b/src/Docker.DotNet/Models/PluginLinuxConfig.Generated.cs index 15ddbb17..4e6d9370 100644 --- a/src/Docker.DotNet/Models/PluginLinuxConfig.Generated.cs +++ b/src/Docker.DotNet/Models/PluginLinuxConfig.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginLinuxConfig // (plugin.LinuxConfig) { [JsonPropertyName("AllowAllDevices")] - public bool AllowAllDevices { get; set; } + public bool AllowAllDevices { get; set; } = default!; [JsonPropertyName("Capabilities")] - public IList Capabilities { get; set; } + public IList Capabilities { get; set; } = default!; [JsonPropertyName("Devices")] - public IList Devices { get; set; } + public IList Devices { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginListParameters.Generated.cs b/src/Docker.DotNet/Models/PluginListParameters.Generated.cs index b7dfceee..89dab338 100644 --- a/src/Docker.DotNet/Models/PluginListParameters.Generated.cs +++ b/src/Docker.DotNet/Models/PluginListParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginListParameters // (main.PluginListParameters) { [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } } } diff --git a/src/Docker.DotNet/Models/PluginMount.Generated.cs b/src/Docker.DotNet/Models/PluginMount.Generated.cs index 756a80c7..75583368 100644 --- a/src/Docker.DotNet/Models/PluginMount.Generated.cs +++ b/src/Docker.DotNet/Models/PluginMount.Generated.cs @@ -1,26 +1,27 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginMount // (plugin.Mount) { [JsonPropertyName("Description")] - public string Description { get; set; } + public string Description { get; set; } = default!; [JsonPropertyName("Destination")] - public string Destination { get; set; } + public string Destination { get; set; } = default!; [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Options")] - public IList Options { get; set; } + public IList Options { get; set; } = default!; [JsonPropertyName("Settable")] - public IList Settable { get; set; } + public IList Settable { get; set; } = default!; [JsonPropertyName("Source")] - public string Source { get; set; } + public string? Source { get; set; } [JsonPropertyName("Type")] - public string Type { get; set; } + public string Type { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginNetworkConfig.Generated.cs b/src/Docker.DotNet/Models/PluginNetworkConfig.Generated.cs index 495ba57c..ec1937bd 100644 --- a/src/Docker.DotNet/Models/PluginNetworkConfig.Generated.cs +++ b/src/Docker.DotNet/Models/PluginNetworkConfig.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginNetworkConfig // (plugin.NetworkConfig) { [JsonPropertyName("Type")] - public string Type { get; set; } + public string Type { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginPrivilege.Generated.cs b/src/Docker.DotNet/Models/PluginPrivilege.Generated.cs index 36e8816d..14ae979b 100644 --- a/src/Docker.DotNet/Models/PluginPrivilege.Generated.cs +++ b/src/Docker.DotNet/Models/PluginPrivilege.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginPrivilege // (plugin.Privilege) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Description")] - public string Description { get; set; } + public string Description { get; set; } = default!; [JsonPropertyName("Value")] - public IList Value { get; set; } + public IList Value { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginRemoveParameters.Generated.cs b/src/Docker.DotNet/Models/PluginRemoveParameters.Generated.cs index 5a59d313..3076aff2 100644 --- a/src/Docker.DotNet/Models/PluginRemoveParameters.Generated.cs +++ b/src/Docker.DotNet/Models/PluginRemoveParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginRemoveParameters // (main.PluginRemoveParameters) diff --git a/src/Docker.DotNet/Models/PluginRootFS.Generated.cs b/src/Docker.DotNet/Models/PluginRootFS.Generated.cs index 0563797b..d094a28d 100644 --- a/src/Docker.DotNet/Models/PluginRootFS.Generated.cs +++ b/src/Docker.DotNet/Models/PluginRootFS.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginRootFS // (plugin.RootFS) { [JsonPropertyName("diff_ids")] - public IList DiffIds { get; set; } + public IList DiffIds { get; set; } = default!; [JsonPropertyName("type")] - public string Type { get; set; } + public string Type { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginSettings.Generated.cs b/src/Docker.DotNet/Models/PluginSettings.Generated.cs index 3d761f9a..bc5210a4 100644 --- a/src/Docker.DotNet/Models/PluginSettings.Generated.cs +++ b/src/Docker.DotNet/Models/PluginSettings.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginSettings // (plugin.Settings) { [JsonPropertyName("Args")] - public IList Args { get; set; } + public IList Args { get; set; } = default!; [JsonPropertyName("Devices")] - public IList Devices { get; set; } + public IList Devices { get; set; } = default!; [JsonPropertyName("Env")] - public IList Env { get; set; } + public IList Env { get; set; } = default!; [JsonPropertyName("Mounts")] - public IList Mounts { get; set; } + public IList Mounts { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginUpgradeParameters.Generated.cs b/src/Docker.DotNet/Models/PluginUpgradeParameters.Generated.cs index 94cb069a..68fbba16 100644 --- a/src/Docker.DotNet/Models/PluginUpgradeParameters.Generated.cs +++ b/src/Docker.DotNet/Models/PluginUpgradeParameters.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginUpgradeParameters // (main.PluginUpgradeParameters) { [QueryStringParameter("remote", true)] - public string Remote { get; set; } + public string Remote { get; set; } = default!; [JsonPropertyName("RegistryAuth")] - public AuthConfig RegistryAuth { get; set; } + public AuthConfig RegistryAuth { get; set; } = default!; [JsonPropertyName("Privileges")] - public IList Privileges { get; set; } + public IList Privileges { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginUser.Generated.cs b/src/Docker.DotNet/Models/PluginUser.Generated.cs index d75e055b..d1d58280 100644 --- a/src/Docker.DotNet/Models/PluginUser.Generated.cs +++ b/src/Docker.DotNet/Models/PluginUser.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginUser // (plugin.User) { [JsonPropertyName("GID")] - public uint GID { get; set; } + public uint GID { get; set; } = default!; [JsonPropertyName("UID")] - public uint UID { get; set; } + public uint UID { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PluginsInfo.Generated.cs b/src/Docker.DotNet/Models/PluginsInfo.Generated.cs index ff5c1bfc..cc1ec4f4 100644 --- a/src/Docker.DotNet/Models/PluginsInfo.Generated.cs +++ b/src/Docker.DotNet/Models/PluginsInfo.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class PluginsInfo // (system.PluginsInfo) { [JsonPropertyName("Volume")] - public IList Volume { get; set; } + public IList Volume { get; set; } = default!; [JsonPropertyName("Network")] - public IList Network { get; set; } + public IList Network { get; set; } = default!; [JsonPropertyName("Authorization")] - public IList Authorization { get; set; } + public IList Authorization { get; set; } = default!; [JsonPropertyName("Log")] - public IList Log { get; set; } + public IList Log { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PortBinding.Generated.cs b/src/Docker.DotNet/Models/PortBinding.Generated.cs index a476e179..904723f7 100644 --- a/src/Docker.DotNet/Models/PortBinding.Generated.cs +++ b/src/Docker.DotNet/Models/PortBinding.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class PortBinding // (network.PortBinding) { [JsonPropertyName("HostIp")] - public string HostIP { get; set; } + public string HostIP { get; set; } = default!; [JsonPropertyName("HostPort")] - public string HostPort { get; set; } + public string HostPort { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PortConfig.Generated.cs b/src/Docker.DotNet/Models/PortConfig.Generated.cs index 682550f1..08a1b851 100644 --- a/src/Docker.DotNet/Models/PortConfig.Generated.cs +++ b/src/Docker.DotNet/Models/PortConfig.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class PortConfig // (swarm.PortConfig) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Protocol")] - public string Protocol { get; set; } + public string Protocol { get; set; } = default!; [JsonPropertyName("TargetPort")] - public uint TargetPort { get; set; } + public uint TargetPort { get; set; } = default!; [JsonPropertyName("PublishedPort")] - public uint PublishedPort { get; set; } + public uint PublishedPort { get; set; } = default!; [JsonPropertyName("PublishMode")] - public string PublishMode { get; set; } + public string PublishMode { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PortStatus.Generated.cs b/src/Docker.DotNet/Models/PortStatus.Generated.cs index a9b0e079..06e52783 100644 --- a/src/Docker.DotNet/Models/PortStatus.Generated.cs +++ b/src/Docker.DotNet/Models/PortStatus.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class PortStatus // (swarm.PortStatus) { [JsonPropertyName("Ports")] - public IList Ports { get; set; } + public IList Ports { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PortSummary.Generated.cs b/src/Docker.DotNet/Models/PortSummary.Generated.cs index 66d6fb85..01773495 100644 --- a/src/Docker.DotNet/Models/PortSummary.Generated.cs +++ b/src/Docker.DotNet/Models/PortSummary.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class PortSummary // (container.PortSummary) { [JsonPropertyName("IP")] - public string IP { get; set; } + public string IP { get; set; } = default!; [JsonPropertyName("PrivatePort")] - public ushort PrivatePort { get; set; } + public ushort PrivatePort { get; set; } = default!; [JsonPropertyName("PublicPort")] - public ushort PublicPort { get; set; } + public ushort PublicPort { get; set; } = default!; [JsonPropertyName("Type")] - public string Type { get; set; } + public string Type { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Privileges.Generated.cs b/src/Docker.DotNet/Models/Privileges.Generated.cs index 4985ec4e..29f18344 100644 --- a/src/Docker.DotNet/Models/Privileges.Generated.cs +++ b/src/Docker.DotNet/Models/Privileges.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class Privileges // (swarm.Privileges) { [JsonPropertyName("CredentialSpec")] - public CredentialSpec CredentialSpec { get; set; } + public CredentialSpec? CredentialSpec { get; set; } [JsonPropertyName("SELinuxContext")] - public SELinuxContext SELinuxContext { get; set; } + public SELinuxContext? SELinuxContext { get; set; } [JsonPropertyName("Seccomp")] - public SeccompOpts Seccomp { get; set; } + public SeccompOpts? Seccomp { get; set; } [JsonPropertyName("AppArmor")] - public AppArmorOpts AppArmor { get; set; } + public AppArmorOpts? AppArmor { get; set; } [JsonPropertyName("NoNewPrivileges")] - public bool NoNewPrivileges { get; set; } + public bool NoNewPrivileges { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/PublishStatus.Generated.cs b/src/Docker.DotNet/Models/PublishStatus.Generated.cs index 3e957285..d8bef22a 100644 --- a/src/Docker.DotNet/Models/PublishStatus.Generated.cs +++ b/src/Docker.DotNet/Models/PublishStatus.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class PublishStatus // (volume.PublishStatus) { [JsonPropertyName("NodeID")] - public string NodeID { get; set; } + public string NodeID { get; set; } = default!; [JsonPropertyName("State")] - public string State { get; set; } + public string State { get; set; } = default!; [JsonPropertyName("PublishContext")] - public IDictionary PublishContext { get; set; } + public IDictionary PublishContext { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/RaftConfig.Generated.cs b/src/Docker.DotNet/Models/RaftConfig.Generated.cs index db00a709..383f2ed8 100644 --- a/src/Docker.DotNet/Models/RaftConfig.Generated.cs +++ b/src/Docker.DotNet/Models/RaftConfig.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class RaftConfig // (swarm.RaftConfig) { [JsonPropertyName("SnapshotInterval")] - public ulong SnapshotInterval { get; set; } + public ulong SnapshotInterval { get; set; } = default!; [JsonPropertyName("KeepOldSnapshots")] public ulong? KeepOldSnapshots { get; set; } [JsonPropertyName("LogEntriesForSlowFollowers")] - public ulong LogEntriesForSlowFollowers { get; set; } + public ulong LogEntriesForSlowFollowers { get; set; } = default!; [JsonPropertyName("ElectionTick")] - public long ElectionTick { get; set; } + public long ElectionTick { get; set; } = default!; [JsonPropertyName("HeartbeatTick")] - public long HeartbeatTick { get; set; } + public long HeartbeatTick { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ReplicatedJob.Generated.cs b/src/Docker.DotNet/Models/ReplicatedJob.Generated.cs index 9e90261d..9b1bf954 100644 --- a/src/Docker.DotNet/Models/ReplicatedJob.Generated.cs +++ b/src/Docker.DotNet/Models/ReplicatedJob.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ReplicatedJob // (swarm.ReplicatedJob) diff --git a/src/Docker.DotNet/Models/ReplicatedService.Generated.cs b/src/Docker.DotNet/Models/ReplicatedService.Generated.cs index f0033084..2e05f8e4 100644 --- a/src/Docker.DotNet/Models/ReplicatedService.Generated.cs +++ b/src/Docker.DotNet/Models/ReplicatedService.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ReplicatedService // (swarm.ReplicatedService) diff --git a/src/Docker.DotNet/Models/ResourceRequirements.Generated.cs b/src/Docker.DotNet/Models/ResourceRequirements.Generated.cs index 9f82d88b..2e578fbd 100644 --- a/src/Docker.DotNet/Models/ResourceRequirements.Generated.cs +++ b/src/Docker.DotNet/Models/ResourceRequirements.Generated.cs @@ -1,12 +1,13 @@ +#nullable enable namespace Docker.DotNet.Models { public class ResourceRequirements // (swarm.ResourceRequirements) { [JsonPropertyName("Limits")] - public SwarmLimit Limits { get; set; } + public SwarmLimit? Limits { get; set; } [JsonPropertyName("Reservations")] - public SwarmResources Reservations { get; set; } + public SwarmResources? Reservations { get; set; } [JsonPropertyName("SwapBytes")] public long? SwapBytes { get; set; } diff --git a/src/Docker.DotNet/Models/Resources.Generated.cs b/src/Docker.DotNet/Models/Resources.Generated.cs index 97eb1697..2e68a6e3 100644 --- a/src/Docker.DotNet/Models/Resources.Generated.cs +++ b/src/Docker.DotNet/Models/Resources.Generated.cs @@ -1,69 +1,70 @@ +#nullable enable namespace Docker.DotNet.Models { public class Resources // (container.Resources) { [JsonPropertyName("CpuShares")] - public long CPUShares { get; set; } + public long CPUShares { get; set; } = default!; [JsonPropertyName("Memory")] - public long Memory { get; set; } + public long Memory { get; set; } = default!; [JsonPropertyName("NanoCpus")] - public long NanoCPUs { get; set; } + public long NanoCPUs { get; set; } = default!; [JsonPropertyName("CgroupParent")] - public string CgroupParent { get; set; } + public string CgroupParent { get; set; } = default!; [JsonPropertyName("BlkioWeight")] - public ushort BlkioWeight { get; set; } + public ushort BlkioWeight { get; set; } = default!; [JsonPropertyName("BlkioWeightDevice")] - public IList BlkioWeightDevice { get; set; } + public IList BlkioWeightDevice { get; set; } = default!; [JsonPropertyName("BlkioDeviceReadBps")] - public IList BlkioDeviceReadBps { get; set; } + public IList BlkioDeviceReadBps { get; set; } = default!; [JsonPropertyName("BlkioDeviceWriteBps")] - public IList BlkioDeviceWriteBps { get; set; } + public IList BlkioDeviceWriteBps { get; set; } = default!; [JsonPropertyName("BlkioDeviceReadIOps")] - public IList BlkioDeviceReadIOps { get; set; } + public IList BlkioDeviceReadIOps { get; set; } = default!; [JsonPropertyName("BlkioDeviceWriteIOps")] - public IList BlkioDeviceWriteIOps { get; set; } + public IList BlkioDeviceWriteIOps { get; set; } = default!; [JsonPropertyName("CpuPeriod")] - public long CPUPeriod { get; set; } + public long CPUPeriod { get; set; } = default!; [JsonPropertyName("CpuQuota")] - public long CPUQuota { get; set; } + public long CPUQuota { get; set; } = default!; [JsonPropertyName("CpuRealtimePeriod")] - public long CPURealtimePeriod { get; set; } + public long CPURealtimePeriod { get; set; } = default!; [JsonPropertyName("CpuRealtimeRuntime")] - public long CPURealtimeRuntime { get; set; } + public long CPURealtimeRuntime { get; set; } = default!; [JsonPropertyName("CpusetCpus")] - public string CpusetCpus { get; set; } + public string CpusetCpus { get; set; } = default!; [JsonPropertyName("CpusetMems")] - public string CpusetMems { get; set; } + public string CpusetMems { get; set; } = default!; [JsonPropertyName("Devices")] - public IList Devices { get; set; } + public IList Devices { get; set; } = default!; [JsonPropertyName("DeviceCgroupRules")] - public IList DeviceCgroupRules { get; set; } + public IList DeviceCgroupRules { get; set; } = default!; [JsonPropertyName("DeviceRequests")] - public IList DeviceRequests { get; set; } + public IList DeviceRequests { get; set; } = default!; [JsonPropertyName("MemoryReservation")] - public long MemoryReservation { get; set; } + public long MemoryReservation { get; set; } = default!; [JsonPropertyName("MemorySwap")] - public long MemorySwap { get; set; } + public long MemorySwap { get; set; } = default!; [JsonPropertyName("MemorySwappiness")] public long? MemorySwappiness { get; set; } @@ -75,18 +76,18 @@ public class Resources // (container.Resources) public long? PidsLimit { get; set; } [JsonPropertyName("Ulimits")] - public IList Ulimits { get; set; } + public IList Ulimits { get; set; } = default!; [JsonPropertyName("CpuCount")] - public long CPUCount { get; set; } + public long CPUCount { get; set; } = default!; [JsonPropertyName("CpuPercent")] - public long CPUPercent { get; set; } + public long CPUPercent { get; set; } = default!; [JsonPropertyName("IOMaximumIOps")] - public ulong IOMaximumIOps { get; set; } + public ulong IOMaximumIOps { get; set; } = default!; [JsonPropertyName("IOMaximumBandwidth")] - public ulong IOMaximumBandwidth { get; set; } + public ulong IOMaximumBandwidth { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/RestartPolicy.Generated.cs b/src/Docker.DotNet/Models/RestartPolicy.Generated.cs index e46ba2bf..dffd325f 100644 --- a/src/Docker.DotNet/Models/RestartPolicy.Generated.cs +++ b/src/Docker.DotNet/Models/RestartPolicy.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class RestartPolicy // (container.RestartPolicy) { [JsonPropertyName("Name")] - public RestartPolicyKind Name { get; set; } + public RestartPolicyKind Name { get; set; } = default!; [JsonPropertyName("MaximumRetryCount")] - public long MaximumRetryCount { get; set; } + public long MaximumRetryCount { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/RootFS.Generated.cs b/src/Docker.DotNet/Models/RootFS.Generated.cs index 072617f6..10eda244 100644 --- a/src/Docker.DotNet/Models/RootFS.Generated.cs +++ b/src/Docker.DotNet/Models/RootFS.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class RootFS // (image.RootFS) { [JsonPropertyName("Type")] - public string Type { get; set; } + public string Type { get; set; } = default!; [JsonPropertyName("Layers")] - public IList Layers { get; set; } + public IList Layers { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/RootFSStorage.Generated.cs b/src/Docker.DotNet/Models/RootFSStorage.Generated.cs index 61449ce9..44507f8a 100644 --- a/src/Docker.DotNet/Models/RootFSStorage.Generated.cs +++ b/src/Docker.DotNet/Models/RootFSStorage.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class RootFSStorage // (storage.RootFSStorage) { [JsonPropertyName("Snapshot")] - public RootFSStorageSnapshot Snapshot { get; set; } + public RootFSStorageSnapshot? Snapshot { get; set; } } } diff --git a/src/Docker.DotNet/Models/RootFSStorageSnapshot.Generated.cs b/src/Docker.DotNet/Models/RootFSStorageSnapshot.Generated.cs index f5f35cc4..1e4d31e4 100644 --- a/src/Docker.DotNet/Models/RootFSStorageSnapshot.Generated.cs +++ b/src/Docker.DotNet/Models/RootFSStorageSnapshot.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class RootFSStorageSnapshot // (storage.RootFSStorageSnapshot) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Runtime.Generated.cs b/src/Docker.DotNet/Models/Runtime.Generated.cs index 29fba8cd..fd776120 100644 --- a/src/Docker.DotNet/Models/Runtime.Generated.cs +++ b/src/Docker.DotNet/Models/Runtime.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class Runtime // (system.Runtime) { [JsonPropertyName("path")] - public string Path { get; set; } + public string Path { get; set; } = default!; [JsonPropertyName("runtimeArgs")] - public IList Args { get; set; } + public IList Args { get; set; } = default!; [JsonPropertyName("runtimeType")] - public string Type { get; set; } + public string Type { get; set; } = default!; [JsonPropertyName("options")] - public IDictionary Options { get; set; } + public IDictionary Options { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/RuntimePrivilege.Generated.cs b/src/Docker.DotNet/Models/RuntimePrivilege.Generated.cs index a4a36fbd..ae65a42c 100644 --- a/src/Docker.DotNet/Models/RuntimePrivilege.Generated.cs +++ b/src/Docker.DotNet/Models/RuntimePrivilege.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class RuntimePrivilege // (swarm.RuntimePrivilege) { [JsonPropertyName("name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("description")] - public string Description { get; set; } + public string Description { get; set; } = default!; [JsonPropertyName("value")] - public IList Value { get; set; } + public IList Value { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/RuntimeWithStatus.Generated.cs b/src/Docker.DotNet/Models/RuntimeWithStatus.Generated.cs index d1add7d4..8f69b8ca 100644 --- a/src/Docker.DotNet/Models/RuntimeWithStatus.Generated.cs +++ b/src/Docker.DotNet/Models/RuntimeWithStatus.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class RuntimeWithStatus // (system.RuntimeWithStatus) @@ -18,18 +19,18 @@ public RuntimeWithStatus(Runtime Runtime) } [JsonPropertyName("path")] - public string Path { get; set; } + public string Path { get; set; } = default!; [JsonPropertyName("runtimeArgs")] - public IList Args { get; set; } + public IList Args { get; set; } = default!; [JsonPropertyName("runtimeType")] - public string Type { get; set; } + public string Type { get; set; } = default!; [JsonPropertyName("options")] - public IDictionary Options { get; set; } + public IDictionary Options { get; set; } = default!; [JsonPropertyName("status")] - public IDictionary Status { get; set; } + public IDictionary Status { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SELinuxContext.Generated.cs b/src/Docker.DotNet/Models/SELinuxContext.Generated.cs index eb1f2194..ac5a240f 100644 --- a/src/Docker.DotNet/Models/SELinuxContext.Generated.cs +++ b/src/Docker.DotNet/Models/SELinuxContext.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class SELinuxContext // (swarm.SELinuxContext) { [JsonPropertyName("Disable")] - public bool Disable { get; set; } + public bool Disable { get; set; } = default!; [JsonPropertyName("User")] - public string User { get; set; } + public string User { get; set; } = default!; [JsonPropertyName("Role")] - public string Role { get; set; } + public string Role { get; set; } = default!; [JsonPropertyName("Type")] - public string Type { get; set; } + public string Type { get; set; } = default!; [JsonPropertyName("Level")] - public string Level { get; set; } + public string Level { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SeccompOpts.Generated.cs b/src/Docker.DotNet/Models/SeccompOpts.Generated.cs index 5170d2dd..b33cc32c 100644 --- a/src/Docker.DotNet/Models/SeccompOpts.Generated.cs +++ b/src/Docker.DotNet/Models/SeccompOpts.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class SeccompOpts // (swarm.SeccompOpts) { [JsonPropertyName("Mode")] - public string Mode { get; set; } + public string Mode { get; set; } = default!; [JsonPropertyName("Profile")] - public IList Profile { get; set; } + public IList Profile { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Secret.Generated.cs b/src/Docker.DotNet/Models/Secret.Generated.cs index d71214f5..033b1e74 100644 --- a/src/Docker.DotNet/Models/Secret.Generated.cs +++ b/src/Docker.DotNet/Models/Secret.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class Secret // (swarm.Secret) @@ -17,18 +18,18 @@ public Secret(Meta Meta) } [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } + public Version Version { get; set; } = default!; [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } + public DateTime CreatedAt { get; set; } = default!; [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } + public DateTime UpdatedAt { get; set; } = default!; [JsonPropertyName("Spec")] - public SwarmSecretSpec Spec { get; set; } + public SwarmSecretSpec Spec { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SecretCreateResponse.Generated.cs b/src/Docker.DotNet/Models/SecretCreateResponse.Generated.cs index 0ce4aea2..125f0931 100644 --- a/src/Docker.DotNet/Models/SecretCreateResponse.Generated.cs +++ b/src/Docker.DotNet/Models/SecretCreateResponse.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class SecretCreateResponse // (main.SecretCreateResponse) { [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SecretReference.Generated.cs b/src/Docker.DotNet/Models/SecretReference.Generated.cs index 1b7e573e..10e0c13b 100644 --- a/src/Docker.DotNet/Models/SecretReference.Generated.cs +++ b/src/Docker.DotNet/Models/SecretReference.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class SecretReference // (swarm.SecretReference) { [JsonPropertyName("File")] - public SecretReferenceFileTarget File { get; set; } + public SecretReferenceFileTarget? File { get; set; } [JsonPropertyName("SecretID")] - public string SecretID { get; set; } + public string SecretID { get; set; } = default!; [JsonPropertyName("SecretName")] - public string SecretName { get; set; } + public string SecretName { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SecretReferenceFileTarget.Generated.cs b/src/Docker.DotNet/Models/SecretReferenceFileTarget.Generated.cs index c2fc3247..1e852084 100644 --- a/src/Docker.DotNet/Models/SecretReferenceFileTarget.Generated.cs +++ b/src/Docker.DotNet/Models/SecretReferenceFileTarget.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class SecretReferenceFileTarget // (swarm.SecretReferenceFileTarget) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("UID")] - public string UID { get; set; } + public string UID { get; set; } = default!; [JsonPropertyName("GID")] - public string GID { get; set; } + public string GID { get; set; } = default!; [JsonPropertyName("Mode")] - public uint Mode { get; set; } + public uint Mode { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ServiceConfig.Generated.cs b/src/Docker.DotNet/Models/ServiceConfig.Generated.cs index 70d9c8f9..5a30fcef 100644 --- a/src/Docker.DotNet/Models/ServiceConfig.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceConfig.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class ServiceConfig // (registry.ServiceConfig) { [JsonPropertyName("InsecureRegistryCIDRs")] - public IList InsecureRegistryCIDRs { get; set; } + public IList InsecureRegistryCIDRs { get; set; } = default!; [JsonPropertyName("IndexConfigs")] - public IDictionary IndexConfigs { get; set; } + public IDictionary IndexConfigs { get; set; } = default!; [JsonPropertyName("Mirrors")] - public IList Mirrors { get; set; } + public IList Mirrors { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ServiceCreateParameters.Generated.cs b/src/Docker.DotNet/Models/ServiceCreateParameters.Generated.cs index 8cc4d6ef..038fe12c 100644 --- a/src/Docker.DotNet/Models/ServiceCreateParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceCreateParameters.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ServiceCreateParameters // (main.ServiceCreateParameters) { [JsonPropertyName("Service")] - public ServiceSpec Service { get; set; } + public ServiceSpec Service { get; set; } = default!; [JsonPropertyName("RegistryAuth")] - public AuthConfig RegistryAuth { get; set; } + public AuthConfig RegistryAuth { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ServiceCreateResponse.Generated.cs b/src/Docker.DotNet/Models/ServiceCreateResponse.Generated.cs index 5a01d320..b99e04c6 100644 --- a/src/Docker.DotNet/Models/ServiceCreateResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceCreateResponse.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ServiceCreateResponse // (swarm.ServiceCreateResponse) { [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Warnings")] - public IList Warnings { get; set; } + public IList Warnings { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ServiceInfo.Generated.cs b/src/Docker.DotNet/Models/ServiceInfo.Generated.cs index 13fe3152..d1a5aad9 100644 --- a/src/Docker.DotNet/Models/ServiceInfo.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceInfo.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class ServiceInfo // (network.ServiceInfo) { [JsonPropertyName("VIP")] - public string VIP { get; set; } + public string VIP { get; set; } = default!; [JsonPropertyName("Ports")] - public IList Ports { get; set; } + public IList Ports { get; set; } = default!; [JsonPropertyName("LocalLBIndex")] - public long LocalLBIndex { get; set; } + public long LocalLBIndex { get; set; } = default!; [JsonPropertyName("Tasks")] - public IList Tasks { get; set; } + public IList Tasks { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ServiceListParameters.Generated.cs b/src/Docker.DotNet/Models/ServiceListParameters.Generated.cs index 0a167691..593b0abb 100644 --- a/src/Docker.DotNet/Models/ServiceListParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceListParameters.Generated.cs @@ -1,9 +1,10 @@ +#nullable enable namespace Docker.DotNet.Models { public class ServiceListParameters // (main.ServiceListParameters) { [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } [QueryStringParameter("status", false, typeof(BoolQueryStringConverter))] public bool? Status { get; set; } diff --git a/src/Docker.DotNet/Models/ServiceLogsParameters.Generated.cs b/src/Docker.DotNet/Models/ServiceLogsParameters.Generated.cs index 316b5daa..67e9fadc 100644 --- a/src/Docker.DotNet/Models/ServiceLogsParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceLogsParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ServiceLogsParameters // (main.ServiceLogsParameters) @@ -9,7 +10,7 @@ public class ServiceLogsParameters // (main.ServiceLogsParameters) public bool? ShowStderr { get; set; } [QueryStringParameter("since", false)] - public string Since { get; set; } + public string? Since { get; set; } [QueryStringParameter("timestamps", false, typeof(BoolQueryStringConverter))] public bool? Timestamps { get; set; } @@ -18,7 +19,7 @@ public class ServiceLogsParameters // (main.ServiceLogsParameters) public bool? Follow { get; set; } [QueryStringParameter("tail", false)] - public string Tail { get; set; } + public string? Tail { get; set; } [QueryStringParameter("details", false, typeof(BoolQueryStringConverter))] public bool? Details { get; set; } diff --git a/src/Docker.DotNet/Models/ServiceMode.Generated.cs b/src/Docker.DotNet/Models/ServiceMode.Generated.cs index c576bd6e..21f85f31 100644 --- a/src/Docker.DotNet/Models/ServiceMode.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceMode.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class ServiceMode // (swarm.ServiceMode) { [JsonPropertyName("Replicated")] - public ReplicatedService Replicated { get; set; } + public ReplicatedService? Replicated { get; set; } [JsonPropertyName("Global")] - public GlobalService Global { get; set; } + public GlobalService? Global { get; set; } [JsonPropertyName("ReplicatedJob")] - public ReplicatedJob ReplicatedJob { get; set; } + public ReplicatedJob? ReplicatedJob { get; set; } [JsonPropertyName("GlobalJob")] - public GlobalJob GlobalJob { get; set; } + public GlobalJob? GlobalJob { get; set; } } } diff --git a/src/Docker.DotNet/Models/ServiceSpec.Generated.cs b/src/Docker.DotNet/Models/ServiceSpec.Generated.cs index b275006b..704479f0 100644 --- a/src/Docker.DotNet/Models/ServiceSpec.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceSpec.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class ServiceSpec // (swarm.ServiceSpec) @@ -16,24 +17,24 @@ public ServiceSpec(Annotations Annotations) } [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("TaskTemplate")] - public TaskSpec TaskTemplate { get; set; } + public TaskSpec TaskTemplate { get; set; } = default!; [JsonPropertyName("Mode")] - public ServiceMode Mode { get; set; } + public ServiceMode Mode { get; set; } = default!; [JsonPropertyName("UpdateConfig")] - public SwarmUpdateConfig UpdateConfig { get; set; } + public SwarmUpdateConfig? UpdateConfig { get; set; } [JsonPropertyName("RollbackConfig")] - public SwarmUpdateConfig RollbackConfig { get; set; } + public SwarmUpdateConfig? RollbackConfig { get; set; } [JsonPropertyName("EndpointSpec")] - public EndpointSpec EndpointSpec { get; set; } + public EndpointSpec? EndpointSpec { get; set; } } } diff --git a/src/Docker.DotNet/Models/ServiceStatus.Generated.cs b/src/Docker.DotNet/Models/ServiceStatus.Generated.cs index 620baafe..854c865f 100644 --- a/src/Docker.DotNet/Models/ServiceStatus.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceStatus.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class ServiceStatus // (swarm.ServiceStatus) { [JsonPropertyName("RunningTasks")] - public ulong RunningTasks { get; set; } + public ulong RunningTasks { get; set; } = default!; [JsonPropertyName("DesiredTasks")] - public ulong DesiredTasks { get; set; } + public ulong DesiredTasks { get; set; } = default!; [JsonPropertyName("CompletedTasks")] - public ulong CompletedTasks { get; set; } + public ulong CompletedTasks { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ServiceUpdateParameters.Generated.cs b/src/Docker.DotNet/Models/ServiceUpdateParameters.Generated.cs index f2d7320f..2476f797 100644 --- a/src/Docker.DotNet/Models/ServiceUpdateParameters.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceUpdateParameters.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class ServiceUpdateParameters // (main.ServiceUpdateParameters) { [JsonPropertyName("Service")] - public ServiceSpec Service { get; set; } + public ServiceSpec Service { get; set; } = default!; [QueryStringParameter("version", true)] - public long Version { get; set; } + public long Version { get; set; } = default!; [QueryStringParameter("registryauthfrom", false)] - public string RegistryAuthFrom { get; set; } + public string? RegistryAuthFrom { get; set; } [QueryStringParameter("rollback", false)] - public string Rollback { get; set; } + public string? Rollback { get; set; } [JsonPropertyName("RegistryAuth")] - public AuthConfig RegistryAuth { get; set; } + public AuthConfig RegistryAuth { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ServiceUpdateResponse.Generated.cs b/src/Docker.DotNet/Models/ServiceUpdateResponse.Generated.cs index 7ccdef93..9dad22ba 100644 --- a/src/Docker.DotNet/Models/ServiceUpdateResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceUpdateResponse.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class ServiceUpdateResponse // (swarm.ServiceUpdateResponse) { [JsonPropertyName("Warnings")] - public IList Warnings { get; set; } + public IList Warnings { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Spec.Generated.cs b/src/Docker.DotNet/Models/Spec.Generated.cs index 0a9b8e7a..8d7db742 100644 --- a/src/Docker.DotNet/Models/Spec.Generated.cs +++ b/src/Docker.DotNet/Models/Spec.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class Spec // (swarm.Spec) @@ -16,27 +17,27 @@ public Spec(Annotations Annotations) } [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Orchestration")] - public OrchestrationConfig Orchestration { get; set; } + public OrchestrationConfig Orchestration { get; set; } = default!; [JsonPropertyName("Raft")] - public RaftConfig Raft { get; set; } + public RaftConfig Raft { get; set; } = default!; [JsonPropertyName("Dispatcher")] - public DispatcherConfig Dispatcher { get; set; } + public DispatcherConfig Dispatcher { get; set; } = default!; [JsonPropertyName("CAConfig")] - public CAConfig CAConfig { get; set; } + public CAConfig CAConfig { get; set; } = default!; [JsonPropertyName("TaskDefaults")] - public TaskDefaults TaskDefaults { get; set; } + public TaskDefaults TaskDefaults { get; set; } = default!; [JsonPropertyName("EncryptionConfig")] - public EncryptionConfig EncryptionConfig { get; set; } + public EncryptionConfig EncryptionConfig { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SpreadOver.Generated.cs b/src/Docker.DotNet/Models/SpreadOver.Generated.cs index 67b50100..f0274b8d 100644 --- a/src/Docker.DotNet/Models/SpreadOver.Generated.cs +++ b/src/Docker.DotNet/Models/SpreadOver.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class SpreadOver // (swarm.SpreadOver) { [JsonPropertyName("SpreadDescriptor")] - public string SpreadDescriptor { get; set; } + public string SpreadDescriptor { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/State.Generated.cs b/src/Docker.DotNet/Models/State.Generated.cs index 706529dc..62201b6f 100644 --- a/src/Docker.DotNet/Models/State.Generated.cs +++ b/src/Docker.DotNet/Models/State.Generated.cs @@ -1,41 +1,42 @@ +#nullable enable namespace Docker.DotNet.Models { public class State // (container.State) { [JsonPropertyName("Status")] - public string Status { get; set; } + public string Status { get; set; } = default!; [JsonPropertyName("Running")] - public bool Running { get; set; } + public bool Running { get; set; } = default!; [JsonPropertyName("Paused")] - public bool Paused { get; set; } + public bool Paused { get; set; } = default!; [JsonPropertyName("Restarting")] - public bool Restarting { get; set; } + public bool Restarting { get; set; } = default!; [JsonPropertyName("OOMKilled")] - public bool OOMKilled { get; set; } + public bool OOMKilled { get; set; } = default!; [JsonPropertyName("Dead")] - public bool Dead { get; set; } + public bool Dead { get; set; } = default!; [JsonPropertyName("Pid")] - public long Pid { get; set; } + public long Pid { get; set; } = default!; [JsonPropertyName("ExitCode")] - public long ExitCode { get; set; } + public long ExitCode { get; set; } = default!; [JsonPropertyName("Error")] - public string Error { get; set; } + public string Error { get; set; } = default!; [JsonPropertyName("StartedAt")] - public string StartedAt { get; set; } + public string StartedAt { get; set; } = default!; [JsonPropertyName("FinishedAt")] - public string FinishedAt { get; set; } + public string FinishedAt { get; set; } = default!; [JsonPropertyName("Health")] - public Health Health { get; set; } + public Health? Health { get; set; } } } diff --git a/src/Docker.DotNet/Models/Status.Generated.cs b/src/Docker.DotNet/Models/Status.Generated.cs index 0a385a28..42587481 100644 --- a/src/Docker.DotNet/Models/Status.Generated.cs +++ b/src/Docker.DotNet/Models/Status.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class Status // (network.Status) { [JsonPropertyName("IPAM")] - public IPAMStatus IPAM { get; set; } + public IPAMStatus IPAM { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Storage.Generated.cs b/src/Docker.DotNet/Models/Storage.Generated.cs index 4948c938..1e793ad5 100644 --- a/src/Docker.DotNet/Models/Storage.Generated.cs +++ b/src/Docker.DotNet/Models/Storage.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class Storage // (storage.Storage) { [JsonPropertyName("RootFS")] - public RootFSStorage RootFS { get; set; } + public RootFSStorage? RootFS { get; set; } } } diff --git a/src/Docker.DotNet/Models/StorageStats.Generated.cs b/src/Docker.DotNet/Models/StorageStats.Generated.cs index 7db87147..e0c97587 100644 --- a/src/Docker.DotNet/Models/StorageStats.Generated.cs +++ b/src/Docker.DotNet/Models/StorageStats.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class StorageStats // (container.StorageStats) { [JsonPropertyName("read_count_normalized")] - public ulong ReadCountNormalized { get; set; } + public ulong ReadCountNormalized { get; set; } = default!; [JsonPropertyName("read_size_bytes")] - public ulong ReadSizeBytes { get; set; } + public ulong ReadSizeBytes { get; set; } = default!; [JsonPropertyName("write_count_normalized")] - public ulong WriteCountNormalized { get; set; } + public ulong WriteCountNormalized { get; set; } = default!; [JsonPropertyName("write_size_bytes")] - public ulong WriteSizeBytes { get; set; } + public ulong WriteSizeBytes { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SubnetStatus.Generated.cs b/src/Docker.DotNet/Models/SubnetStatus.Generated.cs index 13fbd74d..bc944282 100644 --- a/src/Docker.DotNet/Models/SubnetStatus.Generated.cs +++ b/src/Docker.DotNet/Models/SubnetStatus.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class SubnetStatus // (network.SubnetStatus) { [JsonPropertyName("IPsInUse")] - public ulong IPsInUse { get; set; } + public ulong IPsInUse { get; set; } = default!; [JsonPropertyName("DynamicIPsAvailable")] - public ulong DynamicIPsAvailable { get; set; } + public ulong DynamicIPsAvailable { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SummaryHostConfig.Generated.cs b/src/Docker.DotNet/Models/SummaryHostConfig.Generated.cs index 48dec7f1..bdc000b5 100644 --- a/src/Docker.DotNet/Models/SummaryHostConfig.Generated.cs +++ b/src/Docker.DotNet/Models/SummaryHostConfig.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class SummaryHostConfig // (container.Summary.HostConfig) { [JsonPropertyName("NetworkMode")] - public string NetworkMode { get; set; } + public string NetworkMode { get; set; } = default!; [JsonPropertyName("Annotations")] - public IDictionary Annotations { get; set; } + public IDictionary Annotations { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmConfig.Generated.cs b/src/Docker.DotNet/Models/SwarmConfig.Generated.cs index 30a5e4f1..6ee1f454 100644 --- a/src/Docker.DotNet/Models/SwarmConfig.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmConfig.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmConfig // (main.SwarmConfig) @@ -17,18 +18,18 @@ public SwarmConfig(Meta Meta) } [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } + public Version Version { get; set; } = default!; [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } + public DateTime CreatedAt { get; set; } = default!; [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } + public DateTime UpdatedAt { get; set; } = default!; [JsonPropertyName("Spec")] - public SwarmConfigSpec Spec { get; set; } + public SwarmConfigSpec Spec { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmConfigReference.Generated.cs b/src/Docker.DotNet/Models/SwarmConfigReference.Generated.cs index a6509f9c..cd40301c 100644 --- a/src/Docker.DotNet/Models/SwarmConfigReference.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmConfigReference.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmConfigReference // (swarm.ConfigReference) { [JsonPropertyName("File")] - public ConfigReferenceFileTarget File { get; set; } + public ConfigReferenceFileTarget? File { get; set; } [JsonPropertyName("Runtime")] - public ConfigReferenceRuntimeTarget Runtime { get; set; } + public ConfigReferenceRuntimeTarget? Runtime { get; set; } [JsonPropertyName("ConfigID")] - public string ConfigID { get; set; } + public string ConfigID { get; set; } = default!; [JsonPropertyName("ConfigName")] - public string ConfigName { get; set; } + public string ConfigName { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmConfigSpec.Generated.cs b/src/Docker.DotNet/Models/SwarmConfigSpec.Generated.cs index 08f24c1e..eb68c33d 100644 --- a/src/Docker.DotNet/Models/SwarmConfigSpec.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmConfigSpec.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmConfigSpec // (swarm.ConfigSpec) @@ -16,16 +17,16 @@ public SwarmConfigSpec(Annotations Annotations) } [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Data")] [JsonConverter(typeof(Base64Converter))] - public IList Data { get; set; } + public IList Data { get; set; } = default!; [JsonPropertyName("Templating")] - public SwarmDriver Templating { get; set; } + public SwarmDriver? Templating { get; set; } } } diff --git a/src/Docker.DotNet/Models/SwarmCreateConfigParameters.Generated.cs b/src/Docker.DotNet/Models/SwarmCreateConfigParameters.Generated.cs index 7f21439c..2dccffa8 100644 --- a/src/Docker.DotNet/Models/SwarmCreateConfigParameters.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmCreateConfigParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmCreateConfigParameters // (main.SwarmCreateConfigParameters) { [JsonPropertyName("Config")] - public SwarmConfigSpec Config { get; set; } + public SwarmConfigSpec Config { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmCreateConfigResponse.Generated.cs b/src/Docker.DotNet/Models/SwarmCreateConfigResponse.Generated.cs index 8f66b7d1..15052e16 100644 --- a/src/Docker.DotNet/Models/SwarmCreateConfigResponse.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmCreateConfigResponse.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmCreateConfigResponse // (main.SwarmCreateConfigResponse) { [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmDriver.Generated.cs b/src/Docker.DotNet/Models/SwarmDriver.Generated.cs index c2ae83e7..93fdcb7a 100644 --- a/src/Docker.DotNet/Models/SwarmDriver.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmDriver.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmDriver // (swarm.Driver) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Options")] - public IDictionary Options { get; set; } + public IDictionary Options { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmIPAMConfig.Generated.cs b/src/Docker.DotNet/Models/SwarmIPAMConfig.Generated.cs index 75c0c8f7..f06517b6 100644 --- a/src/Docker.DotNet/Models/SwarmIPAMConfig.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmIPAMConfig.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmIPAMConfig // (swarm.IPAMConfig) { [JsonPropertyName("Subnet")] - public string Subnet { get; set; } + public string Subnet { get; set; } = default!; [JsonPropertyName("Range")] - public string Range { get; set; } + public string Range { get; set; } = default!; [JsonPropertyName("Gateway")] - public string Gateway { get; set; } + public string Gateway { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmInitParameters.Generated.cs b/src/Docker.DotNet/Models/SwarmInitParameters.Generated.cs index 8c489ecf..ec05fc60 100644 --- a/src/Docker.DotNet/Models/SwarmInitParameters.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmInitParameters.Generated.cs @@ -1,35 +1,36 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmInitParameters // (swarm.InitRequest) { [JsonPropertyName("ListenAddr")] - public string ListenAddr { get; set; } + public string ListenAddr { get; set; } = default!; [JsonPropertyName("AdvertiseAddr")] - public string AdvertiseAddr { get; set; } + public string AdvertiseAddr { get; set; } = default!; [JsonPropertyName("DataPathAddr")] - public string DataPathAddr { get; set; } + public string DataPathAddr { get; set; } = default!; [JsonPropertyName("DataPathPort")] - public uint DataPathPort { get; set; } + public uint DataPathPort { get; set; } = default!; [JsonPropertyName("ForceNewCluster")] - public bool ForceNewCluster { get; set; } + public bool ForceNewCluster { get; set; } = default!; [JsonPropertyName("Spec")] - public Spec Spec { get; set; } + public Spec Spec { get; set; } = default!; [JsonPropertyName("AutoLockManagers")] - public bool AutoLockManagers { get; set; } + public bool AutoLockManagers { get; set; } = default!; [JsonPropertyName("Availability")] - public string Availability { get; set; } + public string Availability { get; set; } = default!; [JsonPropertyName("DefaultAddrPool")] - public IList DefaultAddrPool { get; set; } + public IList DefaultAddrPool { get; set; } = default!; [JsonPropertyName("SubnetSize")] - public uint SubnetSize { get; set; } + public uint SubnetSize { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmInspectResponse.Generated.cs b/src/Docker.DotNet/Models/SwarmInspectResponse.Generated.cs index dfaab19b..a8e65b46 100644 --- a/src/Docker.DotNet/Models/SwarmInspectResponse.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmInspectResponse.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmInspectResponse // (swarm.Swarm) @@ -24,36 +25,36 @@ public SwarmInspectResponse(ClusterInfo ClusterInfo) } [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } + public Version Version { get; set; } = default!; [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } + public DateTime CreatedAt { get; set; } = default!; [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } + public DateTime UpdatedAt { get; set; } = default!; [JsonPropertyName("Spec")] - public Spec Spec { get; set; } + public Spec Spec { get; set; } = default!; [JsonPropertyName("TLSInfo")] - public TLSInfo TLSInfo { get; set; } + public TLSInfo TLSInfo { get; set; } = default!; [JsonPropertyName("RootRotationInProgress")] - public bool RootRotationInProgress { get; set; } + public bool RootRotationInProgress { get; set; } = default!; [JsonPropertyName("DefaultAddrPool")] - public IList DefaultAddrPool { get; set; } + public IList DefaultAddrPool { get; set; } = default!; [JsonPropertyName("SubnetSize")] - public uint SubnetSize { get; set; } + public uint SubnetSize { get; set; } = default!; [JsonPropertyName("DataPathPort")] - public uint DataPathPort { get; set; } + public uint DataPathPort { get; set; } = default!; [JsonPropertyName("JoinTokens")] - public JoinTokens JoinTokens { get; set; } + public JoinTokens JoinTokens { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmJoinParameters.Generated.cs b/src/Docker.DotNet/Models/SwarmJoinParameters.Generated.cs index 2915dedb..a10f51d1 100644 --- a/src/Docker.DotNet/Models/SwarmJoinParameters.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmJoinParameters.Generated.cs @@ -1,23 +1,24 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmJoinParameters // (swarm.JoinRequest) { [JsonPropertyName("ListenAddr")] - public string ListenAddr { get; set; } + public string ListenAddr { get; set; } = default!; [JsonPropertyName("AdvertiseAddr")] - public string AdvertiseAddr { get; set; } + public string AdvertiseAddr { get; set; } = default!; [JsonPropertyName("DataPathAddr")] - public string DataPathAddr { get; set; } + public string DataPathAddr { get; set; } = default!; [JsonPropertyName("RemoteAddrs")] - public IList RemoteAddrs { get; set; } + public IList RemoteAddrs { get; set; } = default!; [JsonPropertyName("JoinToken")] - public string JoinToken { get; set; } + public string JoinToken { get; set; } = default!; [JsonPropertyName("Availability")] - public string Availability { get; set; } + public string Availability { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmLeaveParameters.Generated.cs b/src/Docker.DotNet/Models/SwarmLeaveParameters.Generated.cs index fe7744ca..a3109483 100644 --- a/src/Docker.DotNet/Models/SwarmLeaveParameters.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmLeaveParameters.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmLeaveParameters // (main.SwarmLeaveParameters) diff --git a/src/Docker.DotNet/Models/SwarmLimit.Generated.cs b/src/Docker.DotNet/Models/SwarmLimit.Generated.cs index b2213ca6..be9c6b58 100644 --- a/src/Docker.DotNet/Models/SwarmLimit.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmLimit.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmLimit // (swarm.Limit) { [JsonPropertyName("NanoCPUs")] - public long NanoCPUs { get; set; } + public long NanoCPUs { get; set; } = default!; [JsonPropertyName("MemoryBytes")] - public long MemoryBytes { get; set; } + public long MemoryBytes { get; set; } = default!; [JsonPropertyName("Pids")] - public long Pids { get; set; } + public long Pids { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmNetwork.Generated.cs b/src/Docker.DotNet/Models/SwarmNetwork.Generated.cs index c3ef8537..ac993796 100644 --- a/src/Docker.DotNet/Models/SwarmNetwork.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmNetwork.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmNetwork // (swarm.Network) @@ -17,24 +18,24 @@ public SwarmNetwork(Meta Meta) } [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } + public Version Version { get; set; } = default!; [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } + public DateTime CreatedAt { get; set; } = default!; [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } + public DateTime UpdatedAt { get; set; } = default!; [JsonPropertyName("Spec")] - public NetworkSpec Spec { get; set; } + public NetworkSpec Spec { get; set; } = default!; [JsonPropertyName("DriverState")] - public SwarmDriver DriverState { get; set; } + public SwarmDriver DriverState { get; set; } = default!; [JsonPropertyName("IPAMOptions")] - public IPAMOptions IPAMOptions { get; set; } + public IPAMOptions? IPAMOptions { get; set; } } } diff --git a/src/Docker.DotNet/Models/SwarmPlatform.Generated.cs b/src/Docker.DotNet/Models/SwarmPlatform.Generated.cs index 1824e278..48142c74 100644 --- a/src/Docker.DotNet/Models/SwarmPlatform.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmPlatform.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmPlatform // (swarm.Platform) { [JsonPropertyName("Architecture")] - public string Architecture { get; set; } + public string Architecture { get; set; } = default!; [JsonPropertyName("OS")] - public string OS { get; set; } + public string OS { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmResources.Generated.cs b/src/Docker.DotNet/Models/SwarmResources.Generated.cs index 67545844..ce0bf553 100644 --- a/src/Docker.DotNet/Models/SwarmResources.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmResources.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmResources // (swarm.Resources) { [JsonPropertyName("NanoCPUs")] - public long NanoCPUs { get; set; } + public long NanoCPUs { get; set; } = default!; [JsonPropertyName("MemoryBytes")] - public long MemoryBytes { get; set; } + public long MemoryBytes { get; set; } = default!; [JsonPropertyName("GenericResources")] - public IList GenericResources { get; set; } + public IList GenericResources { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmRestartPolicy.Generated.cs b/src/Docker.DotNet/Models/SwarmRestartPolicy.Generated.cs index 43d32805..a8f2645d 100644 --- a/src/Docker.DotNet/Models/SwarmRestartPolicy.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmRestartPolicy.Generated.cs @@ -1,9 +1,10 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmRestartPolicy // (swarm.RestartPolicy) { [JsonPropertyName("Condition")] - public string Condition { get; set; } + public string Condition { get; set; } = default!; [JsonPropertyName("Delay")] public long? Delay { get; set; } diff --git a/src/Docker.DotNet/Models/SwarmRuntimeSpec.Generated.cs b/src/Docker.DotNet/Models/SwarmRuntimeSpec.Generated.cs index a34d876e..0d1b7da6 100644 --- a/src/Docker.DotNet/Models/SwarmRuntimeSpec.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmRuntimeSpec.Generated.cs @@ -1,20 +1,21 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmRuntimeSpec // (swarm.RuntimeSpec) { [JsonPropertyName("name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("remote")] - public string Remote { get; set; } + public string Remote { get; set; } = default!; [JsonPropertyName("privileges")] - public IList Privileges { get; set; } + public IList Privileges { get; set; } = default!; [JsonPropertyName("disabled")] - public bool Disabled { get; set; } + public bool Disabled { get; set; } = default!; [JsonPropertyName("env")] - public IList Env { get; set; } + public IList Env { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmSecretSpec.Generated.cs b/src/Docker.DotNet/Models/SwarmSecretSpec.Generated.cs index 332b0852..917145f0 100644 --- a/src/Docker.DotNet/Models/SwarmSecretSpec.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmSecretSpec.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmSecretSpec // (swarm.SecretSpec) @@ -16,19 +17,19 @@ public SwarmSecretSpec(Annotations Annotations) } [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Data")] [JsonConverter(typeof(Base64Converter))] - public IList Data { get; set; } + public IList Data { get; set; } = default!; [JsonPropertyName("Driver")] - public SwarmDriver Driver { get; set; } + public SwarmDriver? Driver { get; set; } [JsonPropertyName("Templating")] - public SwarmDriver Templating { get; set; } + public SwarmDriver? Templating { get; set; } } } diff --git a/src/Docker.DotNet/Models/SwarmService.Generated.cs b/src/Docker.DotNet/Models/SwarmService.Generated.cs index 06f04531..1a7e641d 100644 --- a/src/Docker.DotNet/Models/SwarmService.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmService.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmService // (swarm.Service) @@ -17,33 +18,33 @@ public SwarmService(Meta Meta) } [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } + public Version Version { get; set; } = default!; [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } + public DateTime CreatedAt { get; set; } = default!; [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } + public DateTime UpdatedAt { get; set; } = default!; [JsonPropertyName("Spec")] - public ServiceSpec Spec { get; set; } + public ServiceSpec Spec { get; set; } = default!; [JsonPropertyName("PreviousSpec")] - public ServiceSpec PreviousSpec { get; set; } + public ServiceSpec? PreviousSpec { get; set; } [JsonPropertyName("Endpoint")] - public Endpoint Endpoint { get; set; } + public Endpoint Endpoint { get; set; } = default!; [JsonPropertyName("UpdateStatus")] - public UpdateStatus UpdateStatus { get; set; } + public UpdateStatus? UpdateStatus { get; set; } [JsonPropertyName("ServiceStatus")] - public ServiceStatus ServiceStatus { get; set; } + public ServiceStatus? ServiceStatus { get; set; } [JsonPropertyName("JobStatus")] - public JobStatus JobStatus { get; set; } + public JobStatus? JobStatus { get; set; } } } diff --git a/src/Docker.DotNet/Models/SwarmUnlockParameters.Generated.cs b/src/Docker.DotNet/Models/SwarmUnlockParameters.Generated.cs index 62d7ea28..4619eed0 100644 --- a/src/Docker.DotNet/Models/SwarmUnlockParameters.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmUnlockParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmUnlockParameters // (main.SwarmUnlockParameters) { [JsonPropertyName("UnlockKey")] - public string UnlockKey { get; set; } + public string UnlockKey { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmUnlockResponse.Generated.cs b/src/Docker.DotNet/Models/SwarmUnlockResponse.Generated.cs index 8433c521..170d4a22 100644 --- a/src/Docker.DotNet/Models/SwarmUnlockResponse.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmUnlockResponse.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmUnlockResponse // (main.SwarmUnlockResponse) { [JsonPropertyName("UnlockKey")] - public string UnlockKey { get; set; } + public string UnlockKey { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmUpdateConfig.Generated.cs b/src/Docker.DotNet/Models/SwarmUpdateConfig.Generated.cs index 85ee97af..edde4867 100644 --- a/src/Docker.DotNet/Models/SwarmUpdateConfig.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmUpdateConfig.Generated.cs @@ -1,23 +1,24 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmUpdateConfig // (swarm.UpdateConfig) { [JsonPropertyName("Parallelism")] - public ulong Parallelism { get; set; } + public ulong Parallelism { get; set; } = default!; [JsonPropertyName("Delay")] - public long Delay { get; set; } + public long Delay { get; set; } = default!; [JsonPropertyName("FailureAction")] - public string FailureAction { get; set; } + public string FailureAction { get; set; } = default!; [JsonPropertyName("Monitor")] - public long Monitor { get; set; } + public long Monitor { get; set; } = default!; [JsonPropertyName("MaxFailureRatio")] - public float MaxFailureRatio { get; set; } + public float MaxFailureRatio { get; set; } = default!; [JsonPropertyName("Order")] - public string Order { get; set; } + public string Order { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmUpdateConfigParameters.Generated.cs b/src/Docker.DotNet/Models/SwarmUpdateConfigParameters.Generated.cs index 54c6ff86..a3453c53 100644 --- a/src/Docker.DotNet/Models/SwarmUpdateConfigParameters.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmUpdateConfigParameters.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmUpdateConfigParameters // (main.SwarmUpdateConfigParameters) { [JsonPropertyName("Config")] - public SwarmConfigSpec Config { get; set; } + public SwarmConfigSpec Config { get; set; } = default!; [QueryStringParameter("version", true)] - public long Version { get; set; } + public long Version { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/SwarmUpdateParameters.Generated.cs b/src/Docker.DotNet/Models/SwarmUpdateParameters.Generated.cs index 098a7b20..0d1c6b93 100644 --- a/src/Docker.DotNet/Models/SwarmUpdateParameters.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmUpdateParameters.Generated.cs @@ -1,12 +1,13 @@ +#nullable enable namespace Docker.DotNet.Models { public class SwarmUpdateParameters // (main.SwarmUpdateParameters) { [JsonPropertyName("Spec")] - public Spec Spec { get; set; } + public Spec Spec { get; set; } = default!; [QueryStringParameter("version", true)] - public long Version { get; set; } + public long Version { get; set; } = default!; [QueryStringParameter("rotateworkertoken", false, typeof(BoolQueryStringConverter))] public bool? RotateWorkerToken { get; set; } diff --git a/src/Docker.DotNet/Models/SystemInfoResponse.Generated.cs b/src/Docker.DotNet/Models/SystemInfoResponse.Generated.cs index 515f2591..f599c80d 100644 --- a/src/Docker.DotNet/Models/SystemInfoResponse.Generated.cs +++ b/src/Docker.DotNet/Models/SystemInfoResponse.Generated.cs @@ -1,191 +1,192 @@ +#nullable enable namespace Docker.DotNet.Models { public class SystemInfoResponse // (system.Info) { [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Containers")] - public long Containers { get; set; } + public long Containers { get; set; } = default!; [JsonPropertyName("ContainersRunning")] - public long ContainersRunning { get; set; } + public long ContainersRunning { get; set; } = default!; [JsonPropertyName("ContainersPaused")] - public long ContainersPaused { get; set; } + public long ContainersPaused { get; set; } = default!; [JsonPropertyName("ContainersStopped")] - public long ContainersStopped { get; set; } + public long ContainersStopped { get; set; } = default!; [JsonPropertyName("Images")] - public long Images { get; set; } + public long Images { get; set; } = default!; [JsonPropertyName("Driver")] - public string Driver { get; set; } + public string Driver { get; set; } = default!; [JsonPropertyName("DriverStatus")] - public IList DriverStatus { get; set; } + public IList DriverStatus { get; set; } = default!; [JsonPropertyName("SystemStatus")] - public IList SystemStatus { get; set; } + public IList SystemStatus { get; set; } = default!; [JsonPropertyName("Plugins")] - public PluginsInfo Plugins { get; set; } + public PluginsInfo Plugins { get; set; } = default!; [JsonPropertyName("MemoryLimit")] - public bool MemoryLimit { get; set; } + public bool MemoryLimit { get; set; } = default!; [JsonPropertyName("SwapLimit")] - public bool SwapLimit { get; set; } + public bool SwapLimit { get; set; } = default!; [JsonPropertyName("CpuCfsPeriod")] - public bool CPUCfsPeriod { get; set; } + public bool CPUCfsPeriod { get; set; } = default!; [JsonPropertyName("CpuCfsQuota")] - public bool CPUCfsQuota { get; set; } + public bool CPUCfsQuota { get; set; } = default!; [JsonPropertyName("CPUShares")] - public bool CPUShares { get; set; } + public bool CPUShares { get; set; } = default!; [JsonPropertyName("CPUSet")] - public bool CPUSet { get; set; } + public bool CPUSet { get; set; } = default!; [JsonPropertyName("PidsLimit")] - public bool PidsLimit { get; set; } + public bool PidsLimit { get; set; } = default!; [JsonPropertyName("IPv4Forwarding")] - public bool IPv4Forwarding { get; set; } + public bool IPv4Forwarding { get; set; } = default!; [JsonPropertyName("Debug")] - public bool Debug { get; set; } + public bool Debug { get; set; } = default!; [JsonPropertyName("NFd")] - public long NFd { get; set; } + public long NFd { get; set; } = default!; [JsonPropertyName("OomKillDisable")] - public bool OomKillDisable { get; set; } + public bool OomKillDisable { get; set; } = default!; [JsonPropertyName("NGoroutines")] - public long NGoroutines { get; set; } + public long NGoroutines { get; set; } = default!; [JsonPropertyName("SystemTime")] - public string SystemTime { get; set; } + public string SystemTime { get; set; } = default!; [JsonPropertyName("LoggingDriver")] - public string LoggingDriver { get; set; } + public string LoggingDriver { get; set; } = default!; [JsonPropertyName("CgroupDriver")] - public string CgroupDriver { get; set; } + public string CgroupDriver { get; set; } = default!; [JsonPropertyName("CgroupVersion")] - public string CgroupVersion { get; set; } + public string CgroupVersion { get; set; } = default!; [JsonPropertyName("NEventsListener")] - public long NEventsListener { get; set; } + public long NEventsListener { get; set; } = default!; [JsonPropertyName("KernelVersion")] - public string KernelVersion { get; set; } + public string KernelVersion { get; set; } = default!; [JsonPropertyName("OperatingSystem")] - public string OperatingSystem { get; set; } + public string OperatingSystem { get; set; } = default!; [JsonPropertyName("OSVersion")] - public string OSVersion { get; set; } + public string OSVersion { get; set; } = default!; [JsonPropertyName("OSType")] - public string OSType { get; set; } + public string OSType { get; set; } = default!; [JsonPropertyName("Architecture")] - public string Architecture { get; set; } + public string Architecture { get; set; } = default!; [JsonPropertyName("IndexServerAddress")] - public string IndexServerAddress { get; set; } + public string IndexServerAddress { get; set; } = default!; [JsonPropertyName("RegistryConfig")] - public ServiceConfig RegistryConfig { get; set; } + public ServiceConfig? RegistryConfig { get; set; } [JsonPropertyName("NCPU")] - public long NCPU { get; set; } + public long NCPU { get; set; } = default!; [JsonPropertyName("MemTotal")] - public long MemTotal { get; set; } + public long MemTotal { get; set; } = default!; [JsonPropertyName("GenericResources")] - public IList GenericResources { get; set; } + public IList GenericResources { get; set; } = default!; [JsonPropertyName("DockerRootDir")] - public string DockerRootDir { get; set; } + public string DockerRootDir { get; set; } = default!; [JsonPropertyName("HttpProxy")] - public string HTTPProxy { get; set; } + public string HTTPProxy { get; set; } = default!; [JsonPropertyName("HttpsProxy")] - public string HTTPSProxy { get; set; } + public string HTTPSProxy { get; set; } = default!; [JsonPropertyName("NoProxy")] - public string NoProxy { get; set; } + public string NoProxy { get; set; } = default!; [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Labels")] - public IList Labels { get; set; } + public IList Labels { get; set; } = default!; [JsonPropertyName("ExperimentalBuild")] - public bool ExperimentalBuild { get; set; } + public bool ExperimentalBuild { get; set; } = default!; [JsonPropertyName("ServerVersion")] - public string ServerVersion { get; set; } + public string ServerVersion { get; set; } = default!; [JsonPropertyName("Runtimes")] - public IDictionary Runtimes { get; set; } + public IDictionary Runtimes { get; set; } = default!; [JsonPropertyName("DefaultRuntime")] - public string DefaultRuntime { get; set; } + public string DefaultRuntime { get; set; } = default!; [JsonPropertyName("Swarm")] - public Info Swarm { get; set; } + public Info Swarm { get; set; } = default!; [JsonPropertyName("LiveRestoreEnabled")] - public bool LiveRestoreEnabled { get; set; } + public bool LiveRestoreEnabled { get; set; } = default!; [JsonPropertyName("Isolation")] - public string Isolation { get; set; } + public string Isolation { get; set; } = default!; [JsonPropertyName("InitBinary")] - public string InitBinary { get; set; } + public string InitBinary { get; set; } = default!; [JsonPropertyName("ContainerdCommit")] - public Commit ContainerdCommit { get; set; } + public Commit ContainerdCommit { get; set; } = default!; [JsonPropertyName("RuncCommit")] - public Commit RuncCommit { get; set; } + public Commit RuncCommit { get; set; } = default!; [JsonPropertyName("InitCommit")] - public Commit InitCommit { get; set; } + public Commit InitCommit { get; set; } = default!; [JsonPropertyName("SecurityOptions")] - public IList SecurityOptions { get; set; } + public IList SecurityOptions { get; set; } = default!; [JsonPropertyName("ProductLicense")] - public string ProductLicense { get; set; } + public string ProductLicense { get; set; } = default!; [JsonPropertyName("DefaultAddressPools")] - public IList DefaultAddressPools { get; set; } + public IList DefaultAddressPools { get; set; } = default!; [JsonPropertyName("FirewallBackend")] - public FirewallInfo FirewallBackend { get; set; } + public FirewallInfo? FirewallBackend { get; set; } [JsonPropertyName("CDISpecDirs")] - public IList CDISpecDirs { get; set; } + public IList CDISpecDirs { get; set; } = default!; [JsonPropertyName("DiscoveredDevices")] - public IList DiscoveredDevices { get; set; } + public IList DiscoveredDevices { get; set; } = default!; [JsonPropertyName("Containerd")] - public ContainerdInfo Containerd { get; set; } + public ContainerdInfo? Containerd { get; set; } [JsonPropertyName("Warnings")] - public IList Warnings { get; set; } + public IList Warnings { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/TLSInfo.Generated.cs b/src/Docker.DotNet/Models/TLSInfo.Generated.cs index 340317da..3cbd1718 100644 --- a/src/Docker.DotNet/Models/TLSInfo.Generated.cs +++ b/src/Docker.DotNet/Models/TLSInfo.Generated.cs @@ -1,16 +1,17 @@ +#nullable enable namespace Docker.DotNet.Models { public class TLSInfo // (swarm.TLSInfo) { [JsonPropertyName("TrustRoot")] - public string TrustRoot { get; set; } + public string TrustRoot { get; set; } = default!; [JsonPropertyName("CertIssuerSubject")] [JsonConverter(typeof(Base64Converter))] - public IList CertIssuerSubject { get; set; } + public IList CertIssuerSubject { get; set; } = default!; [JsonPropertyName("CertIssuerPublicKey")] [JsonConverter(typeof(Base64Converter))] - public IList CertIssuerPublicKey { get; set; } + public IList CertIssuerPublicKey { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/TaskDefaults.Generated.cs b/src/Docker.DotNet/Models/TaskDefaults.Generated.cs index 30ee78dd..9e5de5ba 100644 --- a/src/Docker.DotNet/Models/TaskDefaults.Generated.cs +++ b/src/Docker.DotNet/Models/TaskDefaults.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class TaskDefaults // (swarm.TaskDefaults) { [JsonPropertyName("LogDriver")] - public SwarmDriver LogDriver { get; set; } + public SwarmDriver? LogDriver { get; set; } } } diff --git a/src/Docker.DotNet/Models/TaskResponse.Generated.cs b/src/Docker.DotNet/Models/TaskResponse.Generated.cs index befbc242..b1dadc9f 100644 --- a/src/Docker.DotNet/Models/TaskResponse.Generated.cs +++ b/src/Docker.DotNet/Models/TaskResponse.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class TaskResponse // (swarm.Task) @@ -23,51 +24,51 @@ public TaskResponse(Meta Meta, Annotations Annotations) } [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } + public Version Version { get; set; } = default!; [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } + public DateTime CreatedAt { get; set; } = default!; [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } + public DateTime UpdatedAt { get; set; } = default!; [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Spec")] - public TaskSpec Spec { get; set; } + public TaskSpec Spec { get; set; } = default!; [JsonPropertyName("ServiceID")] - public string ServiceID { get; set; } + public string ServiceID { get; set; } = default!; [JsonPropertyName("Slot")] - public long Slot { get; set; } + public long Slot { get; set; } = default!; [JsonPropertyName("NodeID")] - public string NodeID { get; set; } + public string NodeID { get; set; } = default!; [JsonPropertyName("Status")] - public TaskStatus Status { get; set; } + public TaskStatus Status { get; set; } = default!; [JsonPropertyName("DesiredState")] - public TaskState DesiredState { get; set; } + public TaskState DesiredState { get; set; } = default!; [JsonPropertyName("NetworksAttachments")] - public IList NetworksAttachments { get; set; } + public IList NetworksAttachments { get; set; } = default!; [JsonPropertyName("GenericResources")] - public IList GenericResources { get; set; } + public IList GenericResources { get; set; } = default!; [JsonPropertyName("JobIteration")] - public Version JobIteration { get; set; } + public Version? JobIteration { get; set; } [JsonPropertyName("Volumes")] - public IList Volumes { get; set; } + public IList Volumes { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/TaskSpec.Generated.cs b/src/Docker.DotNet/Models/TaskSpec.Generated.cs index e3b49f32..cb86ee30 100644 --- a/src/Docker.DotNet/Models/TaskSpec.Generated.cs +++ b/src/Docker.DotNet/Models/TaskSpec.Generated.cs @@ -1,35 +1,36 @@ +#nullable enable namespace Docker.DotNet.Models { public class TaskSpec // (swarm.TaskSpec) { [JsonPropertyName("ContainerSpec")] - public ContainerSpec ContainerSpec { get; set; } + public ContainerSpec? ContainerSpec { get; set; } [JsonPropertyName("PluginSpec")] - public SwarmRuntimeSpec PluginSpec { get; set; } + public SwarmRuntimeSpec? PluginSpec { get; set; } [JsonPropertyName("NetworkAttachmentSpec")] - public NetworkAttachmentSpec NetworkAttachmentSpec { get; set; } + public NetworkAttachmentSpec? NetworkAttachmentSpec { get; set; } [JsonPropertyName("Resources")] - public ResourceRequirements Resources { get; set; } + public ResourceRequirements? Resources { get; set; } [JsonPropertyName("RestartPolicy")] - public SwarmRestartPolicy RestartPolicy { get; set; } + public SwarmRestartPolicy? RestartPolicy { get; set; } [JsonPropertyName("Placement")] - public Placement Placement { get; set; } + public Placement? Placement { get; set; } [JsonPropertyName("Networks")] - public IList Networks { get; set; } + public IList Networks { get; set; } = default!; [JsonPropertyName("LogDriver")] - public SwarmDriver LogDriver { get; set; } + public SwarmDriver? LogDriver { get; set; } [JsonPropertyName("ForceUpdate")] - public ulong ForceUpdate { get; set; } + public ulong ForceUpdate { get; set; } = default!; [JsonPropertyName("Runtime")] - public string Runtime { get; set; } + public string Runtime { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/TaskStatus.Generated.cs b/src/Docker.DotNet/Models/TaskStatus.Generated.cs index 8ccb84d7..a0de7b84 100644 --- a/src/Docker.DotNet/Models/TaskStatus.Generated.cs +++ b/src/Docker.DotNet/Models/TaskStatus.Generated.cs @@ -1,23 +1,24 @@ +#nullable enable namespace Docker.DotNet.Models { public class TaskStatus // (swarm.TaskStatus) { [JsonPropertyName("Timestamp")] - public DateTime Timestamp { get; set; } + public DateTime Timestamp { get; set; } = default!; [JsonPropertyName("State")] - public TaskState State { get; set; } + public TaskState State { get; set; } = default!; [JsonPropertyName("Message")] - public string Message { get; set; } + public string Message { get; set; } = default!; [JsonPropertyName("Err")] - public string Err { get; set; } + public string Err { get; set; } = default!; [JsonPropertyName("ContainerStatus")] - public ContainerStatus ContainerStatus { get; set; } + public ContainerStatus? ContainerStatus { get; set; } [JsonPropertyName("PortStatus")] - public PortStatus PortStatus { get; set; } + public PortStatus PortStatus { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/TasksListParameters.Generated.cs b/src/Docker.DotNet/Models/TasksListParameters.Generated.cs index 5628b666..d7d781d0 100644 --- a/src/Docker.DotNet/Models/TasksListParameters.Generated.cs +++ b/src/Docker.DotNet/Models/TasksListParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class TasksListParameters // (main.TasksListParameters) { [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } } } diff --git a/src/Docker.DotNet/Models/ThrottleDevice.Generated.cs b/src/Docker.DotNet/Models/ThrottleDevice.Generated.cs index 3542155b..41acfd09 100644 --- a/src/Docker.DotNet/Models/ThrottleDevice.Generated.cs +++ b/src/Docker.DotNet/Models/ThrottleDevice.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class ThrottleDevice // (blkiodev.ThrottleDevice) { [JsonPropertyName("Path")] - public string Path { get; set; } + public string Path { get; set; } = default!; [JsonPropertyName("Rate")] - public ulong Rate { get; set; } + public ulong Rate { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/ThrottlingData.Generated.cs b/src/Docker.DotNet/Models/ThrottlingData.Generated.cs index bb1caa2d..3943049c 100644 --- a/src/Docker.DotNet/Models/ThrottlingData.Generated.cs +++ b/src/Docker.DotNet/Models/ThrottlingData.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class ThrottlingData // (container.ThrottlingData) { [JsonPropertyName("periods")] - public ulong Periods { get; set; } + public ulong Periods { get; set; } = default!; [JsonPropertyName("throttled_periods")] - public ulong ThrottledPeriods { get; set; } + public ulong ThrottledPeriods { get; set; } = default!; [JsonPropertyName("throttled_time")] - public ulong ThrottledTime { get; set; } + public ulong ThrottledTime { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/TmpfsOptions.Generated.cs b/src/Docker.DotNet/Models/TmpfsOptions.Generated.cs index 745ef46a..5e659e68 100644 --- a/src/Docker.DotNet/Models/TmpfsOptions.Generated.cs +++ b/src/Docker.DotNet/Models/TmpfsOptions.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class TmpfsOptions // (mount.TmpfsOptions) { [JsonPropertyName("SizeBytes")] - public long SizeBytes { get; set; } + public long SizeBytes { get; set; } = default!; [JsonPropertyName("Mode")] - public uint Mode { get; set; } + public uint Mode { get; set; } = default!; [JsonPropertyName("Options")] - public IList> Options { get; set; } + public IList> Options { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Topology.Generated.cs b/src/Docker.DotNet/Models/Topology.Generated.cs index 316fbc6e..3cfd250d 100644 --- a/src/Docker.DotNet/Models/Topology.Generated.cs +++ b/src/Docker.DotNet/Models/Topology.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class Topology // (swarm.Topology) { [JsonPropertyName("Segments")] - public IDictionary Segments { get; set; } + public IDictionary Segments { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/TopologyRequirement.Generated.cs b/src/Docker.DotNet/Models/TopologyRequirement.Generated.cs index 93db87d2..996ca9b9 100644 --- a/src/Docker.DotNet/Models/TopologyRequirement.Generated.cs +++ b/src/Docker.DotNet/Models/TopologyRequirement.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class TopologyRequirement // (volume.TopologyRequirement) { [JsonPropertyName("Requisite")] - public IList Requisite { get; set; } + public IList Requisite { get; set; } = default!; [JsonPropertyName("Preferred")] - public IList Preferred { get; set; } + public IList Preferred { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/TypeBlock.Generated.cs b/src/Docker.DotNet/Models/TypeBlock.Generated.cs index 7ac81fa9..75c6174d 100644 --- a/src/Docker.DotNet/Models/TypeBlock.Generated.cs +++ b/src/Docker.DotNet/Models/TypeBlock.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class TypeBlock // (volume.TypeBlock) diff --git a/src/Docker.DotNet/Models/TypeMount.Generated.cs b/src/Docker.DotNet/Models/TypeMount.Generated.cs index e4211861..0e335581 100644 --- a/src/Docker.DotNet/Models/TypeMount.Generated.cs +++ b/src/Docker.DotNet/Models/TypeMount.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class TypeMount // (volume.TypeMount) { [JsonPropertyName("FsType")] - public string FsType { get; set; } + public string FsType { get; set; } = default!; [JsonPropertyName("MountFlags")] - public IList MountFlags { get; set; } + public IList MountFlags { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Ulimit.Generated.cs b/src/Docker.DotNet/Models/Ulimit.Generated.cs index 384881bd..a115109c 100644 --- a/src/Docker.DotNet/Models/Ulimit.Generated.cs +++ b/src/Docker.DotNet/Models/Ulimit.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class Ulimit // (units.Ulimit) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Hard")] - public long Hard { get; set; } + public long Hard { get; set; } = default!; [JsonPropertyName("Soft")] - public long Soft { get; set; } + public long Soft { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/UpdateConfig.Generated.cs b/src/Docker.DotNet/Models/UpdateConfig.Generated.cs index caf3fc80..81c2cba9 100644 --- a/src/Docker.DotNet/Models/UpdateConfig.Generated.cs +++ b/src/Docker.DotNet/Models/UpdateConfig.Generated.cs @@ -1,3 +1,4 @@ +#nullable enable namespace Docker.DotNet.Models { public class UpdateConfig // (container.UpdateConfig) @@ -43,67 +44,67 @@ public UpdateConfig(Resources Resources) } [JsonPropertyName("CpuShares")] - public long CPUShares { get; set; } + public long CPUShares { get; set; } = default!; [JsonPropertyName("Memory")] - public long Memory { get; set; } + public long Memory { get; set; } = default!; [JsonPropertyName("NanoCpus")] - public long NanoCPUs { get; set; } + public long NanoCPUs { get; set; } = default!; [JsonPropertyName("CgroupParent")] - public string CgroupParent { get; set; } + public string CgroupParent { get; set; } = default!; [JsonPropertyName("BlkioWeight")] - public ushort BlkioWeight { get; set; } + public ushort BlkioWeight { get; set; } = default!; [JsonPropertyName("BlkioWeightDevice")] - public IList BlkioWeightDevice { get; set; } + public IList BlkioWeightDevice { get; set; } = default!; [JsonPropertyName("BlkioDeviceReadBps")] - public IList BlkioDeviceReadBps { get; set; } + public IList BlkioDeviceReadBps { get; set; } = default!; [JsonPropertyName("BlkioDeviceWriteBps")] - public IList BlkioDeviceWriteBps { get; set; } + public IList BlkioDeviceWriteBps { get; set; } = default!; [JsonPropertyName("BlkioDeviceReadIOps")] - public IList BlkioDeviceReadIOps { get; set; } + public IList BlkioDeviceReadIOps { get; set; } = default!; [JsonPropertyName("BlkioDeviceWriteIOps")] - public IList BlkioDeviceWriteIOps { get; set; } + public IList BlkioDeviceWriteIOps { get; set; } = default!; [JsonPropertyName("CpuPeriod")] - public long CPUPeriod { get; set; } + public long CPUPeriod { get; set; } = default!; [JsonPropertyName("CpuQuota")] - public long CPUQuota { get; set; } + public long CPUQuota { get; set; } = default!; [JsonPropertyName("CpuRealtimePeriod")] - public long CPURealtimePeriod { get; set; } + public long CPURealtimePeriod { get; set; } = default!; [JsonPropertyName("CpuRealtimeRuntime")] - public long CPURealtimeRuntime { get; set; } + public long CPURealtimeRuntime { get; set; } = default!; [JsonPropertyName("CpusetCpus")] - public string CpusetCpus { get; set; } + public string CpusetCpus { get; set; } = default!; [JsonPropertyName("CpusetMems")] - public string CpusetMems { get; set; } + public string CpusetMems { get; set; } = default!; [JsonPropertyName("Devices")] - public IList Devices { get; set; } + public IList Devices { get; set; } = default!; [JsonPropertyName("DeviceCgroupRules")] - public IList DeviceCgroupRules { get; set; } + public IList DeviceCgroupRules { get; set; } = default!; [JsonPropertyName("DeviceRequests")] - public IList DeviceRequests { get; set; } + public IList DeviceRequests { get; set; } = default!; [JsonPropertyName("MemoryReservation")] - public long MemoryReservation { get; set; } + public long MemoryReservation { get; set; } = default!; [JsonPropertyName("MemorySwap")] - public long MemorySwap { get; set; } + public long MemorySwap { get; set; } = default!; [JsonPropertyName("MemorySwappiness")] public long? MemorySwappiness { get; set; } @@ -115,21 +116,21 @@ public UpdateConfig(Resources Resources) public long? PidsLimit { get; set; } [JsonPropertyName("Ulimits")] - public IList Ulimits { get; set; } + public IList Ulimits { get; set; } = default!; [JsonPropertyName("CpuCount")] - public long CPUCount { get; set; } + public long CPUCount { get; set; } = default!; [JsonPropertyName("CpuPercent")] - public long CPUPercent { get; set; } + public long CPUPercent { get; set; } = default!; [JsonPropertyName("IOMaximumIOps")] - public ulong IOMaximumIOps { get; set; } + public ulong IOMaximumIOps { get; set; } = default!; [JsonPropertyName("IOMaximumBandwidth")] - public ulong IOMaximumBandwidth { get; set; } + public ulong IOMaximumBandwidth { get; set; } = default!; [JsonPropertyName("RestartPolicy")] - public RestartPolicy RestartPolicy { get; set; } + public RestartPolicy RestartPolicy { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/UpdateStatus.Generated.cs b/src/Docker.DotNet/Models/UpdateStatus.Generated.cs index 120e0811..3abf42e2 100644 --- a/src/Docker.DotNet/Models/UpdateStatus.Generated.cs +++ b/src/Docker.DotNet/Models/UpdateStatus.Generated.cs @@ -1,9 +1,10 @@ +#nullable enable namespace Docker.DotNet.Models { public class UpdateStatus // (swarm.UpdateStatus) { [JsonPropertyName("State")] - public string State { get; set; } + public string State { get; set; } = default!; [JsonPropertyName("StartedAt")] public DateTime? StartedAt { get; set; } @@ -12,6 +13,6 @@ public class UpdateStatus // (swarm.UpdateStatus) public DateTime? CompletedAt { get; set; } [JsonPropertyName("Message")] - public string Message { get; set; } + public string Message { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/UsageData.Generated.cs b/src/Docker.DotNet/Models/UsageData.Generated.cs index 746e872e..a56be3bf 100644 --- a/src/Docker.DotNet/Models/UsageData.Generated.cs +++ b/src/Docker.DotNet/Models/UsageData.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class UsageData // (volume.UsageData) { [JsonPropertyName("RefCount")] - public long RefCount { get; set; } + public long RefCount { get; set; } = default!; [JsonPropertyName("Size")] - public long Size { get; set; } + public long Size { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/Version.Generated.cs b/src/Docker.DotNet/Models/Version.Generated.cs index b0ff6922..2df0d4b3 100644 --- a/src/Docker.DotNet/Models/Version.Generated.cs +++ b/src/Docker.DotNet/Models/Version.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class Version // (swarm.Version) { [JsonPropertyName("Index")] - public ulong Index { get; set; } + public ulong Index { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/VersionResponse.Generated.cs b/src/Docker.DotNet/Models/VersionResponse.Generated.cs index 01b6776f..fbf2f27d 100644 --- a/src/Docker.DotNet/Models/VersionResponse.Generated.cs +++ b/src/Docker.DotNet/Models/VersionResponse.Generated.cs @@ -1,41 +1,42 @@ +#nullable enable namespace Docker.DotNet.Models { public class VersionResponse // (system.VersionResponse) { [JsonPropertyName("Platform")] - public PlatformInfo Platform { get; set; } + public PlatformInfo Platform { get; set; } = default!; [JsonPropertyName("Version")] - public string Version { get; set; } + public string Version { get; set; } = default!; [JsonPropertyName("ApiVersion")] - public string APIVersion { get; set; } + public string APIVersion { get; set; } = default!; [JsonPropertyName("MinAPIVersion")] - public string MinAPIVersion { get; set; } + public string MinAPIVersion { get; set; } = default!; [JsonPropertyName("Os")] - public string Os { get; set; } + public string Os { get; set; } = default!; [JsonPropertyName("Arch")] - public string Arch { get; set; } + public string Arch { get; set; } = default!; [JsonPropertyName("Components")] - public IList Components { get; set; } + public IList Components { get; set; } = default!; [JsonPropertyName("GitCommit")] - public string GitCommit { get; set; } + public string GitCommit { get; set; } = default!; [JsonPropertyName("GoVersion")] - public string GoVersion { get; set; } + public string GoVersion { get; set; } = default!; [JsonPropertyName("KernelVersion")] - public string KernelVersion { get; set; } + public string KernelVersion { get; set; } = default!; [JsonPropertyName("Experimental")] - public bool Experimental { get; set; } + public bool Experimental { get; set; } = default!; [JsonPropertyName("BuildTime")] - public string BuildTime { get; set; } + public string BuildTime { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/VolumeAccessMode.Generated.cs b/src/Docker.DotNet/Models/VolumeAccessMode.Generated.cs index 328f8aee..98ebe203 100644 --- a/src/Docker.DotNet/Models/VolumeAccessMode.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeAccessMode.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class VolumeAccessMode // (volume.AccessMode) { [JsonPropertyName("Scope")] - public string Scope { get; set; } + public string Scope { get; set; } = default!; [JsonPropertyName("Sharing")] - public string Sharing { get; set; } + public string Sharing { get; set; } = default!; [JsonPropertyName("MountVolume")] - public TypeMount MountVolume { get; set; } + public TypeMount? MountVolume { get; set; } [JsonPropertyName("BlockVolume")] - public TypeBlock BlockVolume { get; set; } + public TypeBlock? BlockVolume { get; set; } } } diff --git a/src/Docker.DotNet/Models/VolumeAttachment.Generated.cs b/src/Docker.DotNet/Models/VolumeAttachment.Generated.cs index 25e58e95..e1a81659 100644 --- a/src/Docker.DotNet/Models/VolumeAttachment.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeAttachment.Generated.cs @@ -1,14 +1,15 @@ +#nullable enable namespace Docker.DotNet.Models { public class VolumeAttachment // (swarm.VolumeAttachment) { [JsonPropertyName("ID")] - public string ID { get; set; } + public string ID { get; set; } = default!; [JsonPropertyName("Source")] - public string Source { get; set; } + public string Source { get; set; } = default!; [JsonPropertyName("Target")] - public string Target { get; set; } + public string Target { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/VolumeInfo.Generated.cs b/src/Docker.DotNet/Models/VolumeInfo.Generated.cs index 78736f97..75ee38d0 100644 --- a/src/Docker.DotNet/Models/VolumeInfo.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeInfo.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class VolumeInfo // (volume.Info) { [JsonPropertyName("CapacityBytes")] - public long CapacityBytes { get; set; } + public long CapacityBytes { get; set; } = default!; [JsonPropertyName("VolumeContext")] - public IDictionary VolumeContext { get; set; } + public IDictionary VolumeContext { get; set; } = default!; [JsonPropertyName("VolumeID")] - public string VolumeID { get; set; } + public string VolumeID { get; set; } = default!; [JsonPropertyName("AccessibleTopology")] - public IList AccessibleTopology { get; set; } + public IList AccessibleTopology { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/VolumeOptions.Generated.cs b/src/Docker.DotNet/Models/VolumeOptions.Generated.cs index 75a0ef8e..11587e37 100644 --- a/src/Docker.DotNet/Models/VolumeOptions.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeOptions.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class VolumeOptions // (mount.VolumeOptions) { [JsonPropertyName("NoCopy")] - public bool NoCopy { get; set; } + public bool NoCopy { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Subpath")] - public string Subpath { get; set; } + public string Subpath { get; set; } = default!; [JsonPropertyName("DriverConfig")] - public Driver DriverConfig { get; set; } + public Driver? DriverConfig { get; set; } } } diff --git a/src/Docker.DotNet/Models/VolumeResponse.Generated.cs b/src/Docker.DotNet/Models/VolumeResponse.Generated.cs index 8d976c9c..1a091e95 100644 --- a/src/Docker.DotNet/Models/VolumeResponse.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeResponse.Generated.cs @@ -1,35 +1,36 @@ +#nullable enable namespace Docker.DotNet.Models { public class VolumeResponse // (main.VolumeResponse) { [JsonPropertyName("ClusterVolume")] - public ClusterVolume ClusterVolume { get; set; } + public ClusterVolume? ClusterVolume { get; set; } [JsonPropertyName("CreatedAt")] - public string CreatedAt { get; set; } + public string CreatedAt { get; set; } = default!; [JsonPropertyName("Driver")] - public string Driver { get; set; } + public string Driver { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Mountpoint")] - public string Mountpoint { get; set; } + public string Mountpoint { get; set; } = default!; [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Options")] - public IDictionary Options { get; set; } + public IDictionary Options { get; set; } = default!; [JsonPropertyName("Scope")] - public string Scope { get; set; } + public string Scope { get; set; } = default!; [JsonPropertyName("Status")] - public IDictionary Status { get; set; } + public IDictionary Status { get; set; } = default!; [JsonPropertyName("UsageData")] - public UsageData UsageData { get; set; } + public UsageData? UsageData { get; set; } } } diff --git a/src/Docker.DotNet/Models/VolumeSecret.Generated.cs b/src/Docker.DotNet/Models/VolumeSecret.Generated.cs index c7973647..494fd0d8 100644 --- a/src/Docker.DotNet/Models/VolumeSecret.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeSecret.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class VolumeSecret // (volume.Secret) { [JsonPropertyName("Key")] - public string Key { get; set; } + public string Key { get; set; } = default!; [JsonPropertyName("Secret")] - public string Secret { get; set; } + public string Secret { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/VolumeTopology.Generated.cs b/src/Docker.DotNet/Models/VolumeTopology.Generated.cs index e836f7a2..80e9e53e 100644 --- a/src/Docker.DotNet/Models/VolumeTopology.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeTopology.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class VolumeTopology // (volume.Topology) { [JsonPropertyName("Segments")] - public IDictionary Segments { get; set; } + public IDictionary Segments { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/VolumesCreateParameters.Generated.cs b/src/Docker.DotNet/Models/VolumesCreateParameters.Generated.cs index e74f393f..9b024946 100644 --- a/src/Docker.DotNet/Models/VolumesCreateParameters.Generated.cs +++ b/src/Docker.DotNet/Models/VolumesCreateParameters.Generated.cs @@ -1,17 +1,18 @@ +#nullable enable namespace Docker.DotNet.Models { public class VolumesCreateParameters // (main.VolumesCreateParameters) { [JsonPropertyName("Name")] - public string Name { get; set; } + public string Name { get; set; } = default!; [JsonPropertyName("Driver")] - public string Driver { get; set; } + public string Driver { get; set; } = default!; [JsonPropertyName("DriverOpts")] - public IDictionary DriverOpts { get; set; } + public IDictionary DriverOpts { get; set; } = default!; [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } + public IDictionary Labels { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/VolumesListParameters.Generated.cs b/src/Docker.DotNet/Models/VolumesListParameters.Generated.cs index 5542ef3e..49f1c909 100644 --- a/src/Docker.DotNet/Models/VolumesListParameters.Generated.cs +++ b/src/Docker.DotNet/Models/VolumesListParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class VolumesListParameters // (main.VolumesListParameters) { [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } } } diff --git a/src/Docker.DotNet/Models/VolumesListResponse.Generated.cs b/src/Docker.DotNet/Models/VolumesListResponse.Generated.cs index 823b94b6..c7c94b3f 100644 --- a/src/Docker.DotNet/Models/VolumesListResponse.Generated.cs +++ b/src/Docker.DotNet/Models/VolumesListResponse.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class VolumesListResponse // (main.VolumesListResponse) { [JsonPropertyName("Volumes")] - public IList Volumes { get; set; } + public IList Volumes { get; set; } = default!; [JsonPropertyName("Warnings")] - public IList Warnings { get; set; } + public IList Warnings { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/VolumesPruneParameters.Generated.cs b/src/Docker.DotNet/Models/VolumesPruneParameters.Generated.cs index a9c0b5a9..6904b653 100644 --- a/src/Docker.DotNet/Models/VolumesPruneParameters.Generated.cs +++ b/src/Docker.DotNet/Models/VolumesPruneParameters.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class VolumesPruneParameters // (main.VolumesPruneParameters) { [QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] - public IDictionary> Filters { get; set; } + public IDictionary>? Filters { get; set; } } } diff --git a/src/Docker.DotNet/Models/VolumesPruneResponse.Generated.cs b/src/Docker.DotNet/Models/VolumesPruneResponse.Generated.cs index 47075ba8..45bdefaf 100644 --- a/src/Docker.DotNet/Models/VolumesPruneResponse.Generated.cs +++ b/src/Docker.DotNet/Models/VolumesPruneResponse.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class VolumesPruneResponse // (volume.PruneReport) { [JsonPropertyName("VolumesDeleted")] - public IList VolumesDeleted { get; set; } + public IList VolumesDeleted { get; set; } = default!; [JsonPropertyName("SpaceReclaimed")] - public ulong SpaceReclaimed { get; set; } + public ulong SpaceReclaimed { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/WaitExitError.Generated.cs b/src/Docker.DotNet/Models/WaitExitError.Generated.cs index 53835403..f8e5cb80 100644 --- a/src/Docker.DotNet/Models/WaitExitError.Generated.cs +++ b/src/Docker.DotNet/Models/WaitExitError.Generated.cs @@ -1,8 +1,9 @@ +#nullable enable namespace Docker.DotNet.Models { public class WaitExitError // (container.WaitExitError) { [JsonPropertyName("Message")] - public string Message { get; set; } + public string Message { get; set; } = default!; } } diff --git a/src/Docker.DotNet/Models/WeightDevice.Generated.cs b/src/Docker.DotNet/Models/WeightDevice.Generated.cs index 8306f9f8..e0f6e292 100644 --- a/src/Docker.DotNet/Models/WeightDevice.Generated.cs +++ b/src/Docker.DotNet/Models/WeightDevice.Generated.cs @@ -1,11 +1,12 @@ +#nullable enable namespace Docker.DotNet.Models { public class WeightDevice // (blkiodev.WeightDevice) { [JsonPropertyName("Path")] - public string Path { get; set; } + public string Path { get; set; } = default!; [JsonPropertyName("Weight")] - public ushort Weight { get; set; } + public ushort Weight { get; set; } = default!; } } diff --git a/tools/specgen/csharptype.go b/tools/specgen/csharptype.go index f953604b..a8fd177c 100644 --- a/tools/specgen/csharptype.go +++ b/tools/specgen/csharptype.go @@ -206,6 +206,8 @@ func NewModel(name, sourceName string) *CSModelType { // Write the specific model type to the io writer given. func (t *CSModelType) Write(w io.Writer) { + fmt.Fprintln(w, "#nullable enable") + usings := calcUsings(t) for _, u := range usings { fmt.Fprintf(w, "using %s;\n", u) @@ -347,7 +349,7 @@ func writeProperties(w io.Writer, properties []CSProperty) { fmt.Fprintf(w, " %s\n", a) } - if p.Type.IsNullable && p.IsOpt { + if p.IsOpt { fmt.Fprintf(w, " public %s? %s { get; set; }", p.Type.Name, p.Name) } else { fmt.Fprintf(w, " public %s %s { get; set; }", p.Type.Name, p.Name) @@ -355,6 +357,8 @@ func writeProperties(w io.Writer, properties []CSProperty) { if p.DefaultValue != "" { fmt.Fprintf(w, " = %s;", p.DefaultValue) + } else if !p.IsOpt { + fmt.Fprintf(w, " = default!;") } fmt.Fprintln(w) From 39a6f7afa3ad441ff5cf34d6c92230d06e1edaf7 Mon Sep 17 00:00:00 2001 From: campersau Date: Fri, 27 Mar 2026 10:16:37 +0100 Subject: [PATCH 2/5] remove CSType IsNullable --- tools/specgen/csharptype.go | 49 ++++++++++--------- tools/specgen/specgen.go | 96 ++++++++++++++++++------------------- 2 files changed, 72 insertions(+), 73 deletions(-) diff --git a/tools/specgen/csharptype.go b/tools/specgen/csharptype.go index a8fd177c..e58935c6 100644 --- a/tools/specgen/csharptype.go +++ b/tools/specgen/csharptype.go @@ -51,36 +51,36 @@ var EmptyStruct = reflect.TypeOf(struct{}{}) // CSInboxTypesMap is a map from Go type kind to C# type. var CSInboxTypesMap = map[reflect.Kind]CSType{ - reflect.Int: {"", "long", true}, // In practice most clients are 64bit so in go Int will be too. - reflect.Int8: {"", "sbyte", true}, - reflect.Int16: {"", "short", true}, - reflect.Int32: {"", "int", true}, - reflect.Int64: {"", "long", true}, + reflect.Int: {"", "long"}, // In practice most clients are 64bit so in go Int will be too. + reflect.Int8: {"", "sbyte"}, + reflect.Int16: {"", "short"}, + reflect.Int32: {"", "int"}, + reflect.Int64: {"", "long"}, - reflect.Uint: {"", "ulong", true}, // In practice most clients are 64bit so in go Uint will be too. - reflect.Uint8: {"", "byte", true}, - reflect.Uint16: {"", "ushort", true}, - reflect.Uint32: {"", "uint", true}, - reflect.Uint64: {"", "ulong", true}, + reflect.Uint: {"", "ulong"}, // In practice most clients are 64bit so in go Uint will be too. + reflect.Uint8: {"", "byte"}, + reflect.Uint16: {"", "ushort"}, + reflect.Uint32: {"", "uint"}, + reflect.Uint64: {"", "ulong"}, - reflect.String: {"", "string", false}, + reflect.String: {"", "string"}, - reflect.Bool: {"", "bool", true}, + reflect.Bool: {"", "bool"}, - reflect.Float32: {"", "float", true}, - reflect.Float64: {"", "double", true}, + reflect.Float32: {"", "float"}, + reflect.Float64: {"", "double"}, } // CSCustomTypeMap is a map from Go reflected types to C# types. var CSCustomTypeMap = map[reflect.Type]CSType{ - reflect.TypeOf(net.IP{}): {"", "string", false}, - reflect.TypeOf(net.IPNet{}): {"", "string", false}, - reflect.TypeOf(netip.Addr{}): {"", "string", false}, - reflect.TypeOf(netip.Prefix{}): {"", "string", false}, - reflect.TypeOf(network.HardwareAddr{}): {"", "string", false}, - reflect.TypeOf(network.Port{}): {"", "string", false}, - reflect.TypeOf(time.Time{}): {"System", "DateTime", true}, - EmptyStruct: {"", "BUG_IN_CONVERSION", false}, + reflect.TypeOf(net.IP{}): {"", "string"}, + reflect.TypeOf(net.IPNet{}): {"", "string"}, + reflect.TypeOf(netip.Addr{}): {"", "string"}, + reflect.TypeOf(netip.Prefix{}): {"", "string"}, + reflect.TypeOf(network.HardwareAddr{}): {"", "string"}, + reflect.TypeOf(network.Port{}): {"", "string"}, + reflect.TypeOf(time.Time{}): {"System", "DateTime"}, + EmptyStruct: {"", "BUG_IN_CONVERSION"}, } // CSArgument is a type that represents a C# argument that can @@ -151,9 +151,8 @@ func (a CSAttribute) String() string { // CSType is a type that represents a C# type. type CSType struct { - Namespace string - Name string - IsNullable bool + Namespace string + Name string } // CSParameter is a type that represents a parameter declaration of a C# parameter to a function/constructor. diff --git a/tools/specgen/specgen.go b/tools/specgen/specgen.go index d0c4315e..ea316492 100644 --- a/tools/specgen/specgen.go +++ b/tools/specgen/specgen.go @@ -40,8 +40,8 @@ var typesToDisambiguate = map[string]*CSModelType{ Properties: []CSProperty{ { Name: "Data", - Type: CSType{"", "IList", true}, - Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter", false}, Arguments: []CSArgument{{Value: "typeof(Base64Converter)"}}}}, + Type: CSType{"", "IList"}, + Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter"}, Arguments: []CSArgument{{Value: "typeof(Base64Converter)"}}}}, }, }, }, @@ -50,8 +50,8 @@ var typesToDisambiguate = map[string]*CSModelType{ Properties: []CSProperty{ { Name: "StopTimeout", - Type: CSType{"System", "TimeSpan", true}, - Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter", false}, Arguments: []CSArgument{{Value: "typeof(TimeSpanSecondsConverter)"}}}}, + Type: CSType{"System", "TimeSpan"}, + Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter"}, Arguments: []CSArgument{{Value: "typeof(TimeSpanSecondsConverter)"}}}}, }, }, }, @@ -59,8 +59,8 @@ var typesToDisambiguate = map[string]*CSModelType{ Properties: []CSProperty{ { Name: "ConsoleSize", - Type: CSType{"", "ConsoleSize", true}, - Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter", false}, Arguments: []CSArgument{{Value: "typeof(ConsoleSizeConverter)"}}}}, + Type: CSType{"", "ConsoleSize"}, + Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter"}, Arguments: []CSArgument{{Value: "typeof(ConsoleSizeConverter)"}}}}, }, }, }, @@ -69,18 +69,18 @@ var typesToDisambiguate = map[string]*CSModelType{ Properties: []CSProperty{ { Name: "Interval", - Type: CSType{"System", "TimeSpan", true}, - Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter", false}, Arguments: []CSArgument{{Value: "typeof(TimeSpanNanosecondsConverter)"}}}}, + Type: CSType{"System", "TimeSpan"}, + Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter"}, Arguments: []CSArgument{{Value: "typeof(TimeSpanNanosecondsConverter)"}}}}, }, { Name: "Timeout", - Type: CSType{"System", "TimeSpan", true}, - Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter", false}, Arguments: []CSArgument{{Value: "typeof(TimeSpanNanosecondsConverter)"}}}}, + Type: CSType{"System", "TimeSpan"}, + Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter"}, Arguments: []CSArgument{{Value: "typeof(TimeSpanNanosecondsConverter)"}}}}, }, }, }, typeToKey(reflect.TypeOf(container.RestartPolicy{})): { - Properties: []CSProperty{{Name: "Name", Type: CSType{"", "RestartPolicyKind", false}}}, + Properties: []CSProperty{{Name: "Name", Type: CSType{"", "RestartPolicyKind"}}}, }, typeToKey(reflect.TypeOf(jsonstream.Error{})): { Name: "JSONError", @@ -90,11 +90,11 @@ var typesToDisambiguate = map[string]*CSModelType{ Properties: []CSProperty{ { Name: "Time", - Type: CSType{"System", "DateTime", false}, + Type: CSType{"System", "DateTime"}, }, { Name: "Aux", - Type: CSType{"", "ObjectExtensionData", false}, + Type: CSType{"", "ObjectExtensionData"}, }, }, }, @@ -105,8 +105,8 @@ var typesToDisambiguate = map[string]*CSModelType{ Properties: []CSProperty{ { Name: "StopTimeout", - Type: CSType{"System", "TimeSpan", true}, - Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter", false}, Arguments: []CSArgument{{Value: "typeof(TimeSpanSecondsConverter)"}}}}, + Type: CSType{"System", "TimeSpan"}, + Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter"}, Arguments: []CSArgument{{Value: "typeof(TimeSpanSecondsConverter)"}}}}, }, }, }, @@ -114,8 +114,8 @@ var typesToDisambiguate = map[string]*CSModelType{ Properties: []CSProperty{ { Name: "ConsoleSize", - Type: CSType{"", "ConsoleSize", true}, - Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter", false}, Arguments: []CSArgument{{Value: "typeof(ConsoleSizeConverter)"}}}}, + Type: CSType{"", "ConsoleSize"}, + Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter"}, Arguments: []CSArgument{{Value: "typeof(ConsoleSizeConverter)"}}}}, }, }, }, @@ -123,8 +123,8 @@ var typesToDisambiguate = map[string]*CSModelType{ Properties: []CSProperty{ { Name: "ConsoleSize", - Type: CSType{"", "ConsoleSize", true}, - Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter", false}, Arguments: []CSArgument{{Value: "typeof(ConsoleSizeConverter)"}}}}, + Type: CSType{"", "ConsoleSize"}, + Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter"}, Arguments: []CSArgument{{Value: "typeof(ConsoleSizeConverter)"}}}}, }, }, }, @@ -140,8 +140,8 @@ var typesToDisambiguate = map[string]*CSModelType{ Properties: []CSProperty{ { Name: "Data", - Type: CSType{"", "IList", true}, - Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter", false}, Arguments: []CSArgument{{Value: "typeof(Base64Converter)"}}}}, + Type: CSType{"", "IList"}, + Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter"}, Arguments: []CSArgument{{Value: "typeof(Base64Converter)"}}}}, }, }, }, @@ -150,8 +150,8 @@ var typesToDisambiguate = map[string]*CSModelType{ Properties: []CSProperty{ { Name: "Data", - Type: CSType{"", "IList", true}, - Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter", false}, Arguments: []CSArgument{{Value: "typeof(Base64Converter)"}}}}, + Type: CSType{"", "IList"}, + Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter"}, Arguments: []CSArgument{{Value: "typeof(Base64Converter)"}}}}, }, }, }, @@ -171,25 +171,25 @@ var typesToDisambiguate = map[string]*CSModelType{ typeToKey(reflect.TypeOf(swarm.Task{})): { Name: "TaskResponse", Properties: []CSProperty{ - {Name: "DesiredState", Type: CSType{"", "TaskState", false}}, + {Name: "DesiredState", Type: CSType{"", "TaskState"}}, }, }, typeToKey(reflect.TypeOf(swarm.TaskStatus{})): { Properties: []CSProperty{ - {Name: "State", Type: CSType{"", "TaskState", false}}, + {Name: "State", Type: CSType{"", "TaskState"}}, }, }, typeToKey(reflect.TypeOf(swarm.TLSInfo{})): { Properties: []CSProperty{ { Name: "CertIssuerSubject", - Type: CSType{"", "IList", true}, - Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter", false}, Arguments: []CSArgument{{Value: "typeof(Base64Converter)"}}}}, + Type: CSType{"", "IList"}, + Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter"}, Arguments: []CSArgument{{Value: "typeof(Base64Converter)"}}}}, }, { Name: "CertIssuerPublicKey", - Type: CSType{"", "IList", true}, - Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter", false}, Arguments: []CSArgument{{Value: "typeof(Base64Converter)"}}}}, + Type: CSType{"", "IList"}, + Attributes: []CSAttribute{{Type: CSType{"System.Text.Json.Serialization", "JsonConverter"}, Arguments: []CSArgument{{Value: "typeof(Base64Converter)"}}}}, }, }, }, @@ -198,25 +198,25 @@ var typesToDisambiguate = map[string]*CSModelType{ typeToKey(reflect.TypeOf(container.Summary{})): { Name: "ContainerListResponse", Properties: []CSProperty{ - {Name: "Created", Type: CSType{"System", "DateTime", false}}, + {Name: "Created", Type: CSType{"System", "DateTime"}}, }, }, typeToKey(reflect.TypeOf(container.FilesystemChange{})): { Name: "ContainerFileSystemChangeResponse", Properties: []CSProperty{ - {Name: "Kind", Type: CSType{"", "FileSystemChangeKind", false}}, + {Name: "Kind", Type: CSType{"", "FileSystemChangeKind"}}, }, }, typeToKey(reflect.TypeOf(container.ExecInspectResponse{})): { Name: "ContainerExecInspectResponse", Properties: []CSProperty{ - {Name: "DetachKeys", Type: CSType{"", "string", false}}, + {Name: "DetachKeys", Type: CSType{"", "string"}}, }, }, typeToKey(reflect.TypeOf(container.InspectResponse{})): { Name: "ContainerInspectResponse", Properties: []CSProperty{ - {Name: "Created", Type: CSType{"System", "DateTime", false}}, + {Name: "Created", Type: CSType{"System", "DateTime"}}, }, }, typeToKey(reflect.TypeOf(container.PathStat{})): {Name: "ContainerPathStatResponse"}, @@ -226,13 +226,13 @@ var typesToDisambiguate = map[string]*CSModelType{ typeToKey(reflect.TypeOf(image.HistoryResponseItem{})): { Name: "ImageHistoryResponse", Properties: []CSProperty{ - {Name: "Created", Type: CSType{"System", "DateTime", false}}, + {Name: "Created", Type: CSType{"System", "DateTime"}}, }, }, typeToKey(reflect.TypeOf(image.InspectResponse{})): { Name: "ImageInspectResponse", Properties: []CSProperty{ - {Name: "Created", Type: CSType{"System", "DateTime", false}}, + {Name: "Created", Type: CSType{"System", "DateTime"}}, }, }, typeToKey(reflect.TypeOf(ImageLoadResult{})): {Name: "ImagesLoadResponse"}, @@ -240,7 +240,7 @@ var typesToDisambiguate = map[string]*CSModelType{ typeToKey(reflect.TypeOf(image.Summary{})): { Name: "ImagesListResponse", Properties: []CSProperty{ - {Name: "Created", Type: CSType{"System", "DateTime", false}}, + {Name: "Created", Type: CSType{"System", "DateTime"}}, }, }, typeToKey(reflect.TypeOf(system.Info{})): {Name: "SystemInfoResponse"}, @@ -266,7 +266,7 @@ var typesToDisambiguate = map[string]*CSModelType{ typeToKey(reflect.TypeOf(plugin.Interface{})): { Name: "PluginInterface", Properties: []CSProperty{ - {Name: "Types", Type: CSType{"System.Collections.Generic", "IList", false}}, + {Name: "Types", Type: CSType{"System.Collections.Generic", "IList"}}, }, }, @@ -604,24 +604,24 @@ func csType(t reflect.Type, _ bool) CSType { switch t.Kind() { case reflect.Array: - return CSType{"", fmt.Sprintf("%s[]", csType(t.Elem(), false).Name), false} + return CSType{"", fmt.Sprintf("%s[]", csType(t.Elem(), false).Name)} case reflect.Slice: - return CSType{"System.Collections.Generic", fmt.Sprintf("IList<%s>", csType(t.Elem(), false).Name), false} + return CSType{"System.Collections.Generic", fmt.Sprintf("IList<%s>", csType(t.Elem(), false).Name)} case reflect.Map: if t.Elem() == EmptyStruct { - return CSType{"System.Collections.Generic", fmt.Sprintf("IDictionary<%s, EmptyStruct>", csType(t.Key(), false).Name), false} + return CSType{"System.Collections.Generic", fmt.Sprintf("IDictionary<%s, EmptyStruct>", csType(t.Key(), false).Name)} } - return CSType{"System.Collections.Generic", fmt.Sprintf("IDictionary<%s, %s>", csType(t.Key(), false).Name, csType(t.Elem(), false).Name), false} + return CSType{"System.Collections.Generic", fmt.Sprintf("IDictionary<%s, %s>", csType(t.Key(), false).Name, csType(t.Elem(), false).Name)} case reflect.Ptr: return csType(t.Elem(), true) case reflect.Struct: if m, ok := reflectedTypes[typeToKey(t)]; ok { // We have aliased this type. Return it as a reference. - return CSType{"", m.Name, false} + return CSType{"", m.Name} } - return CSType{"", t.Name(), false} + return CSType{"", t.Name()} case reflect.Interface: - return CSType{"", "object", false} + return CSType{"", "object"} default: panic(fmt.Errorf("cannot convert type %s", t)) } @@ -661,7 +661,7 @@ func reflectTypeMembers(t reflect.Type, m *CSModelType) { csProp := CSProperty{ Name: f.Name, - Type: CSType{"", inlineStructName, false}, + Type: CSType{"", inlineStructName}, } jsonTag := strings.Split(f.Tag.Get("json"), ",") @@ -671,7 +671,7 @@ func reflectTypeMembers(t reflect.Type, m *CSModelType) { } csProp.Attributes = append(csProp.Attributes, CSAttribute{ - Type: CSType{"System.Text.Json.Serialization", "JsonPropertyName", false}, + Type: CSType{"System.Text.Json.Serialization", "JsonPropertyName"}, Arguments: []CSArgument{ {Value: jsonName, Type: CSInboxTypesMap[reflect.String]}, }, @@ -740,7 +740,7 @@ func reflectTypeMembers(t reflect.Type, m *CSModelType) { restTag.Name = strings.ToLower(f.Name) } - a := CSAttribute{Type: CSType{"", "QueryStringParameter", false}} + a := CSAttribute{Type: CSType{"", "QueryStringParameter"}} a.Arguments = append( a.Arguments, CSArgument{ @@ -762,7 +762,7 @@ func reflectTypeMembers(t reflect.Type, m *CSModelType) { csProp.Attributes = append(csProp.Attributes, a) csProp.DefaultValue = restTag.Default } else { - a := CSAttribute{Type: CSType{"System.Text.Json.Serialization", "JsonPropertyName", false}} + a := CSAttribute{Type: CSType{"System.Text.Json.Serialization", "JsonPropertyName"}} a.Arguments = append(a.Arguments, CSArgument{jsonName, CSInboxTypesMap[reflect.String]}) csProp.IsOpt = f.Type.Kind() == reflect.Ptr csProp.Attributes = append(csProp.Attributes, a) From b2d234f35f893fa4e1d78826d15863f07c89f68c Mon Sep 17 00:00:00 2001 From: campersau Date: Fri, 27 Mar 2026 11:24:11 +0100 Subject: [PATCH 3/5] support omitempty --- .../Models/Annotations.Generated.cs | 2 +- .../Models/AppArmorOpts.Generated.cs | 2 +- .../Models/AuthConfig.Generated.cs | 12 ++--- .../Models/AuthResponse.Generated.cs | 2 +- .../Models/BindOptions.Generated.cs | 10 ++-- .../Models/CAConfig.Generated.cs | 10 ++-- .../Models/CPUStats.Generated.cs | 6 +-- .../Models/CPUUsage.Generated.cs | 2 +- .../Models/ClusterInfo.Generated.cs | 6 +-- .../Models/ClusterVolume.Generated.cs | 8 ++-- .../Models/ClusterVolumeSpec.Generated.cs | 6 +-- ...mitContainerChangesParameters.Generated.cs | 12 ++--- .../Models/ComponentVersion.Generated.cs | 2 +- .../Models/ContainerConfig.Generated.cs | 12 ++--- .../Models/ContainerListResponse.Generated.cs | 4 +- .../Models/ContainerSpec.Generated.cs | 46 +++++++++---------- .../ContainerStatsResponse.Generated.cs | 20 ++++---- .../Models/ContainerdInfo.Generated.cs | 2 +- .../CreateContainerParameters.Generated.cs | 12 ++--- .../Models/DNSConfig.Generated.cs | 6 +-- .../Models/Descriptor.Generated.cs | 8 ++-- .../DiscreteGenericResource.Generated.cs | 4 +- .../Models/DispatcherConfig.Generated.cs | 2 +- .../Models/DockerOCIImageConfig.Generated.cs | 24 +++++----- .../DockerOCIImageConfigExt.Generated.cs | 4 +- src/Docker.DotNet/Models/Driver.Generated.cs | 4 +- .../Models/Endpoint.Generated.cs | 6 +-- .../Models/EndpointIPAMConfig.Generated.cs | 6 +-- .../Models/EndpointSpec.Generated.cs | 4 +- .../Models/EndpointVirtualIP.Generated.cs | 4 +- .../Models/EngineDescription.Generated.cs | 6 +-- .../Models/ExecProcessConfig.Generated.cs | 2 +- .../Models/ExternalCA.Generated.cs | 2 +- .../Models/FirewallInfo.Generated.cs | 2 +- .../Models/HealthcheckConfig.Generated.cs | 12 ++--- .../Models/HostConfig.Generated.cs | 12 ++--- .../Models/IPAMConfig.Generated.cs | 8 ++-- .../Models/IPAMOptions.Generated.cs | 4 +- .../Models/IPAMStatus.Generated.cs | 2 +- .../Models/ImageConfig.Generated.cs | 20 ++++---- .../Models/ImageDeleteResponse.Generated.cs | 4 +- .../Models/ImageInspectResponse.Generated.cs | 12 ++--- .../Models/ImageOptions.Generated.cs | 2 +- .../Models/ImagesListResponse.Generated.cs | 2 +- src/Docker.DotNet/Models/Info.Generated.cs | 6 +-- .../Models/JSONError.Generated.cs | 4 +- .../Models/JSONMessage.Generated.cs | 6 +-- .../Models/JSONProgress.Generated.cs | 10 ++-- .../Models/JobStatus.Generated.cs | 2 +- .../Models/ManagerStatus.Generated.cs | 6 +-- .../Models/MemoryStats.Generated.cs | 16 +++---- src/Docker.DotNet/Models/Message.Generated.cs | 6 +-- src/Docker.DotNet/Models/Meta.Generated.cs | 6 +-- .../Models/Metadata.Generated.cs | 2 +- src/Docker.DotNet/Models/Mount.Generated.cs | 10 ++-- .../Models/MountPoint.Generated.cs | 6 +-- .../Models/NamedGenericResource.Generated.cs | 4 +- src/Docker.DotNet/Models/Network.Generated.cs | 2 +- .../Models/NetworkAttachment.Generated.cs | 4 +- .../NetworkAttachmentConfig.Generated.cs | 6 +-- .../Models/NetworkResponse.Generated.cs | 4 +- .../Models/NetworkSpec.Generated.cs | 12 ++--- .../Models/NetworkStats.Generated.cs | 4 +- .../Models/NodeCSIInfo.Generated.cs | 6 +-- .../Models/NodeDescription.Generated.cs | 12 ++--- .../Models/NodeListResponse.Generated.cs | 12 ++--- .../Models/NodeStatus.Generated.cs | 6 +-- .../Models/NodeUpdateParameters.Generated.cs | 6 +-- .../Models/PidsStats.Generated.cs | 4 +- .../Models/Placement.Generated.cs | 8 ++-- .../Models/Platform.Generated.cs | 6 +-- src/Docker.DotNet/Models/Plugin.Generated.cs | 4 +- .../Models/PluginConfig.Generated.cs | 2 +- .../Models/PluginDescription.Generated.cs | 4 +- .../Models/PluginInterface.Generated.cs | 2 +- .../Models/PluginRootFS.Generated.cs | 2 +- .../Models/PluginUser.Generated.cs | 4 +- .../Models/PortConfig.Generated.cs | 10 ++-- .../Models/PortStatus.Generated.cs | 2 +- .../Models/PortSummary.Generated.cs | 4 +- .../Models/PublishStatus.Generated.cs | 6 +-- .../Models/RaftConfig.Generated.cs | 4 +- src/Docker.DotNet/Models/RootFS.Generated.cs | 4 +- .../Models/RootFSStorageSnapshot.Generated.cs | 2 +- src/Docker.DotNet/Models/Runtime.Generated.cs | 8 ++-- .../Models/RuntimePrivilege.Generated.cs | 6 +-- .../Models/RuntimeWithStatus.Generated.cs | 10 ++-- .../Models/SeccompOpts.Generated.cs | 4 +- src/Docker.DotNet/Models/Secret.Generated.cs | 6 +-- .../Models/ServiceCreateResponse.Generated.cs | 2 +- .../Models/ServiceSpec.Generated.cs | 6 +-- src/Docker.DotNet/Models/Spec.Generated.cs | 14 +++--- .../Models/StorageStats.Generated.cs | 8 ++-- .../Models/SummaryHostConfig.Generated.cs | 4 +- .../Models/SwarmConfig.Generated.cs | 6 +-- .../Models/SwarmConfigSpec.Generated.cs | 4 +- .../Models/SwarmDriver.Generated.cs | 4 +- .../Models/SwarmIPAMConfig.Generated.cs | 6 +-- .../Models/SwarmInspectResponse.Generated.cs | 6 +-- .../Models/SwarmLimit.Generated.cs | 6 +-- .../Models/SwarmNetwork.Generated.cs | 10 ++-- .../Models/SwarmPlatform.Generated.cs | 4 +- .../Models/SwarmResources.Generated.cs | 6 +-- .../Models/SwarmRestartPolicy.Generated.cs | 2 +- .../Models/SwarmRuntimeSpec.Generated.cs | 10 ++-- .../Models/SwarmSecretSpec.Generated.cs | 4 +- .../Models/SwarmService.Generated.cs | 10 ++-- .../Models/SwarmUpdateConfig.Generated.cs | 6 +-- .../Models/SystemInfoResponse.Generated.cs | 10 ++-- src/Docker.DotNet/Models/TLSInfo.Generated.cs | 6 +-- .../Models/TaskResponse.Generated.cs | 24 +++++----- .../Models/TaskSpec.Generated.cs | 4 +- .../Models/TaskStatus.Generated.cs | 10 ++-- .../Models/TmpfsOptions.Generated.cs | 6 +-- .../Models/Topology.Generated.cs | 2 +- .../Models/TopologyRequirement.Generated.cs | 4 +- .../Models/TypeMount.Generated.cs | 4 +- .../Models/UpdateStatus.Generated.cs | 4 +- src/Docker.DotNet/Models/Version.Generated.cs | 2 +- .../Models/VersionResponse.Generated.cs | 16 +++---- .../Models/VolumeAccessMode.Generated.cs | 4 +- .../Models/VolumeAttachment.Generated.cs | 6 +-- .../Models/VolumeInfo.Generated.cs | 8 ++-- .../Models/VolumeOptions.Generated.cs | 6 +-- .../Models/VolumeResponse.Generated.cs | 4 +- .../Models/VolumeTopology.Generated.cs | 2 +- .../Models/WaitExitError.Generated.cs | 2 +- tools/specgen/specgen.go | 7 ++- 128 files changed, 425 insertions(+), 422 deletions(-) diff --git a/src/Docker.DotNet/Models/Annotations.Generated.cs b/src/Docker.DotNet/Models/Annotations.Generated.cs index 8a9dd9c0..3ef51fc6 100644 --- a/src/Docker.DotNet/Models/Annotations.Generated.cs +++ b/src/Docker.DotNet/Models/Annotations.Generated.cs @@ -4,7 +4,7 @@ namespace Docker.DotNet.Models public class Annotations // (swarm.Annotations) { [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("Labels")] public IDictionary Labels { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/AppArmorOpts.Generated.cs b/src/Docker.DotNet/Models/AppArmorOpts.Generated.cs index 8eebd162..2a075c3b 100644 --- a/src/Docker.DotNet/Models/AppArmorOpts.Generated.cs +++ b/src/Docker.DotNet/Models/AppArmorOpts.Generated.cs @@ -4,6 +4,6 @@ namespace Docker.DotNet.Models public class AppArmorOpts // (swarm.AppArmorOpts) { [JsonPropertyName("Mode")] - public string Mode { get; set; } = default!; + public string? Mode { get; set; } } } diff --git a/src/Docker.DotNet/Models/AuthConfig.Generated.cs b/src/Docker.DotNet/Models/AuthConfig.Generated.cs index 49318d3b..0d2059ec 100644 --- a/src/Docker.DotNet/Models/AuthConfig.Generated.cs +++ b/src/Docker.DotNet/Models/AuthConfig.Generated.cs @@ -4,21 +4,21 @@ namespace Docker.DotNet.Models public class AuthConfig // (registry.AuthConfig) { [JsonPropertyName("username")] - public string Username { get; set; } = default!; + public string? Username { get; set; } [JsonPropertyName("password")] - public string Password { get; set; } = default!; + public string? Password { get; set; } [JsonPropertyName("auth")] - public string Auth { get; set; } = default!; + public string? Auth { get; set; } [JsonPropertyName("serveraddress")] - public string ServerAddress { get; set; } = default!; + public string? ServerAddress { get; set; } [JsonPropertyName("identitytoken")] - public string IdentityToken { get; set; } = default!; + public string? IdentityToken { get; set; } [JsonPropertyName("registrytoken")] - public string RegistryToken { get; set; } = default!; + public string? RegistryToken { get; set; } } } diff --git a/src/Docker.DotNet/Models/AuthResponse.Generated.cs b/src/Docker.DotNet/Models/AuthResponse.Generated.cs index fbe84017..d8bdc9da 100644 --- a/src/Docker.DotNet/Models/AuthResponse.Generated.cs +++ b/src/Docker.DotNet/Models/AuthResponse.Generated.cs @@ -4,7 +4,7 @@ namespace Docker.DotNet.Models public class AuthResponse // (registry.AuthResponse) { [JsonPropertyName("IdentityToken")] - public string IdentityToken { get; set; } = default!; + public string? IdentityToken { get; set; } [JsonPropertyName("Status")] public string Status { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/BindOptions.Generated.cs b/src/Docker.DotNet/Models/BindOptions.Generated.cs index e54ee26a..6f193fb8 100644 --- a/src/Docker.DotNet/Models/BindOptions.Generated.cs +++ b/src/Docker.DotNet/Models/BindOptions.Generated.cs @@ -4,18 +4,18 @@ namespace Docker.DotNet.Models public class BindOptions // (mount.BindOptions) { [JsonPropertyName("Propagation")] - public string Propagation { get; set; } = default!; + public string? Propagation { get; set; } [JsonPropertyName("NonRecursive")] - public bool NonRecursive { get; set; } = default!; + public bool? NonRecursive { get; set; } [JsonPropertyName("CreateMountpoint")] - public bool CreateMountpoint { get; set; } = default!; + public bool? CreateMountpoint { get; set; } [JsonPropertyName("ReadOnlyNonRecursive")] - public bool ReadOnlyNonRecursive { get; set; } = default!; + public bool? ReadOnlyNonRecursive { get; set; } [JsonPropertyName("ReadOnlyForceRecursive")] - public bool ReadOnlyForceRecursive { get; set; } = default!; + public bool? ReadOnlyForceRecursive { get; set; } } } diff --git a/src/Docker.DotNet/Models/CAConfig.Generated.cs b/src/Docker.DotNet/Models/CAConfig.Generated.cs index ee087923..5b528984 100644 --- a/src/Docker.DotNet/Models/CAConfig.Generated.cs +++ b/src/Docker.DotNet/Models/CAConfig.Generated.cs @@ -4,18 +4,18 @@ namespace Docker.DotNet.Models public class CAConfig // (swarm.CAConfig) { [JsonPropertyName("NodeCertExpiry")] - public long NodeCertExpiry { get; set; } = default!; + public long? NodeCertExpiry { get; set; } [JsonPropertyName("ExternalCAs")] - public IList ExternalCAs { get; set; } = default!; + public IList? ExternalCAs { get; set; } [JsonPropertyName("SigningCACert")] - public string SigningCACert { get; set; } = default!; + public string? SigningCACert { get; set; } [JsonPropertyName("SigningCAKey")] - public string SigningCAKey { get; set; } = default!; + public string? SigningCAKey { get; set; } [JsonPropertyName("ForceRotate")] - public ulong ForceRotate { get; set; } = default!; + public ulong? ForceRotate { get; set; } } } diff --git a/src/Docker.DotNet/Models/CPUStats.Generated.cs b/src/Docker.DotNet/Models/CPUStats.Generated.cs index 9069336d..d955b0ba 100644 --- a/src/Docker.DotNet/Models/CPUStats.Generated.cs +++ b/src/Docker.DotNet/Models/CPUStats.Generated.cs @@ -7,12 +7,12 @@ public class CPUStats // (container.CPUStats) public CPUUsage CPUUsage { get; set; } = default!; [JsonPropertyName("system_cpu_usage")] - public ulong SystemUsage { get; set; } = default!; + public ulong? SystemUsage { get; set; } [JsonPropertyName("online_cpus")] - public uint OnlineCPUs { get; set; } = default!; + public uint? OnlineCPUs { get; set; } [JsonPropertyName("throttling_data")] - public ThrottlingData ThrottlingData { get; set; } = default!; + public ThrottlingData? ThrottlingData { get; set; } } } diff --git a/src/Docker.DotNet/Models/CPUUsage.Generated.cs b/src/Docker.DotNet/Models/CPUUsage.Generated.cs index 806fc214..57e3f0e4 100644 --- a/src/Docker.DotNet/Models/CPUUsage.Generated.cs +++ b/src/Docker.DotNet/Models/CPUUsage.Generated.cs @@ -7,7 +7,7 @@ public class CPUUsage // (container.CPUUsage) public ulong TotalUsage { get; set; } = default!; [JsonPropertyName("percpu_usage")] - public IList PercpuUsage { get; set; } = default!; + public IList? PercpuUsage { get; set; } [JsonPropertyName("usage_in_kernelmode")] public ulong UsageInKernelmode { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/ClusterInfo.Generated.cs b/src/Docker.DotNet/Models/ClusterInfo.Generated.cs index 204f5103..541cbdb9 100644 --- a/src/Docker.DotNet/Models/ClusterInfo.Generated.cs +++ b/src/Docker.DotNet/Models/ClusterInfo.Generated.cs @@ -21,13 +21,13 @@ public ClusterInfo(Meta Meta) public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } = default!; + public Version? Version { get; set; } [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } = default!; + public DateTime? CreatedAt { get; set; } [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } = default!; + public DateTime? UpdatedAt { get; set; } [JsonPropertyName("Spec")] public Spec Spec { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/ClusterVolume.Generated.cs b/src/Docker.DotNet/Models/ClusterVolume.Generated.cs index f40ac78a..300630af 100644 --- a/src/Docker.DotNet/Models/ClusterVolume.Generated.cs +++ b/src/Docker.DotNet/Models/ClusterVolume.Generated.cs @@ -21,19 +21,19 @@ public ClusterVolume(Meta Meta) public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } = default!; + public Version? Version { get; set; } [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } = default!; + public DateTime? CreatedAt { get; set; } [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } = default!; + public DateTime? UpdatedAt { get; set; } [JsonPropertyName("Spec")] public ClusterVolumeSpec Spec { get; set; } = default!; [JsonPropertyName("PublishStatus")] - public IList PublishStatus { get; set; } = default!; + public IList? PublishStatus { get; set; } [JsonPropertyName("Info")] public VolumeInfo? Info { get; set; } diff --git a/src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs b/src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs index 48da257f..2c7dd222 100644 --- a/src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs +++ b/src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs @@ -4,7 +4,7 @@ namespace Docker.DotNet.Models public class ClusterVolumeSpec // (volume.ClusterVolumeSpec) { [JsonPropertyName("Group")] - public string Group { get; set; } = default!; + public string? Group { get; set; } [JsonPropertyName("AccessMode")] public VolumeAccessMode? AccessMode { get; set; } @@ -16,9 +16,9 @@ public class ClusterVolumeSpec // (volume.ClusterVolumeSpec) public CapacityRange? CapacityRange { get; set; } [JsonPropertyName("Secrets")] - public IList Secrets { get; set; } = default!; + public IList? Secrets { get; set; } [JsonPropertyName("Availability")] - public string Availability { get; set; } = default!; + public string? Availability { get; set; } } } diff --git a/src/Docker.DotNet/Models/CommitContainerChangesParameters.Generated.cs b/src/Docker.DotNet/Models/CommitContainerChangesParameters.Generated.cs index 63100e84..de1e14dc 100644 --- a/src/Docker.DotNet/Models/CommitContainerChangesParameters.Generated.cs +++ b/src/Docker.DotNet/Models/CommitContainerChangesParameters.Generated.cs @@ -78,7 +78,7 @@ public CommitContainerChangesParameters(ContainerConfig Config) public bool AttachStderr { get; set; } = default!; [JsonPropertyName("ExposedPorts")] - public IDictionary ExposedPorts { get; set; } = default!; + public IDictionary? ExposedPorts { get; set; } [JsonPropertyName("Tty")] public bool Tty { get; set; } = default!; @@ -99,7 +99,7 @@ public CommitContainerChangesParameters(ContainerConfig Config) public HealthcheckConfig? Healthcheck { get; set; } [JsonPropertyName("ArgsEscaped")] - public bool ArgsEscaped { get; set; } = default!; + public bool? ArgsEscaped { get; set; } [JsonPropertyName("Image")] public string Image { get; set; } = default!; @@ -114,22 +114,22 @@ public CommitContainerChangesParameters(ContainerConfig Config) public IList Entrypoint { get; set; } = default!; [JsonPropertyName("NetworkDisabled")] - public bool NetworkDisabled { get; set; } = default!; + public bool? NetworkDisabled { get; set; } [JsonPropertyName("OnBuild")] - public IList OnBuild { get; set; } = default!; + public IList? OnBuild { get; set; } [JsonPropertyName("Labels")] public IDictionary Labels { get; set; } = default!; [JsonPropertyName("StopSignal")] - public string StopSignal { get; set; } = default!; + public string? StopSignal { get; set; } [JsonPropertyName("StopTimeout")] [JsonConverter(typeof(TimeSpanSecondsConverter))] public TimeSpan? StopTimeout { get; set; } [JsonPropertyName("Shell")] - public IList Shell { get; set; } = default!; + public IList? Shell { get; set; } } } diff --git a/src/Docker.DotNet/Models/ComponentVersion.Generated.cs b/src/Docker.DotNet/Models/ComponentVersion.Generated.cs index ceea2c1c..bb818a13 100644 --- a/src/Docker.DotNet/Models/ComponentVersion.Generated.cs +++ b/src/Docker.DotNet/Models/ComponentVersion.Generated.cs @@ -10,6 +10,6 @@ public class ComponentVersion // (system.ComponentVersion) public string Version { get; set; } = default!; [JsonPropertyName("Details")] - public IDictionary Details { get; set; } = default!; + public IDictionary? Details { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerConfig.Generated.cs b/src/Docker.DotNet/Models/ContainerConfig.Generated.cs index 268ab61f..30171446 100644 --- a/src/Docker.DotNet/Models/ContainerConfig.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerConfig.Generated.cs @@ -22,7 +22,7 @@ public class ContainerConfig // (container.Config) public bool AttachStderr { get; set; } = default!; [JsonPropertyName("ExposedPorts")] - public IDictionary ExposedPorts { get; set; } = default!; + public IDictionary? ExposedPorts { get; set; } [JsonPropertyName("Tty")] public bool Tty { get; set; } = default!; @@ -43,7 +43,7 @@ public class ContainerConfig // (container.Config) public HealthcheckConfig? Healthcheck { get; set; } [JsonPropertyName("ArgsEscaped")] - public bool ArgsEscaped { get; set; } = default!; + public bool? ArgsEscaped { get; set; } [JsonPropertyName("Image")] public string Image { get; set; } = default!; @@ -58,22 +58,22 @@ public class ContainerConfig // (container.Config) public IList Entrypoint { get; set; } = default!; [JsonPropertyName("NetworkDisabled")] - public bool NetworkDisabled { get; set; } = default!; + public bool? NetworkDisabled { get; set; } [JsonPropertyName("OnBuild")] - public IList OnBuild { get; set; } = default!; + public IList? OnBuild { get; set; } [JsonPropertyName("Labels")] public IDictionary Labels { get; set; } = default!; [JsonPropertyName("StopSignal")] - public string StopSignal { get; set; } = default!; + public string? StopSignal { get; set; } [JsonPropertyName("StopTimeout")] [JsonConverter(typeof(TimeSpanSecondsConverter))] public TimeSpan? StopTimeout { get; set; } [JsonPropertyName("Shell")] - public IList Shell { get; set; } = default!; + public IList? Shell { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerListResponse.Generated.cs b/src/Docker.DotNet/Models/ContainerListResponse.Generated.cs index 25ac63ed..1c3f51b5 100644 --- a/src/Docker.DotNet/Models/ContainerListResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerListResponse.Generated.cs @@ -28,10 +28,10 @@ public class ContainerListResponse // (container.Summary) public IList Ports { get; set; } = default!; [JsonPropertyName("SizeRw")] - public long SizeRw { get; set; } = default!; + public long? SizeRw { get; set; } [JsonPropertyName("SizeRootFs")] - public long SizeRootFs { get; set; } = default!; + public long? SizeRootFs { get; set; } [JsonPropertyName("Labels")] public IDictionary Labels { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/ContainerSpec.Generated.cs b/src/Docker.DotNet/Models/ContainerSpec.Generated.cs index 8ccc3560..6a365f26 100644 --- a/src/Docker.DotNet/Models/ContainerSpec.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerSpec.Generated.cs @@ -4,31 +4,31 @@ namespace Docker.DotNet.Models public class ContainerSpec // (swarm.ContainerSpec) { [JsonPropertyName("Image")] - public string Image { get; set; } = default!; + public string? Image { get; set; } [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } = default!; + public IDictionary? Labels { get; set; } [JsonPropertyName("Command")] - public IList Command { get; set; } = default!; + public IList? Command { get; set; } [JsonPropertyName("Args")] - public IList Args { get; set; } = default!; + public IList? Args { get; set; } [JsonPropertyName("Hostname")] - public string Hostname { get; set; } = default!; + public string? Hostname { get; set; } [JsonPropertyName("Env")] - public IList Env { get; set; } = default!; + public IList? Env { get; set; } [JsonPropertyName("Dir")] - public string Dir { get; set; } = default!; + public string? Dir { get; set; } [JsonPropertyName("User")] - public string User { get; set; } = default!; + public string? User { get; set; } [JsonPropertyName("Groups")] - public IList Groups { get; set; } = default!; + public IList? Groups { get; set; } [JsonPropertyName("Privileges")] public Privileges? Privileges { get; set; } @@ -37,19 +37,19 @@ public class ContainerSpec // (swarm.ContainerSpec) public bool? Init { get; set; } [JsonPropertyName("StopSignal")] - public string StopSignal { get; set; } = default!; + public string? StopSignal { get; set; } [JsonPropertyName("TTY")] - public bool TTY { get; set; } = default!; + public bool? TTY { get; set; } [JsonPropertyName("OpenStdin")] - public bool OpenStdin { get; set; } = default!; + public bool? OpenStdin { get; set; } [JsonPropertyName("ReadOnly")] - public bool ReadOnly { get; set; } = default!; + public bool? ReadOnly { get; set; } [JsonPropertyName("Mounts")] - public IList Mounts { get; set; } = default!; + public IList? Mounts { get; set; } [JsonPropertyName("StopGracePeriod")] public long? StopGracePeriod { get; set; } @@ -58,33 +58,33 @@ public class ContainerSpec // (swarm.ContainerSpec) public HealthcheckConfig? Healthcheck { get; set; } [JsonPropertyName("Hosts")] - public IList Hosts { get; set; } = default!; + public IList? Hosts { get; set; } [JsonPropertyName("DNSConfig")] public DNSConfig? DNSConfig { get; set; } [JsonPropertyName("Secrets")] - public IList Secrets { get; set; } = default!; + public IList? Secrets { get; set; } [JsonPropertyName("Configs")] - public IList Configs { get; set; } = default!; + public IList? Configs { get; set; } [JsonPropertyName("Isolation")] - public string Isolation { get; set; } = default!; + public string? Isolation { get; set; } [JsonPropertyName("Sysctls")] - public IDictionary Sysctls { get; set; } = default!; + public IDictionary? Sysctls { get; set; } [JsonPropertyName("CapabilityAdd")] - public IList CapabilityAdd { get; set; } = default!; + public IList? CapabilityAdd { get; set; } [JsonPropertyName("CapabilityDrop")] - public IList CapabilityDrop { get; set; } = default!; + public IList? CapabilityDrop { get; set; } [JsonPropertyName("Ulimits")] - public IList Ulimits { get; set; } = default!; + public IList? Ulimits { get; set; } [JsonPropertyName("OomScoreAdj")] - public long OomScoreAdj { get; set; } = default!; + public long? OomScoreAdj { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerStatsResponse.Generated.cs b/src/Docker.DotNet/Models/ContainerStatsResponse.Generated.cs index 4955a372..dd1f5117 100644 --- a/src/Docker.DotNet/Models/ContainerStatsResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerStatsResponse.Generated.cs @@ -4,42 +4,42 @@ namespace Docker.DotNet.Models public class ContainerStatsResponse // (container.StatsResponse) { [JsonPropertyName("id")] - public string ID { get; set; } = default!; + public string? ID { get; set; } [JsonPropertyName("name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("os_type")] - public string OSType { get; set; } = default!; + public string? OSType { get; set; } [JsonPropertyName("read")] public DateTime Read { get; set; } = default!; [JsonPropertyName("cpu_stats")] - public CPUStats CPUStats { get; set; } = default!; + public CPUStats? CPUStats { get; set; } [JsonPropertyName("memory_stats")] - public MemoryStats MemoryStats { get; set; } = default!; + public MemoryStats? MemoryStats { get; set; } [JsonPropertyName("networks")] - public IDictionary Networks { get; set; } = default!; + public IDictionary? Networks { get; set; } [JsonPropertyName("pids_stats")] - public PidsStats PidsStats { get; set; } = default!; + public PidsStats? PidsStats { get; set; } [JsonPropertyName("blkio_stats")] - public BlkioStats BlkioStats { get; set; } = default!; + public BlkioStats? BlkioStats { get; set; } [JsonPropertyName("num_procs")] public uint NumProcs { get; set; } = default!; [JsonPropertyName("storage_stats")] - public StorageStats StorageStats { get; set; } = default!; + public StorageStats? StorageStats { get; set; } [JsonPropertyName("preread")] public DateTime PreRead { get; set; } = default!; [JsonPropertyName("precpu_stats")] - public CPUStats PreCPUStats { get; set; } = default!; + public CPUStats? PreCPUStats { get; set; } } } diff --git a/src/Docker.DotNet/Models/ContainerdInfo.Generated.cs b/src/Docker.DotNet/Models/ContainerdInfo.Generated.cs index 0c0d9e56..ae7892e7 100644 --- a/src/Docker.DotNet/Models/ContainerdInfo.Generated.cs +++ b/src/Docker.DotNet/Models/ContainerdInfo.Generated.cs @@ -4,7 +4,7 @@ namespace Docker.DotNet.Models public class ContainerdInfo // (system.ContainerdInfo) { [JsonPropertyName("Address")] - public string Address { get; set; } = default!; + public string? Address { get; set; } [JsonPropertyName("Namespaces")] public ContainerdNamespaces Namespaces { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/CreateContainerParameters.Generated.cs b/src/Docker.DotNet/Models/CreateContainerParameters.Generated.cs index 45aa7327..57de8587 100644 --- a/src/Docker.DotNet/Models/CreateContainerParameters.Generated.cs +++ b/src/Docker.DotNet/Models/CreateContainerParameters.Generated.cs @@ -63,7 +63,7 @@ public CreateContainerParameters(ContainerConfig Config) public bool AttachStderr { get; set; } = default!; [JsonPropertyName("ExposedPorts")] - public IDictionary ExposedPorts { get; set; } = default!; + public IDictionary? ExposedPorts { get; set; } [JsonPropertyName("Tty")] public bool Tty { get; set; } = default!; @@ -84,7 +84,7 @@ public CreateContainerParameters(ContainerConfig Config) public HealthcheckConfig? Healthcheck { get; set; } [JsonPropertyName("ArgsEscaped")] - public bool ArgsEscaped { get; set; } = default!; + public bool? ArgsEscaped { get; set; } [JsonPropertyName("Image")] public string Image { get; set; } = default!; @@ -99,23 +99,23 @@ public CreateContainerParameters(ContainerConfig Config) public IList Entrypoint { get; set; } = default!; [JsonPropertyName("NetworkDisabled")] - public bool NetworkDisabled { get; set; } = default!; + public bool? NetworkDisabled { get; set; } [JsonPropertyName("OnBuild")] - public IList OnBuild { get; set; } = default!; + public IList? OnBuild { get; set; } [JsonPropertyName("Labels")] public IDictionary Labels { get; set; } = default!; [JsonPropertyName("StopSignal")] - public string StopSignal { get; set; } = default!; + public string? StopSignal { get; set; } [JsonPropertyName("StopTimeout")] [JsonConverter(typeof(TimeSpanSecondsConverter))] public TimeSpan? StopTimeout { get; set; } [JsonPropertyName("Shell")] - public IList Shell { get; set; } = default!; + public IList? Shell { get; set; } [JsonPropertyName("HostConfig")] public HostConfig? HostConfig { get; set; } diff --git a/src/Docker.DotNet/Models/DNSConfig.Generated.cs b/src/Docker.DotNet/Models/DNSConfig.Generated.cs index 257b5076..cfca8cea 100644 --- a/src/Docker.DotNet/Models/DNSConfig.Generated.cs +++ b/src/Docker.DotNet/Models/DNSConfig.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class DNSConfig // (swarm.DNSConfig) { [JsonPropertyName("Nameservers")] - public IList Nameservers { get; set; } = default!; + public IList? Nameservers { get; set; } [JsonPropertyName("Search")] - public IList Search { get; set; } = default!; + public IList? Search { get; set; } [JsonPropertyName("Options")] - public IList Options { get; set; } = default!; + public IList? Options { get; set; } } } diff --git a/src/Docker.DotNet/Models/Descriptor.Generated.cs b/src/Docker.DotNet/Models/Descriptor.Generated.cs index 5b27bedd..15c25b23 100644 --- a/src/Docker.DotNet/Models/Descriptor.Generated.cs +++ b/src/Docker.DotNet/Models/Descriptor.Generated.cs @@ -13,19 +13,19 @@ public class Descriptor // (v1.Descriptor) public long Size { get; set; } = default!; [JsonPropertyName("urls")] - public IList URLs { get; set; } = default!; + public IList? URLs { get; set; } [JsonPropertyName("annotations")] - public IDictionary Annotations { get; set; } = default!; + public IDictionary? Annotations { get; set; } [JsonPropertyName("data")] [JsonConverter(typeof(Base64Converter))] - public IList Data { get; set; } = default!; + public IList? Data { get; set; } [JsonPropertyName("platform")] public Platform? Platform { get; set; } [JsonPropertyName("artifactType")] - public string ArtifactType { get; set; } = default!; + public string? ArtifactType { get; set; } } } diff --git a/src/Docker.DotNet/Models/DiscreteGenericResource.Generated.cs b/src/Docker.DotNet/Models/DiscreteGenericResource.Generated.cs index e6ffe324..fed998c4 100644 --- a/src/Docker.DotNet/Models/DiscreteGenericResource.Generated.cs +++ b/src/Docker.DotNet/Models/DiscreteGenericResource.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class DiscreteGenericResource // (swarm.DiscreteGenericResource) { [JsonPropertyName("Kind")] - public string Kind { get; set; } = default!; + public string? Kind { get; set; } [JsonPropertyName("Value")] - public long Value { get; set; } = default!; + public long? Value { get; set; } } } diff --git a/src/Docker.DotNet/Models/DispatcherConfig.Generated.cs b/src/Docker.DotNet/Models/DispatcherConfig.Generated.cs index dcb1a057..edfb8ce5 100644 --- a/src/Docker.DotNet/Models/DispatcherConfig.Generated.cs +++ b/src/Docker.DotNet/Models/DispatcherConfig.Generated.cs @@ -4,6 +4,6 @@ namespace Docker.DotNet.Models public class DispatcherConfig // (swarm.DispatcherConfig) { [JsonPropertyName("HeartbeatPeriod")] - public long HeartbeatPeriod { get; set; } = default!; + public long? HeartbeatPeriod { get; set; } } } diff --git a/src/Docker.DotNet/Models/DockerOCIImageConfig.Generated.cs b/src/Docker.DotNet/Models/DockerOCIImageConfig.Generated.cs index 53ab5883..24ee13f4 100644 --- a/src/Docker.DotNet/Models/DockerOCIImageConfig.Generated.cs +++ b/src/Docker.DotNet/Models/DockerOCIImageConfig.Generated.cs @@ -32,42 +32,42 @@ public DockerOCIImageConfig(ImageConfig ImageConfig, DockerOCIImageConfigExt Doc } [JsonPropertyName("User")] - public string User { get; set; } = default!; + public string? User { get; set; } [JsonPropertyName("ExposedPorts")] - public IDictionary ExposedPorts { get; set; } = default!; + public IDictionary? ExposedPorts { get; set; } [JsonPropertyName("Env")] - public IList Env { get; set; } = default!; + public IList? Env { get; set; } [JsonPropertyName("Entrypoint")] - public IList Entrypoint { get; set; } = default!; + public IList? Entrypoint { get; set; } [JsonPropertyName("Cmd")] - public IList Cmd { get; set; } = default!; + public IList? Cmd { get; set; } [JsonPropertyName("Volumes")] - public IDictionary Volumes { get; set; } = default!; + public IDictionary? Volumes { get; set; } [JsonPropertyName("WorkingDir")] - public string WorkingDir { get; set; } = default!; + public string? WorkingDir { get; set; } [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } = default!; + public IDictionary? Labels { get; set; } [JsonPropertyName("StopSignal")] - public string StopSignal { get; set; } = default!; + public string? StopSignal { get; set; } [JsonPropertyName("ArgsEscaped")] - public bool ArgsEscaped { get; set; } = default!; + public bool? ArgsEscaped { get; set; } [JsonPropertyName("Healthcheck")] public HealthcheckConfig? Healthcheck { get; set; } [JsonPropertyName("OnBuild")] - public IList OnBuild { get; set; } = default!; + public IList? OnBuild { get; set; } [JsonPropertyName("Shell")] - public IList Shell { get; set; } = default!; + public IList? Shell { get; set; } } } diff --git a/src/Docker.DotNet/Models/DockerOCIImageConfigExt.Generated.cs b/src/Docker.DotNet/Models/DockerOCIImageConfigExt.Generated.cs index 4afd6592..e875914d 100644 --- a/src/Docker.DotNet/Models/DockerOCIImageConfigExt.Generated.cs +++ b/src/Docker.DotNet/Models/DockerOCIImageConfigExt.Generated.cs @@ -7,9 +7,9 @@ public class DockerOCIImageConfigExt // (v1.DockerOCIImageConfigExt) public HealthcheckConfig? Healthcheck { get; set; } [JsonPropertyName("OnBuild")] - public IList OnBuild { get; set; } = default!; + public IList? OnBuild { get; set; } [JsonPropertyName("Shell")] - public IList Shell { get; set; } = default!; + public IList? Shell { get; set; } } } diff --git a/src/Docker.DotNet/Models/Driver.Generated.cs b/src/Docker.DotNet/Models/Driver.Generated.cs index d41d17ad..ead43844 100644 --- a/src/Docker.DotNet/Models/Driver.Generated.cs +++ b/src/Docker.DotNet/Models/Driver.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class Driver // (mount.Driver) { [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("Options")] - public IDictionary Options { get; set; } = default!; + public IDictionary? Options { get; set; } } } diff --git a/src/Docker.DotNet/Models/Endpoint.Generated.cs b/src/Docker.DotNet/Models/Endpoint.Generated.cs index 9e4498dc..63278c90 100644 --- a/src/Docker.DotNet/Models/Endpoint.Generated.cs +++ b/src/Docker.DotNet/Models/Endpoint.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class Endpoint // (swarm.Endpoint) { [JsonPropertyName("Spec")] - public EndpointSpec Spec { get; set; } = default!; + public EndpointSpec? Spec { get; set; } [JsonPropertyName("Ports")] - public IList Ports { get; set; } = default!; + public IList? Ports { get; set; } [JsonPropertyName("VirtualIPs")] - public IList VirtualIPs { get; set; } = default!; + public IList? VirtualIPs { get; set; } } } diff --git a/src/Docker.DotNet/Models/EndpointIPAMConfig.Generated.cs b/src/Docker.DotNet/Models/EndpointIPAMConfig.Generated.cs index c6f180d6..8a2e2afa 100644 --- a/src/Docker.DotNet/Models/EndpointIPAMConfig.Generated.cs +++ b/src/Docker.DotNet/Models/EndpointIPAMConfig.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class EndpointIPAMConfig // (network.EndpointIPAMConfig) { [JsonPropertyName("IPv4Address")] - public string IPv4Address { get; set; } = default!; + public string? IPv4Address { get; set; } [JsonPropertyName("IPv6Address")] - public string IPv6Address { get; set; } = default!; + public string? IPv6Address { get; set; } [JsonPropertyName("LinkLocalIPs")] - public IList LinkLocalIPs { get; set; } = default!; + public IList? LinkLocalIPs { get; set; } } } diff --git a/src/Docker.DotNet/Models/EndpointSpec.Generated.cs b/src/Docker.DotNet/Models/EndpointSpec.Generated.cs index 753317e6..de5610f9 100644 --- a/src/Docker.DotNet/Models/EndpointSpec.Generated.cs +++ b/src/Docker.DotNet/Models/EndpointSpec.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class EndpointSpec // (swarm.EndpointSpec) { [JsonPropertyName("Mode")] - public string Mode { get; set; } = default!; + public string? Mode { get; set; } [JsonPropertyName("Ports")] - public IList Ports { get; set; } = default!; + public IList? Ports { get; set; } } } diff --git a/src/Docker.DotNet/Models/EndpointVirtualIP.Generated.cs b/src/Docker.DotNet/Models/EndpointVirtualIP.Generated.cs index 669bb7d1..9b72f3a4 100644 --- a/src/Docker.DotNet/Models/EndpointVirtualIP.Generated.cs +++ b/src/Docker.DotNet/Models/EndpointVirtualIP.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class EndpointVirtualIP // (swarm.EndpointVirtualIP) { [JsonPropertyName("NetworkID")] - public string NetworkID { get; set; } = default!; + public string? NetworkID { get; set; } [JsonPropertyName("Addr")] - public string Addr { get; set; } = default!; + public string? Addr { get; set; } } } diff --git a/src/Docker.DotNet/Models/EngineDescription.Generated.cs b/src/Docker.DotNet/Models/EngineDescription.Generated.cs index 512a4a03..39a1967f 100644 --- a/src/Docker.DotNet/Models/EngineDescription.Generated.cs +++ b/src/Docker.DotNet/Models/EngineDescription.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class EngineDescription // (swarm.EngineDescription) { [JsonPropertyName("EngineVersion")] - public string EngineVersion { get; set; } = default!; + public string? EngineVersion { get; set; } [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } = default!; + public IDictionary? Labels { get; set; } [JsonPropertyName("Plugins")] - public IList Plugins { get; set; } = default!; + public IList? Plugins { get; set; } } } diff --git a/src/Docker.DotNet/Models/ExecProcessConfig.Generated.cs b/src/Docker.DotNet/Models/ExecProcessConfig.Generated.cs index 7ea4c8f3..1becb701 100644 --- a/src/Docker.DotNet/Models/ExecProcessConfig.Generated.cs +++ b/src/Docker.DotNet/Models/ExecProcessConfig.Generated.cs @@ -16,6 +16,6 @@ public class ExecProcessConfig // (container.ExecProcessConfig) public bool? Privileged { get; set; } [JsonPropertyName("user")] - public string User { get; set; } = default!; + public string? User { get; set; } } } diff --git a/src/Docker.DotNet/Models/ExternalCA.Generated.cs b/src/Docker.DotNet/Models/ExternalCA.Generated.cs index f39a48b7..4e939175 100644 --- a/src/Docker.DotNet/Models/ExternalCA.Generated.cs +++ b/src/Docker.DotNet/Models/ExternalCA.Generated.cs @@ -10,7 +10,7 @@ public class ExternalCA // (swarm.ExternalCA) public string URL { get; set; } = default!; [JsonPropertyName("Options")] - public IDictionary Options { get; set; } = default!; + public IDictionary? Options { get; set; } [JsonPropertyName("CACert")] public string CACert { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/FirewallInfo.Generated.cs b/src/Docker.DotNet/Models/FirewallInfo.Generated.cs index 930009f3..0bd541e8 100644 --- a/src/Docker.DotNet/Models/FirewallInfo.Generated.cs +++ b/src/Docker.DotNet/Models/FirewallInfo.Generated.cs @@ -7,6 +7,6 @@ public class FirewallInfo // (system.FirewallInfo) public string Driver { get; set; } = default!; [JsonPropertyName("Info")] - public IList Info { get; set; } = default!; + public IList? Info { get; set; } } } diff --git a/src/Docker.DotNet/Models/HealthcheckConfig.Generated.cs b/src/Docker.DotNet/Models/HealthcheckConfig.Generated.cs index 75961242..dea555df 100644 --- a/src/Docker.DotNet/Models/HealthcheckConfig.Generated.cs +++ b/src/Docker.DotNet/Models/HealthcheckConfig.Generated.cs @@ -4,23 +4,23 @@ namespace Docker.DotNet.Models public class HealthcheckConfig // (v1.HealthcheckConfig) { [JsonPropertyName("Test")] - public IList Test { get; set; } = default!; + public IList? Test { get; set; } [JsonPropertyName("Interval")] [JsonConverter(typeof(TimeSpanNanosecondsConverter))] - public TimeSpan Interval { get; set; } = default!; + public TimeSpan? Interval { get; set; } [JsonPropertyName("Timeout")] [JsonConverter(typeof(TimeSpanNanosecondsConverter))] - public TimeSpan Timeout { get; set; } = default!; + public TimeSpan? Timeout { get; set; } [JsonPropertyName("StartPeriod")] - public long StartPeriod { get; set; } = default!; + public long? StartPeriod { get; set; } [JsonPropertyName("StartInterval")] - public long StartInterval { get; set; } = default!; + public long? StartInterval { get; set; } [JsonPropertyName("Retries")] - public long Retries { get; set; } = default!; + public long? Retries { get; set; } } } diff --git a/src/Docker.DotNet/Models/HostConfig.Generated.cs b/src/Docker.DotNet/Models/HostConfig.Generated.cs index 08ddc635..f912cffc 100644 --- a/src/Docker.DotNet/Models/HostConfig.Generated.cs +++ b/src/Docker.DotNet/Models/HostConfig.Generated.cs @@ -75,7 +75,7 @@ public HostConfig(Resources Resources) public ConsoleSize ConsoleSize { get; set; } = default!; [JsonPropertyName("Annotations")] - public IDictionary Annotations { get; set; } = default!; + public IDictionary? Annotations { get; set; } [JsonPropertyName("CapAdd")] public IList CapAdd { get; set; } = default!; @@ -129,10 +129,10 @@ public HostConfig(Resources Resources) public IList SecurityOpt { get; set; } = default!; [JsonPropertyName("StorageOpt")] - public IDictionary StorageOpt { get; set; } = default!; + public IDictionary? StorageOpt { get; set; } [JsonPropertyName("Tmpfs")] - public IDictionary Tmpfs { get; set; } = default!; + public IDictionary? Tmpfs { get; set; } [JsonPropertyName("UTSMode")] public string UTSMode { get; set; } = default!; @@ -144,10 +144,10 @@ public HostConfig(Resources Resources) public long ShmSize { get; set; } = default!; [JsonPropertyName("Sysctls")] - public IDictionary Sysctls { get; set; } = default!; + public IDictionary? Sysctls { get; set; } [JsonPropertyName("Runtime")] - public string Runtime { get; set; } = default!; + public string? Runtime { get; set; } [JsonPropertyName("Isolation")] public string Isolation { get; set; } = default!; @@ -240,7 +240,7 @@ public HostConfig(Resources Resources) public ulong IOMaximumBandwidth { get; set; } = default!; [JsonPropertyName("Mounts")] - public IList Mounts { get; set; } = default!; + public IList? Mounts { get; set; } [JsonPropertyName("MaskedPaths")] public IList MaskedPaths { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/IPAMConfig.Generated.cs b/src/Docker.DotNet/Models/IPAMConfig.Generated.cs index 7482c318..2cd2f79b 100644 --- a/src/Docker.DotNet/Models/IPAMConfig.Generated.cs +++ b/src/Docker.DotNet/Models/IPAMConfig.Generated.cs @@ -4,15 +4,15 @@ namespace Docker.DotNet.Models public class IPAMConfig // (network.IPAMConfig) { [JsonPropertyName("Subnet")] - public string Subnet { get; set; } = default!; + public string? Subnet { get; set; } [JsonPropertyName("IPRange")] - public string IPRange { get; set; } = default!; + public string? IPRange { get; set; } [JsonPropertyName("Gateway")] - public string Gateway { get; set; } = default!; + public string? Gateway { get; set; } [JsonPropertyName("AuxiliaryAddresses")] - public IDictionary AuxAddress { get; set; } = default!; + public IDictionary? AuxAddress { get; set; } } } diff --git a/src/Docker.DotNet/Models/IPAMOptions.Generated.cs b/src/Docker.DotNet/Models/IPAMOptions.Generated.cs index bb3fc868..a3594050 100644 --- a/src/Docker.DotNet/Models/IPAMOptions.Generated.cs +++ b/src/Docker.DotNet/Models/IPAMOptions.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class IPAMOptions // (swarm.IPAMOptions) { [JsonPropertyName("Driver")] - public SwarmDriver Driver { get; set; } = default!; + public SwarmDriver? Driver { get; set; } [JsonPropertyName("Configs")] - public IList Configs { get; set; } = default!; + public IList? Configs { get; set; } } } diff --git a/src/Docker.DotNet/Models/IPAMStatus.Generated.cs b/src/Docker.DotNet/Models/IPAMStatus.Generated.cs index 88a196a4..7530e2b2 100644 --- a/src/Docker.DotNet/Models/IPAMStatus.Generated.cs +++ b/src/Docker.DotNet/Models/IPAMStatus.Generated.cs @@ -4,6 +4,6 @@ namespace Docker.DotNet.Models public class IPAMStatus // (network.IPAMStatus) { [JsonPropertyName("Subnets")] - public IDictionary Subnets { get; set; } = default!; + public IDictionary? Subnets { get; set; } } } diff --git a/src/Docker.DotNet/Models/ImageConfig.Generated.cs b/src/Docker.DotNet/Models/ImageConfig.Generated.cs index 2885f55c..f5292f60 100644 --- a/src/Docker.DotNet/Models/ImageConfig.Generated.cs +++ b/src/Docker.DotNet/Models/ImageConfig.Generated.cs @@ -4,33 +4,33 @@ namespace Docker.DotNet.Models public class ImageConfig // (v1.ImageConfig) { [JsonPropertyName("User")] - public string User { get; set; } = default!; + public string? User { get; set; } [JsonPropertyName("ExposedPorts")] - public IDictionary ExposedPorts { get; set; } = default!; + public IDictionary? ExposedPorts { get; set; } [JsonPropertyName("Env")] - public IList Env { get; set; } = default!; + public IList? Env { get; set; } [JsonPropertyName("Entrypoint")] - public IList Entrypoint { get; set; } = default!; + public IList? Entrypoint { get; set; } [JsonPropertyName("Cmd")] - public IList Cmd { get; set; } = default!; + public IList? Cmd { get; set; } [JsonPropertyName("Volumes")] - public IDictionary Volumes { get; set; } = default!; + public IDictionary? Volumes { get; set; } [JsonPropertyName("WorkingDir")] - public string WorkingDir { get; set; } = default!; + public string? WorkingDir { get; set; } [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } = default!; + public IDictionary? Labels { get; set; } [JsonPropertyName("StopSignal")] - public string StopSignal { get; set; } = default!; + public string? StopSignal { get; set; } [JsonPropertyName("ArgsEscaped")] - public bool ArgsEscaped { get; set; } = default!; + public bool? ArgsEscaped { get; set; } } } diff --git a/src/Docker.DotNet/Models/ImageDeleteResponse.Generated.cs b/src/Docker.DotNet/Models/ImageDeleteResponse.Generated.cs index dab8c363..c445a50f 100644 --- a/src/Docker.DotNet/Models/ImageDeleteResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ImageDeleteResponse.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class ImageDeleteResponse // (image.DeleteResponse) { [JsonPropertyName("Deleted")] - public string Deleted { get; set; } = default!; + public string? Deleted { get; set; } [JsonPropertyName("Untagged")] - public string Untagged { get; set; } = default!; + public string? Untagged { get; set; } } } diff --git a/src/Docker.DotNet/Models/ImageInspectResponse.Generated.cs b/src/Docker.DotNet/Models/ImageInspectResponse.Generated.cs index 3982a83f..6da9fe35 100644 --- a/src/Docker.DotNet/Models/ImageInspectResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ImageInspectResponse.Generated.cs @@ -13,13 +13,13 @@ public class ImageInspectResponse // (image.InspectResponse) public IList RepoDigests { get; set; } = default!; [JsonPropertyName("Comment")] - public string Comment { get; set; } = default!; + public string? Comment { get; set; } [JsonPropertyName("Created")] - public DateTime Created { get; set; } = default!; + public DateTime? Created { get; set; } [JsonPropertyName("Author")] - public string Author { get; set; } = default!; + public string? Author { get; set; } [JsonPropertyName("Config")] public DockerOCIImageConfig? Config { get; set; } @@ -28,13 +28,13 @@ public class ImageInspectResponse // (image.InspectResponse) public string Architecture { get; set; } = default!; [JsonPropertyName("Variant")] - public string Variant { get; set; } = default!; + public string? Variant { get; set; } [JsonPropertyName("Os")] public string Os { get; set; } = default!; [JsonPropertyName("OsVersion")] - public string OsVersion { get; set; } = default!; + public string? OsVersion { get; set; } [JsonPropertyName("Size")] public long Size { get; set; } = default!; @@ -52,6 +52,6 @@ public class ImageInspectResponse // (image.InspectResponse) public Descriptor? Descriptor { get; set; } [JsonPropertyName("Manifests")] - public IList Manifests { get; set; } = default!; + public IList? Manifests { get; set; } } } diff --git a/src/Docker.DotNet/Models/ImageOptions.Generated.cs b/src/Docker.DotNet/Models/ImageOptions.Generated.cs index ff4f2178..89eeb84d 100644 --- a/src/Docker.DotNet/Models/ImageOptions.Generated.cs +++ b/src/Docker.DotNet/Models/ImageOptions.Generated.cs @@ -4,6 +4,6 @@ namespace Docker.DotNet.Models public class ImageOptions // (mount.ImageOptions) { [JsonPropertyName("Subpath")] - public string Subpath { get; set; } = default!; + public string? Subpath { get; set; } } } diff --git a/src/Docker.DotNet/Models/ImagesListResponse.Generated.cs b/src/Docker.DotNet/Models/ImagesListResponse.Generated.cs index 2752827b..dd2b53da 100644 --- a/src/Docker.DotNet/Models/ImagesListResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ImagesListResponse.Generated.cs @@ -22,7 +22,7 @@ public class ImagesListResponse // (image.Summary) public Descriptor? Descriptor { get; set; } [JsonPropertyName("Manifests")] - public IList Manifests { get; set; } = default!; + public IList? Manifests { get; set; } [JsonPropertyName("RepoDigests")] public IList RepoDigests { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/Info.Generated.cs b/src/Docker.DotNet/Models/Info.Generated.cs index efc1951f..7aa84639 100644 --- a/src/Docker.DotNet/Models/Info.Generated.cs +++ b/src/Docker.DotNet/Models/Info.Generated.cs @@ -22,15 +22,15 @@ public class Info // (swarm.Info) public IList RemoteManagers { get; set; } = default!; [JsonPropertyName("Nodes")] - public long Nodes { get; set; } = default!; + public long? Nodes { get; set; } [JsonPropertyName("Managers")] - public long Managers { get; set; } = default!; + public long? Managers { get; set; } [JsonPropertyName("Cluster")] public ClusterInfo? Cluster { get; set; } [JsonPropertyName("Warnings")] - public IList Warnings { get; set; } = default!; + public IList? Warnings { get; set; } } } diff --git a/src/Docker.DotNet/Models/JSONError.Generated.cs b/src/Docker.DotNet/Models/JSONError.Generated.cs index adc4e4e0..249dba3b 100644 --- a/src/Docker.DotNet/Models/JSONError.Generated.cs +++ b/src/Docker.DotNet/Models/JSONError.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class JSONError // (jsonstream.Error) { [JsonPropertyName("code")] - public long Code { get; set; } = default!; + public long? Code { get; set; } [JsonPropertyName("message")] - public string Message { get; set; } = default!; + public string? Message { get; set; } } } diff --git a/src/Docker.DotNet/Models/JSONMessage.Generated.cs b/src/Docker.DotNet/Models/JSONMessage.Generated.cs index 2d3ce706..17bb3884 100644 --- a/src/Docker.DotNet/Models/JSONMessage.Generated.cs +++ b/src/Docker.DotNet/Models/JSONMessage.Generated.cs @@ -4,16 +4,16 @@ namespace Docker.DotNet.Models public class JSONMessage // (jsonstream.Message) { [JsonPropertyName("stream")] - public string Stream { get; set; } = default!; + public string? Stream { get; set; } [JsonPropertyName("status")] - public string Status { get; set; } = default!; + public string? Status { get; set; } [JsonPropertyName("progressDetail")] public JSONProgress? Progress { get; set; } [JsonPropertyName("id")] - public string ID { get; set; } = default!; + public string? ID { get; set; } [JsonPropertyName("errorDetail")] public JSONError? Error { get; set; } diff --git a/src/Docker.DotNet/Models/JSONProgress.Generated.cs b/src/Docker.DotNet/Models/JSONProgress.Generated.cs index 843d83fa..93fe7628 100644 --- a/src/Docker.DotNet/Models/JSONProgress.Generated.cs +++ b/src/Docker.DotNet/Models/JSONProgress.Generated.cs @@ -4,18 +4,18 @@ namespace Docker.DotNet.Models public class JSONProgress // (jsonstream.Progress) { [JsonPropertyName("current")] - public long Current { get; set; } = default!; + public long? Current { get; set; } [JsonPropertyName("total")] - public long Total { get; set; } = default!; + public long? Total { get; set; } [JsonPropertyName("start")] - public long Start { get; set; } = default!; + public long? Start { get; set; } [JsonPropertyName("hidecounts")] - public bool HideCounts { get; set; } = default!; + public bool? HideCounts { get; set; } [JsonPropertyName("units")] - public string Units { get; set; } = default!; + public string? Units { get; set; } } } diff --git a/src/Docker.DotNet/Models/JobStatus.Generated.cs b/src/Docker.DotNet/Models/JobStatus.Generated.cs index 691f0b0b..5617f948 100644 --- a/src/Docker.DotNet/Models/JobStatus.Generated.cs +++ b/src/Docker.DotNet/Models/JobStatus.Generated.cs @@ -7,6 +7,6 @@ public class JobStatus // (swarm.JobStatus) public Version JobIteration { get; set; } = default!; [JsonPropertyName("LastExecution")] - public DateTime LastExecution { get; set; } = default!; + public DateTime? LastExecution { get; set; } } } diff --git a/src/Docker.DotNet/Models/ManagerStatus.Generated.cs b/src/Docker.DotNet/Models/ManagerStatus.Generated.cs index 7dc45f9b..6c63a630 100644 --- a/src/Docker.DotNet/Models/ManagerStatus.Generated.cs +++ b/src/Docker.DotNet/Models/ManagerStatus.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class ManagerStatus // (swarm.ManagerStatus) { [JsonPropertyName("Leader")] - public bool Leader { get; set; } = default!; + public bool? Leader { get; set; } [JsonPropertyName("Reachability")] - public string Reachability { get; set; } = default!; + public string? Reachability { get; set; } [JsonPropertyName("Addr")] - public string Addr { get; set; } = default!; + public string? Addr { get; set; } } } diff --git a/src/Docker.DotNet/Models/MemoryStats.Generated.cs b/src/Docker.DotNet/Models/MemoryStats.Generated.cs index 9e9e7f24..b8f2c84c 100644 --- a/src/Docker.DotNet/Models/MemoryStats.Generated.cs +++ b/src/Docker.DotNet/Models/MemoryStats.Generated.cs @@ -4,27 +4,27 @@ namespace Docker.DotNet.Models public class MemoryStats // (container.MemoryStats) { [JsonPropertyName("usage")] - public ulong Usage { get; set; } = default!; + public ulong? Usage { get; set; } [JsonPropertyName("max_usage")] - public ulong MaxUsage { get; set; } = default!; + public ulong? MaxUsage { get; set; } [JsonPropertyName("stats")] - public IDictionary Stats { get; set; } = default!; + public IDictionary? Stats { get; set; } [JsonPropertyName("failcnt")] - public ulong Failcnt { get; set; } = default!; + public ulong? Failcnt { get; set; } [JsonPropertyName("limit")] - public ulong Limit { get; set; } = default!; + public ulong? Limit { get; set; } [JsonPropertyName("commitbytes")] - public ulong Commit { get; set; } = default!; + public ulong? Commit { get; set; } [JsonPropertyName("commitpeakbytes")] - public ulong CommitPeak { get; set; } = default!; + public ulong? CommitPeak { get; set; } [JsonPropertyName("privateworkingset")] - public ulong PrivateWorkingSet { get; set; } = default!; + public ulong? PrivateWorkingSet { get; set; } } } diff --git a/src/Docker.DotNet/Models/Message.Generated.cs b/src/Docker.DotNet/Models/Message.Generated.cs index 9035e486..b8fc044b 100644 --- a/src/Docker.DotNet/Models/Message.Generated.cs +++ b/src/Docker.DotNet/Models/Message.Generated.cs @@ -13,12 +13,12 @@ public class Message // (events.Message) public Actor Actor { get; set; } = default!; [JsonPropertyName("scope")] - public string Scope { get; set; } = default!; + public string? Scope { get; set; } [JsonPropertyName("time")] - public long Time { get; set; } = default!; + public long? Time { get; set; } [JsonPropertyName("timeNano")] - public long TimeNano { get; set; } = default!; + public long? TimeNano { get; set; } } } diff --git a/src/Docker.DotNet/Models/Meta.Generated.cs b/src/Docker.DotNet/Models/Meta.Generated.cs index b160e3a7..da3d9d5a 100644 --- a/src/Docker.DotNet/Models/Meta.Generated.cs +++ b/src/Docker.DotNet/Models/Meta.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class Meta // (swarm.Meta) { [JsonPropertyName("Version")] - public Version Version { get; set; } = default!; + public Version? Version { get; set; } [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } = default!; + public DateTime? CreatedAt { get; set; } [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } = default!; + public DateTime? UpdatedAt { get; set; } } } diff --git a/src/Docker.DotNet/Models/Metadata.Generated.cs b/src/Docker.DotNet/Models/Metadata.Generated.cs index a3de565c..226f18d8 100644 --- a/src/Docker.DotNet/Models/Metadata.Generated.cs +++ b/src/Docker.DotNet/Models/Metadata.Generated.cs @@ -4,6 +4,6 @@ namespace Docker.DotNet.Models public class Metadata // (image.Metadata) { [JsonPropertyName("LastTagTime")] - public DateTime LastTagTime { get; set; } = default!; + public DateTime? LastTagTime { get; set; } } } diff --git a/src/Docker.DotNet/Models/Mount.Generated.cs b/src/Docker.DotNet/Models/Mount.Generated.cs index eb8eb162..227fcd64 100644 --- a/src/Docker.DotNet/Models/Mount.Generated.cs +++ b/src/Docker.DotNet/Models/Mount.Generated.cs @@ -4,19 +4,19 @@ namespace Docker.DotNet.Models public class Mount // (mount.Mount) { [JsonPropertyName("Type")] - public string Type { get; set; } = default!; + public string? Type { get; set; } [JsonPropertyName("Source")] - public string Source { get; set; } = default!; + public string? Source { get; set; } [JsonPropertyName("Target")] - public string Target { get; set; } = default!; + public string? Target { get; set; } [JsonPropertyName("ReadOnly")] - public bool ReadOnly { get; set; } = default!; + public bool? ReadOnly { get; set; } [JsonPropertyName("Consistency")] - public string Consistency { get; set; } = default!; + public string? Consistency { get; set; } [JsonPropertyName("BindOptions")] public BindOptions? BindOptions { get; set; } diff --git a/src/Docker.DotNet/Models/MountPoint.Generated.cs b/src/Docker.DotNet/Models/MountPoint.Generated.cs index 1b429043..5ceff8cd 100644 --- a/src/Docker.DotNet/Models/MountPoint.Generated.cs +++ b/src/Docker.DotNet/Models/MountPoint.Generated.cs @@ -4,10 +4,10 @@ namespace Docker.DotNet.Models public class MountPoint // (container.MountPoint) { [JsonPropertyName("Type")] - public string Type { get; set; } = default!; + public string? Type { get; set; } [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("Source")] public string Source { get; set; } = default!; @@ -16,7 +16,7 @@ public class MountPoint // (container.MountPoint) public string Destination { get; set; } = default!; [JsonPropertyName("Driver")] - public string Driver { get; set; } = default!; + public string? Driver { get; set; } [JsonPropertyName("Mode")] public string Mode { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/NamedGenericResource.Generated.cs b/src/Docker.DotNet/Models/NamedGenericResource.Generated.cs index b9dd6523..135a3f1a 100644 --- a/src/Docker.DotNet/Models/NamedGenericResource.Generated.cs +++ b/src/Docker.DotNet/Models/NamedGenericResource.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class NamedGenericResource // (swarm.NamedGenericResource) { [JsonPropertyName("Kind")] - public string Kind { get; set; } = default!; + public string? Kind { get; set; } [JsonPropertyName("Value")] - public string Value { get; set; } = default!; + public string? Value { get; set; } } } diff --git a/src/Docker.DotNet/Models/Network.Generated.cs b/src/Docker.DotNet/Models/Network.Generated.cs index 01d08901..0655c5aa 100644 --- a/src/Docker.DotNet/Models/Network.Generated.cs +++ b/src/Docker.DotNet/Models/Network.Generated.cs @@ -49,6 +49,6 @@ public class Network // (network.Network) public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Peers")] - public IList Peers { get; set; } = default!; + public IList? Peers { get; set; } } } diff --git a/src/Docker.DotNet/Models/NetworkAttachment.Generated.cs b/src/Docker.DotNet/Models/NetworkAttachment.Generated.cs index 4e9902d3..bfaef16f 100644 --- a/src/Docker.DotNet/Models/NetworkAttachment.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkAttachment.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class NetworkAttachment // (swarm.NetworkAttachment) { [JsonPropertyName("Network")] - public SwarmNetwork Network { get; set; } = default!; + public SwarmNetwork? Network { get; set; } [JsonPropertyName("Addresses")] - public IList Addresses { get; set; } = default!; + public IList? Addresses { get; set; } } } diff --git a/src/Docker.DotNet/Models/NetworkAttachmentConfig.Generated.cs b/src/Docker.DotNet/Models/NetworkAttachmentConfig.Generated.cs index 0c9fefea..8ee573ba 100644 --- a/src/Docker.DotNet/Models/NetworkAttachmentConfig.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkAttachmentConfig.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class NetworkAttachmentConfig // (swarm.NetworkAttachmentConfig) { [JsonPropertyName("Target")] - public string Target { get; set; } = default!; + public string? Target { get; set; } [JsonPropertyName("Aliases")] - public IList Aliases { get; set; } = default!; + public IList? Aliases { get; set; } [JsonPropertyName("DriverOpts")] - public IDictionary DriverOpts { get; set; } = default!; + public IDictionary? DriverOpts { get; set; } } } diff --git a/src/Docker.DotNet/Models/NetworkResponse.Generated.cs b/src/Docker.DotNet/Models/NetworkResponse.Generated.cs index d1743096..e8e91e87 100644 --- a/src/Docker.DotNet/Models/NetworkResponse.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkResponse.Generated.cs @@ -76,13 +76,13 @@ public NetworkResponse(Network Network) public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Peers")] - public IList Peers { get; set; } = default!; + public IList? Peers { get; set; } [JsonPropertyName("Containers")] public IDictionary Containers { get; set; } = default!; [JsonPropertyName("Services")] - public IDictionary Services { get; set; } = default!; + public IDictionary? Services { get; set; } [JsonPropertyName("Status")] public Status? Status { get; set; } diff --git a/src/Docker.DotNet/Models/NetworkSpec.Generated.cs b/src/Docker.DotNet/Models/NetworkSpec.Generated.cs index 0770fa7d..0f41806f 100644 --- a/src/Docker.DotNet/Models/NetworkSpec.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkSpec.Generated.cs @@ -17,7 +17,7 @@ public NetworkSpec(Annotations Annotations) } [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("Labels")] public IDictionary Labels { get; set; } = default!; @@ -26,16 +26,16 @@ public NetworkSpec(Annotations Annotations) public SwarmDriver? DriverConfiguration { get; set; } [JsonPropertyName("IPv6Enabled")] - public bool IPv6Enabled { get; set; } = default!; + public bool? IPv6Enabled { get; set; } [JsonPropertyName("Internal")] - public bool Internal { get; set; } = default!; + public bool? Internal { get; set; } [JsonPropertyName("Attachable")] - public bool Attachable { get; set; } = default!; + public bool? Attachable { get; set; } [JsonPropertyName("Ingress")] - public bool Ingress { get; set; } = default!; + public bool? Ingress { get; set; } [JsonPropertyName("IPAMOptions")] public IPAMOptions? IPAMOptions { get; set; } @@ -44,6 +44,6 @@ public NetworkSpec(Annotations Annotations) public ConfigReference? ConfigFrom { get; set; } [JsonPropertyName("Scope")] - public string Scope { get; set; } = default!; + public string? Scope { get; set; } } } diff --git a/src/Docker.DotNet/Models/NetworkStats.Generated.cs b/src/Docker.DotNet/Models/NetworkStats.Generated.cs index 476f8dd8..d9d43811 100644 --- a/src/Docker.DotNet/Models/NetworkStats.Generated.cs +++ b/src/Docker.DotNet/Models/NetworkStats.Generated.cs @@ -28,9 +28,9 @@ public class NetworkStats // (container.NetworkStats) public ulong TxDropped { get; set; } = default!; [JsonPropertyName("endpoint_id")] - public string EndpointID { get; set; } = default!; + public string? EndpointID { get; set; } [JsonPropertyName("instance_id")] - public string InstanceID { get; set; } = default!; + public string? InstanceID { get; set; } } } diff --git a/src/Docker.DotNet/Models/NodeCSIInfo.Generated.cs b/src/Docker.DotNet/Models/NodeCSIInfo.Generated.cs index 3114516c..7f08ef21 100644 --- a/src/Docker.DotNet/Models/NodeCSIInfo.Generated.cs +++ b/src/Docker.DotNet/Models/NodeCSIInfo.Generated.cs @@ -4,13 +4,13 @@ namespace Docker.DotNet.Models public class NodeCSIInfo // (swarm.NodeCSIInfo) { [JsonPropertyName("PluginName")] - public string PluginName { get; set; } = default!; + public string? PluginName { get; set; } [JsonPropertyName("NodeID")] - public string NodeID { get; set; } = default!; + public string? NodeID { get; set; } [JsonPropertyName("MaxVolumesPerNode")] - public long MaxVolumesPerNode { get; set; } = default!; + public long? MaxVolumesPerNode { get; set; } [JsonPropertyName("AccessibleTopology")] public Topology? AccessibleTopology { get; set; } diff --git a/src/Docker.DotNet/Models/NodeDescription.Generated.cs b/src/Docker.DotNet/Models/NodeDescription.Generated.cs index 483700a7..3863c768 100644 --- a/src/Docker.DotNet/Models/NodeDescription.Generated.cs +++ b/src/Docker.DotNet/Models/NodeDescription.Generated.cs @@ -4,21 +4,21 @@ namespace Docker.DotNet.Models public class NodeDescription // (swarm.NodeDescription) { [JsonPropertyName("Hostname")] - public string Hostname { get; set; } = default!; + public string? Hostname { get; set; } [JsonPropertyName("Platform")] - public SwarmPlatform Platform { get; set; } = default!; + public SwarmPlatform? Platform { get; set; } [JsonPropertyName("Resources")] - public SwarmResources Resources { get; set; } = default!; + public SwarmResources? Resources { get; set; } [JsonPropertyName("Engine")] - public EngineDescription Engine { get; set; } = default!; + public EngineDescription? Engine { get; set; } [JsonPropertyName("TLSInfo")] - public TLSInfo TLSInfo { get; set; } = default!; + public TLSInfo? TLSInfo { get; set; } [JsonPropertyName("CSIInfo")] - public IList CSIInfo { get; set; } = default!; + public IList? CSIInfo { get; set; } } } diff --git a/src/Docker.DotNet/Models/NodeListResponse.Generated.cs b/src/Docker.DotNet/Models/NodeListResponse.Generated.cs index 4d656a42..fa5f2506 100644 --- a/src/Docker.DotNet/Models/NodeListResponse.Generated.cs +++ b/src/Docker.DotNet/Models/NodeListResponse.Generated.cs @@ -21,22 +21,22 @@ public NodeListResponse(Meta Meta) public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } = default!; + public Version? Version { get; set; } [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } = default!; + public DateTime? CreatedAt { get; set; } [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } = default!; + public DateTime? UpdatedAt { get; set; } [JsonPropertyName("Spec")] - public NodeUpdateParameters Spec { get; set; } = default!; + public NodeUpdateParameters? Spec { get; set; } [JsonPropertyName("Description")] - public NodeDescription Description { get; set; } = default!; + public NodeDescription? Description { get; set; } [JsonPropertyName("Status")] - public NodeStatus Status { get; set; } = default!; + public NodeStatus? Status { get; set; } [JsonPropertyName("ManagerStatus")] public ManagerStatus? ManagerStatus { get; set; } diff --git a/src/Docker.DotNet/Models/NodeStatus.Generated.cs b/src/Docker.DotNet/Models/NodeStatus.Generated.cs index 421ab4a0..9ff5d3f9 100644 --- a/src/Docker.DotNet/Models/NodeStatus.Generated.cs +++ b/src/Docker.DotNet/Models/NodeStatus.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class NodeStatus // (swarm.NodeStatus) { [JsonPropertyName("State")] - public string State { get; set; } = default!; + public string? State { get; set; } [JsonPropertyName("Message")] - public string Message { get; set; } = default!; + public string? Message { get; set; } [JsonPropertyName("Addr")] - public string Addr { get; set; } = default!; + public string? Addr { get; set; } } } diff --git a/src/Docker.DotNet/Models/NodeUpdateParameters.Generated.cs b/src/Docker.DotNet/Models/NodeUpdateParameters.Generated.cs index 557c63fe..70e73681 100644 --- a/src/Docker.DotNet/Models/NodeUpdateParameters.Generated.cs +++ b/src/Docker.DotNet/Models/NodeUpdateParameters.Generated.cs @@ -17,15 +17,15 @@ public NodeUpdateParameters(Annotations Annotations) } [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("Labels")] public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Role")] - public string Role { get; set; } = default!; + public string? Role { get; set; } [JsonPropertyName("Availability")] - public string Availability { get; set; } = default!; + public string? Availability { get; set; } } } diff --git a/src/Docker.DotNet/Models/PidsStats.Generated.cs b/src/Docker.DotNet/Models/PidsStats.Generated.cs index 61925770..fa55fe77 100644 --- a/src/Docker.DotNet/Models/PidsStats.Generated.cs +++ b/src/Docker.DotNet/Models/PidsStats.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class PidsStats // (container.PidsStats) { [JsonPropertyName("current")] - public ulong Current { get; set; } = default!; + public ulong? Current { get; set; } [JsonPropertyName("limit")] - public ulong Limit { get; set; } = default!; + public ulong? Limit { get; set; } } } diff --git a/src/Docker.DotNet/Models/Placement.Generated.cs b/src/Docker.DotNet/Models/Placement.Generated.cs index f43a1e7d..250f5116 100644 --- a/src/Docker.DotNet/Models/Placement.Generated.cs +++ b/src/Docker.DotNet/Models/Placement.Generated.cs @@ -4,15 +4,15 @@ namespace Docker.DotNet.Models public class Placement // (swarm.Placement) { [JsonPropertyName("Constraints")] - public IList Constraints { get; set; } = default!; + public IList? Constraints { get; set; } [JsonPropertyName("Preferences")] - public IList Preferences { get; set; } = default!; + public IList? Preferences { get; set; } [JsonPropertyName("MaxReplicas")] - public ulong MaxReplicas { get; set; } = default!; + public ulong? MaxReplicas { get; set; } [JsonPropertyName("Platforms")] - public IList Platforms { get; set; } = default!; + public IList? Platforms { get; set; } } } diff --git a/src/Docker.DotNet/Models/Platform.Generated.cs b/src/Docker.DotNet/Models/Platform.Generated.cs index 5014dc9d..73591d0a 100644 --- a/src/Docker.DotNet/Models/Platform.Generated.cs +++ b/src/Docker.DotNet/Models/Platform.Generated.cs @@ -10,12 +10,12 @@ public class Platform // (v1.Platform) public string OS { get; set; } = default!; [JsonPropertyName("os.version")] - public string OSVersion { get; set; } = default!; + public string? OSVersion { get; set; } [JsonPropertyName("os.features")] - public IList OSFeatures { get; set; } = default!; + public IList? OSFeatures { get; set; } [JsonPropertyName("variant")] - public string Variant { get; set; } = default!; + public string? Variant { get; set; } } } diff --git a/src/Docker.DotNet/Models/Plugin.Generated.cs b/src/Docker.DotNet/Models/Plugin.Generated.cs index 1e5bd990..d9a9ed4d 100644 --- a/src/Docker.DotNet/Models/Plugin.Generated.cs +++ b/src/Docker.DotNet/Models/Plugin.Generated.cs @@ -10,13 +10,13 @@ public class Plugin // (plugin.Plugin) public bool Enabled { get; set; } = default!; [JsonPropertyName("Id")] - public string ID { get; set; } = default!; + public string? ID { get; set; } [JsonPropertyName("Name")] public string Name { get; set; } = default!; [JsonPropertyName("PluginReference")] - public string PluginReference { get; set; } = default!; + public string? PluginReference { get; set; } [JsonPropertyName("Settings")] public PluginSettings Settings { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/PluginConfig.Generated.cs b/src/Docker.DotNet/Models/PluginConfig.Generated.cs index c3b6f2ac..1efd74e4 100644 --- a/src/Docker.DotNet/Models/PluginConfig.Generated.cs +++ b/src/Docker.DotNet/Models/PluginConfig.Generated.cs @@ -40,7 +40,7 @@ public class PluginConfig // (plugin.Config) public string PropagatedMount { get; set; } = default!; [JsonPropertyName("User")] - public PluginUser User { get; set; } = default!; + public PluginUser? User { get; set; } [JsonPropertyName("WorkDir")] public string WorkDir { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/PluginDescription.Generated.cs b/src/Docker.DotNet/Models/PluginDescription.Generated.cs index 57a52616..2d89a476 100644 --- a/src/Docker.DotNet/Models/PluginDescription.Generated.cs +++ b/src/Docker.DotNet/Models/PluginDescription.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class PluginDescription // (swarm.PluginDescription) { [JsonPropertyName("Type")] - public string Type { get; set; } = default!; + public string? Type { get; set; } [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } } } diff --git a/src/Docker.DotNet/Models/PluginInterface.Generated.cs b/src/Docker.DotNet/Models/PluginInterface.Generated.cs index 5dd7459d..ab60d9d9 100644 --- a/src/Docker.DotNet/Models/PluginInterface.Generated.cs +++ b/src/Docker.DotNet/Models/PluginInterface.Generated.cs @@ -4,7 +4,7 @@ namespace Docker.DotNet.Models public class PluginInterface // (plugin.Interface) { [JsonPropertyName("ProtocolScheme")] - public string ProtocolScheme { get; set; } = default!; + public string? ProtocolScheme { get; set; } [JsonPropertyName("Socket")] public string Socket { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/PluginRootFS.Generated.cs b/src/Docker.DotNet/Models/PluginRootFS.Generated.cs index d094a28d..d07a2fb3 100644 --- a/src/Docker.DotNet/Models/PluginRootFS.Generated.cs +++ b/src/Docker.DotNet/Models/PluginRootFS.Generated.cs @@ -7,6 +7,6 @@ public class PluginRootFS // (plugin.RootFS) public IList DiffIds { get; set; } = default!; [JsonPropertyName("type")] - public string Type { get; set; } = default!; + public string? Type { get; set; } } } diff --git a/src/Docker.DotNet/Models/PluginUser.Generated.cs b/src/Docker.DotNet/Models/PluginUser.Generated.cs index d1d58280..a0cbf33d 100644 --- a/src/Docker.DotNet/Models/PluginUser.Generated.cs +++ b/src/Docker.DotNet/Models/PluginUser.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class PluginUser // (plugin.User) { [JsonPropertyName("GID")] - public uint GID { get; set; } = default!; + public uint? GID { get; set; } [JsonPropertyName("UID")] - public uint UID { get; set; } = default!; + public uint? UID { get; set; } } } diff --git a/src/Docker.DotNet/Models/PortConfig.Generated.cs b/src/Docker.DotNet/Models/PortConfig.Generated.cs index 08a1b851..4f55f229 100644 --- a/src/Docker.DotNet/Models/PortConfig.Generated.cs +++ b/src/Docker.DotNet/Models/PortConfig.Generated.cs @@ -4,18 +4,18 @@ namespace Docker.DotNet.Models public class PortConfig // (swarm.PortConfig) { [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("Protocol")] - public string Protocol { get; set; } = default!; + public string? Protocol { get; set; } [JsonPropertyName("TargetPort")] - public uint TargetPort { get; set; } = default!; + public uint? TargetPort { get; set; } [JsonPropertyName("PublishedPort")] - public uint PublishedPort { get; set; } = default!; + public uint? PublishedPort { get; set; } [JsonPropertyName("PublishMode")] - public string PublishMode { get; set; } = default!; + public string? PublishMode { get; set; } } } diff --git a/src/Docker.DotNet/Models/PortStatus.Generated.cs b/src/Docker.DotNet/Models/PortStatus.Generated.cs index 06e52783..e0f6c0de 100644 --- a/src/Docker.DotNet/Models/PortStatus.Generated.cs +++ b/src/Docker.DotNet/Models/PortStatus.Generated.cs @@ -4,6 +4,6 @@ namespace Docker.DotNet.Models public class PortStatus // (swarm.PortStatus) { [JsonPropertyName("Ports")] - public IList Ports { get; set; } = default!; + public IList? Ports { get; set; } } } diff --git a/src/Docker.DotNet/Models/PortSummary.Generated.cs b/src/Docker.DotNet/Models/PortSummary.Generated.cs index 01773495..9621f71f 100644 --- a/src/Docker.DotNet/Models/PortSummary.Generated.cs +++ b/src/Docker.DotNet/Models/PortSummary.Generated.cs @@ -4,13 +4,13 @@ namespace Docker.DotNet.Models public class PortSummary // (container.PortSummary) { [JsonPropertyName("IP")] - public string IP { get; set; } = default!; + public string? IP { get; set; } [JsonPropertyName("PrivatePort")] public ushort PrivatePort { get; set; } = default!; [JsonPropertyName("PublicPort")] - public ushort PublicPort { get; set; } = default!; + public ushort? PublicPort { get; set; } [JsonPropertyName("Type")] public string Type { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/PublishStatus.Generated.cs b/src/Docker.DotNet/Models/PublishStatus.Generated.cs index d8bef22a..83855e00 100644 --- a/src/Docker.DotNet/Models/PublishStatus.Generated.cs +++ b/src/Docker.DotNet/Models/PublishStatus.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class PublishStatus // (volume.PublishStatus) { [JsonPropertyName("NodeID")] - public string NodeID { get; set; } = default!; + public string? NodeID { get; set; } [JsonPropertyName("State")] - public string State { get; set; } = default!; + public string? State { get; set; } [JsonPropertyName("PublishContext")] - public IDictionary PublishContext { get; set; } = default!; + public IDictionary? PublishContext { get; set; } } } diff --git a/src/Docker.DotNet/Models/RaftConfig.Generated.cs b/src/Docker.DotNet/Models/RaftConfig.Generated.cs index 383f2ed8..d29d6d99 100644 --- a/src/Docker.DotNet/Models/RaftConfig.Generated.cs +++ b/src/Docker.DotNet/Models/RaftConfig.Generated.cs @@ -4,13 +4,13 @@ namespace Docker.DotNet.Models public class RaftConfig // (swarm.RaftConfig) { [JsonPropertyName("SnapshotInterval")] - public ulong SnapshotInterval { get; set; } = default!; + public ulong? SnapshotInterval { get; set; } [JsonPropertyName("KeepOldSnapshots")] public ulong? KeepOldSnapshots { get; set; } [JsonPropertyName("LogEntriesForSlowFollowers")] - public ulong LogEntriesForSlowFollowers { get; set; } = default!; + public ulong? LogEntriesForSlowFollowers { get; set; } [JsonPropertyName("ElectionTick")] public long ElectionTick { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/RootFS.Generated.cs b/src/Docker.DotNet/Models/RootFS.Generated.cs index 10eda244..f5464f13 100644 --- a/src/Docker.DotNet/Models/RootFS.Generated.cs +++ b/src/Docker.DotNet/Models/RootFS.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class RootFS // (image.RootFS) { [JsonPropertyName("Type")] - public string Type { get; set; } = default!; + public string? Type { get; set; } [JsonPropertyName("Layers")] - public IList Layers { get; set; } = default!; + public IList? Layers { get; set; } } } diff --git a/src/Docker.DotNet/Models/RootFSStorageSnapshot.Generated.cs b/src/Docker.DotNet/Models/RootFSStorageSnapshot.Generated.cs index 1e4d31e4..75e73e1d 100644 --- a/src/Docker.DotNet/Models/RootFSStorageSnapshot.Generated.cs +++ b/src/Docker.DotNet/Models/RootFSStorageSnapshot.Generated.cs @@ -4,6 +4,6 @@ namespace Docker.DotNet.Models public class RootFSStorageSnapshot // (storage.RootFSStorageSnapshot) { [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } } } diff --git a/src/Docker.DotNet/Models/Runtime.Generated.cs b/src/Docker.DotNet/Models/Runtime.Generated.cs index fd776120..43fb2e2a 100644 --- a/src/Docker.DotNet/Models/Runtime.Generated.cs +++ b/src/Docker.DotNet/Models/Runtime.Generated.cs @@ -4,15 +4,15 @@ namespace Docker.DotNet.Models public class Runtime // (system.Runtime) { [JsonPropertyName("path")] - public string Path { get; set; } = default!; + public string? Path { get; set; } [JsonPropertyName("runtimeArgs")] - public IList Args { get; set; } = default!; + public IList? Args { get; set; } [JsonPropertyName("runtimeType")] - public string Type { get; set; } = default!; + public string? Type { get; set; } [JsonPropertyName("options")] - public IDictionary Options { get; set; } = default!; + public IDictionary? Options { get; set; } } } diff --git a/src/Docker.DotNet/Models/RuntimePrivilege.Generated.cs b/src/Docker.DotNet/Models/RuntimePrivilege.Generated.cs index ae65a42c..504451ef 100644 --- a/src/Docker.DotNet/Models/RuntimePrivilege.Generated.cs +++ b/src/Docker.DotNet/Models/RuntimePrivilege.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class RuntimePrivilege // (swarm.RuntimePrivilege) { [JsonPropertyName("name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("description")] - public string Description { get; set; } = default!; + public string? Description { get; set; } [JsonPropertyName("value")] - public IList Value { get; set; } = default!; + public IList? Value { get; set; } } } diff --git a/src/Docker.DotNet/Models/RuntimeWithStatus.Generated.cs b/src/Docker.DotNet/Models/RuntimeWithStatus.Generated.cs index 8f69b8ca..a83c26fc 100644 --- a/src/Docker.DotNet/Models/RuntimeWithStatus.Generated.cs +++ b/src/Docker.DotNet/Models/RuntimeWithStatus.Generated.cs @@ -19,18 +19,18 @@ public RuntimeWithStatus(Runtime Runtime) } [JsonPropertyName("path")] - public string Path { get; set; } = default!; + public string? Path { get; set; } [JsonPropertyName("runtimeArgs")] - public IList Args { get; set; } = default!; + public IList? Args { get; set; } [JsonPropertyName("runtimeType")] - public string Type { get; set; } = default!; + public string? Type { get; set; } [JsonPropertyName("options")] - public IDictionary Options { get; set; } = default!; + public IDictionary? Options { get; set; } [JsonPropertyName("status")] - public IDictionary Status { get; set; } = default!; + public IDictionary? Status { get; set; } } } diff --git a/src/Docker.DotNet/Models/SeccompOpts.Generated.cs b/src/Docker.DotNet/Models/SeccompOpts.Generated.cs index b33cc32c..cbad1acc 100644 --- a/src/Docker.DotNet/Models/SeccompOpts.Generated.cs +++ b/src/Docker.DotNet/Models/SeccompOpts.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class SeccompOpts // (swarm.SeccompOpts) { [JsonPropertyName("Mode")] - public string Mode { get; set; } = default!; + public string? Mode { get; set; } [JsonPropertyName("Profile")] - public IList Profile { get; set; } = default!; + public IList? Profile { get; set; } } } diff --git a/src/Docker.DotNet/Models/Secret.Generated.cs b/src/Docker.DotNet/Models/Secret.Generated.cs index 033b1e74..a288ef92 100644 --- a/src/Docker.DotNet/Models/Secret.Generated.cs +++ b/src/Docker.DotNet/Models/Secret.Generated.cs @@ -21,13 +21,13 @@ public Secret(Meta Meta) public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } = default!; + public Version? Version { get; set; } [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } = default!; + public DateTime? CreatedAt { get; set; } [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } = default!; + public DateTime? UpdatedAt { get; set; } [JsonPropertyName("Spec")] public SwarmSecretSpec Spec { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/ServiceCreateResponse.Generated.cs b/src/Docker.DotNet/Models/ServiceCreateResponse.Generated.cs index b99e04c6..264edb63 100644 --- a/src/Docker.DotNet/Models/ServiceCreateResponse.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceCreateResponse.Generated.cs @@ -4,7 +4,7 @@ namespace Docker.DotNet.Models public class ServiceCreateResponse // (swarm.ServiceCreateResponse) { [JsonPropertyName("ID")] - public string ID { get; set; } = default!; + public string? ID { get; set; } [JsonPropertyName("Warnings")] public IList Warnings { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/ServiceSpec.Generated.cs b/src/Docker.DotNet/Models/ServiceSpec.Generated.cs index 704479f0..512b26ad 100644 --- a/src/Docker.DotNet/Models/ServiceSpec.Generated.cs +++ b/src/Docker.DotNet/Models/ServiceSpec.Generated.cs @@ -17,16 +17,16 @@ public ServiceSpec(Annotations Annotations) } [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("Labels")] public IDictionary Labels { get; set; } = default!; [JsonPropertyName("TaskTemplate")] - public TaskSpec TaskTemplate { get; set; } = default!; + public TaskSpec? TaskTemplate { get; set; } [JsonPropertyName("Mode")] - public ServiceMode Mode { get; set; } = default!; + public ServiceMode? Mode { get; set; } [JsonPropertyName("UpdateConfig")] public SwarmUpdateConfig? UpdateConfig { get; set; } diff --git a/src/Docker.DotNet/Models/Spec.Generated.cs b/src/Docker.DotNet/Models/Spec.Generated.cs index 8d7db742..febbe47b 100644 --- a/src/Docker.DotNet/Models/Spec.Generated.cs +++ b/src/Docker.DotNet/Models/Spec.Generated.cs @@ -17,27 +17,27 @@ public Spec(Annotations Annotations) } [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("Labels")] public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Orchestration")] - public OrchestrationConfig Orchestration { get; set; } = default!; + public OrchestrationConfig? Orchestration { get; set; } [JsonPropertyName("Raft")] - public RaftConfig Raft { get; set; } = default!; + public RaftConfig? Raft { get; set; } [JsonPropertyName("Dispatcher")] - public DispatcherConfig Dispatcher { get; set; } = default!; + public DispatcherConfig? Dispatcher { get; set; } [JsonPropertyName("CAConfig")] - public CAConfig CAConfig { get; set; } = default!; + public CAConfig? CAConfig { get; set; } [JsonPropertyName("TaskDefaults")] - public TaskDefaults TaskDefaults { get; set; } = default!; + public TaskDefaults? TaskDefaults { get; set; } [JsonPropertyName("EncryptionConfig")] - public EncryptionConfig EncryptionConfig { get; set; } = default!; + public EncryptionConfig? EncryptionConfig { get; set; } } } diff --git a/src/Docker.DotNet/Models/StorageStats.Generated.cs b/src/Docker.DotNet/Models/StorageStats.Generated.cs index e0c97587..9756e73b 100644 --- a/src/Docker.DotNet/Models/StorageStats.Generated.cs +++ b/src/Docker.DotNet/Models/StorageStats.Generated.cs @@ -4,15 +4,15 @@ namespace Docker.DotNet.Models public class StorageStats // (container.StorageStats) { [JsonPropertyName("read_count_normalized")] - public ulong ReadCountNormalized { get; set; } = default!; + public ulong? ReadCountNormalized { get; set; } [JsonPropertyName("read_size_bytes")] - public ulong ReadSizeBytes { get; set; } = default!; + public ulong? ReadSizeBytes { get; set; } [JsonPropertyName("write_count_normalized")] - public ulong WriteCountNormalized { get; set; } = default!; + public ulong? WriteCountNormalized { get; set; } [JsonPropertyName("write_size_bytes")] - public ulong WriteSizeBytes { get; set; } = default!; + public ulong? WriteSizeBytes { get; set; } } } diff --git a/src/Docker.DotNet/Models/SummaryHostConfig.Generated.cs b/src/Docker.DotNet/Models/SummaryHostConfig.Generated.cs index bdc000b5..64937e83 100644 --- a/src/Docker.DotNet/Models/SummaryHostConfig.Generated.cs +++ b/src/Docker.DotNet/Models/SummaryHostConfig.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class SummaryHostConfig // (container.Summary.HostConfig) { [JsonPropertyName("NetworkMode")] - public string NetworkMode { get; set; } = default!; + public string? NetworkMode { get; set; } [JsonPropertyName("Annotations")] - public IDictionary Annotations { get; set; } = default!; + public IDictionary? Annotations { get; set; } } } diff --git a/src/Docker.DotNet/Models/SwarmConfig.Generated.cs b/src/Docker.DotNet/Models/SwarmConfig.Generated.cs index 6ee1f454..cca3aed3 100644 --- a/src/Docker.DotNet/Models/SwarmConfig.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmConfig.Generated.cs @@ -21,13 +21,13 @@ public SwarmConfig(Meta Meta) public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } = default!; + public Version? Version { get; set; } [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } = default!; + public DateTime? CreatedAt { get; set; } [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } = default!; + public DateTime? UpdatedAt { get; set; } [JsonPropertyName("Spec")] public SwarmConfigSpec Spec { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/SwarmConfigSpec.Generated.cs b/src/Docker.DotNet/Models/SwarmConfigSpec.Generated.cs index eb68c33d..38f0b155 100644 --- a/src/Docker.DotNet/Models/SwarmConfigSpec.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmConfigSpec.Generated.cs @@ -17,14 +17,14 @@ public SwarmConfigSpec(Annotations Annotations) } [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("Labels")] public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Data")] [JsonConverter(typeof(Base64Converter))] - public IList Data { get; set; } = default!; + public IList? Data { get; set; } [JsonPropertyName("Templating")] public SwarmDriver? Templating { get; set; } diff --git a/src/Docker.DotNet/Models/SwarmDriver.Generated.cs b/src/Docker.DotNet/Models/SwarmDriver.Generated.cs index 93fdcb7a..3397615a 100644 --- a/src/Docker.DotNet/Models/SwarmDriver.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmDriver.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class SwarmDriver // (swarm.Driver) { [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("Options")] - public IDictionary Options { get; set; } = default!; + public IDictionary? Options { get; set; } } } diff --git a/src/Docker.DotNet/Models/SwarmIPAMConfig.Generated.cs b/src/Docker.DotNet/Models/SwarmIPAMConfig.Generated.cs index f06517b6..6b384a13 100644 --- a/src/Docker.DotNet/Models/SwarmIPAMConfig.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmIPAMConfig.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class SwarmIPAMConfig // (swarm.IPAMConfig) { [JsonPropertyName("Subnet")] - public string Subnet { get; set; } = default!; + public string? Subnet { get; set; } [JsonPropertyName("Range")] - public string Range { get; set; } = default!; + public string? Range { get; set; } [JsonPropertyName("Gateway")] - public string Gateway { get; set; } = default!; + public string? Gateway { get; set; } } } diff --git a/src/Docker.DotNet/Models/SwarmInspectResponse.Generated.cs b/src/Docker.DotNet/Models/SwarmInspectResponse.Generated.cs index a8e65b46..35d2900c 100644 --- a/src/Docker.DotNet/Models/SwarmInspectResponse.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmInspectResponse.Generated.cs @@ -28,13 +28,13 @@ public SwarmInspectResponse(ClusterInfo ClusterInfo) public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } = default!; + public Version? Version { get; set; } [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } = default!; + public DateTime? CreatedAt { get; set; } [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } = default!; + public DateTime? UpdatedAt { get; set; } [JsonPropertyName("Spec")] public Spec Spec { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/SwarmLimit.Generated.cs b/src/Docker.DotNet/Models/SwarmLimit.Generated.cs index be9c6b58..4907ac83 100644 --- a/src/Docker.DotNet/Models/SwarmLimit.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmLimit.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class SwarmLimit // (swarm.Limit) { [JsonPropertyName("NanoCPUs")] - public long NanoCPUs { get; set; } = default!; + public long? NanoCPUs { get; set; } [JsonPropertyName("MemoryBytes")] - public long MemoryBytes { get; set; } = default!; + public long? MemoryBytes { get; set; } [JsonPropertyName("Pids")] - public long Pids { get; set; } = default!; + public long? Pids { get; set; } } } diff --git a/src/Docker.DotNet/Models/SwarmNetwork.Generated.cs b/src/Docker.DotNet/Models/SwarmNetwork.Generated.cs index ac993796..eba88b43 100644 --- a/src/Docker.DotNet/Models/SwarmNetwork.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmNetwork.Generated.cs @@ -21,19 +21,19 @@ public SwarmNetwork(Meta Meta) public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } = default!; + public Version? Version { get; set; } [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } = default!; + public DateTime? CreatedAt { get; set; } [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } = default!; + public DateTime? UpdatedAt { get; set; } [JsonPropertyName("Spec")] - public NetworkSpec Spec { get; set; } = default!; + public NetworkSpec? Spec { get; set; } [JsonPropertyName("DriverState")] - public SwarmDriver DriverState { get; set; } = default!; + public SwarmDriver? DriverState { get; set; } [JsonPropertyName("IPAMOptions")] public IPAMOptions? IPAMOptions { get; set; } diff --git a/src/Docker.DotNet/Models/SwarmPlatform.Generated.cs b/src/Docker.DotNet/Models/SwarmPlatform.Generated.cs index 48142c74..8a30fa74 100644 --- a/src/Docker.DotNet/Models/SwarmPlatform.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmPlatform.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class SwarmPlatform // (swarm.Platform) { [JsonPropertyName("Architecture")] - public string Architecture { get; set; } = default!; + public string? Architecture { get; set; } [JsonPropertyName("OS")] - public string OS { get; set; } = default!; + public string? OS { get; set; } } } diff --git a/src/Docker.DotNet/Models/SwarmResources.Generated.cs b/src/Docker.DotNet/Models/SwarmResources.Generated.cs index ce0bf553..8b4a76c0 100644 --- a/src/Docker.DotNet/Models/SwarmResources.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmResources.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class SwarmResources // (swarm.Resources) { [JsonPropertyName("NanoCPUs")] - public long NanoCPUs { get; set; } = default!; + public long? NanoCPUs { get; set; } [JsonPropertyName("MemoryBytes")] - public long MemoryBytes { get; set; } = default!; + public long? MemoryBytes { get; set; } [JsonPropertyName("GenericResources")] - public IList GenericResources { get; set; } = default!; + public IList? GenericResources { get; set; } } } diff --git a/src/Docker.DotNet/Models/SwarmRestartPolicy.Generated.cs b/src/Docker.DotNet/Models/SwarmRestartPolicy.Generated.cs index a8f2645d..104a1949 100644 --- a/src/Docker.DotNet/Models/SwarmRestartPolicy.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmRestartPolicy.Generated.cs @@ -4,7 +4,7 @@ namespace Docker.DotNet.Models public class SwarmRestartPolicy // (swarm.RestartPolicy) { [JsonPropertyName("Condition")] - public string Condition { get; set; } = default!; + public string? Condition { get; set; } [JsonPropertyName("Delay")] public long? Delay { get; set; } diff --git a/src/Docker.DotNet/Models/SwarmRuntimeSpec.Generated.cs b/src/Docker.DotNet/Models/SwarmRuntimeSpec.Generated.cs index 0d1b7da6..8e19b743 100644 --- a/src/Docker.DotNet/Models/SwarmRuntimeSpec.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmRuntimeSpec.Generated.cs @@ -4,18 +4,18 @@ namespace Docker.DotNet.Models public class SwarmRuntimeSpec // (swarm.RuntimeSpec) { [JsonPropertyName("name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("remote")] - public string Remote { get; set; } = default!; + public string? Remote { get; set; } [JsonPropertyName("privileges")] - public IList Privileges { get; set; } = default!; + public IList? Privileges { get; set; } [JsonPropertyName("disabled")] - public bool Disabled { get; set; } = default!; + public bool? Disabled { get; set; } [JsonPropertyName("env")] - public IList Env { get; set; } = default!; + public IList? Env { get; set; } } } diff --git a/src/Docker.DotNet/Models/SwarmSecretSpec.Generated.cs b/src/Docker.DotNet/Models/SwarmSecretSpec.Generated.cs index 917145f0..00d9d172 100644 --- a/src/Docker.DotNet/Models/SwarmSecretSpec.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmSecretSpec.Generated.cs @@ -17,14 +17,14 @@ public SwarmSecretSpec(Annotations Annotations) } [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("Labels")] public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Data")] [JsonConverter(typeof(Base64Converter))] - public IList Data { get; set; } = default!; + public IList? Data { get; set; } [JsonPropertyName("Driver")] public SwarmDriver? Driver { get; set; } diff --git a/src/Docker.DotNet/Models/SwarmService.Generated.cs b/src/Docker.DotNet/Models/SwarmService.Generated.cs index 1a7e641d..d5179acf 100644 --- a/src/Docker.DotNet/Models/SwarmService.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmService.Generated.cs @@ -21,22 +21,22 @@ public SwarmService(Meta Meta) public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } = default!; + public Version? Version { get; set; } [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } = default!; + public DateTime? CreatedAt { get; set; } [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } = default!; + public DateTime? UpdatedAt { get; set; } [JsonPropertyName("Spec")] - public ServiceSpec Spec { get; set; } = default!; + public ServiceSpec? Spec { get; set; } [JsonPropertyName("PreviousSpec")] public ServiceSpec? PreviousSpec { get; set; } [JsonPropertyName("Endpoint")] - public Endpoint Endpoint { get; set; } = default!; + public Endpoint? Endpoint { get; set; } [JsonPropertyName("UpdateStatus")] public UpdateStatus? UpdateStatus { get; set; } diff --git a/src/Docker.DotNet/Models/SwarmUpdateConfig.Generated.cs b/src/Docker.DotNet/Models/SwarmUpdateConfig.Generated.cs index edde4867..b298b15e 100644 --- a/src/Docker.DotNet/Models/SwarmUpdateConfig.Generated.cs +++ b/src/Docker.DotNet/Models/SwarmUpdateConfig.Generated.cs @@ -7,13 +7,13 @@ public class SwarmUpdateConfig // (swarm.UpdateConfig) public ulong Parallelism { get; set; } = default!; [JsonPropertyName("Delay")] - public long Delay { get; set; } = default!; + public long? Delay { get; set; } [JsonPropertyName("FailureAction")] - public string FailureAction { get; set; } = default!; + public string? FailureAction { get; set; } [JsonPropertyName("Monitor")] - public long Monitor { get; set; } = default!; + public long? Monitor { get; set; } [JsonPropertyName("MaxFailureRatio")] public float MaxFailureRatio { get; set; } = default!; diff --git a/src/Docker.DotNet/Models/SystemInfoResponse.Generated.cs b/src/Docker.DotNet/Models/SystemInfoResponse.Generated.cs index f599c80d..e397446d 100644 --- a/src/Docker.DotNet/Models/SystemInfoResponse.Generated.cs +++ b/src/Docker.DotNet/Models/SystemInfoResponse.Generated.cs @@ -28,7 +28,7 @@ public class SystemInfoResponse // (system.Info) public IList DriverStatus { get; set; } = default!; [JsonPropertyName("SystemStatus")] - public IList SystemStatus { get; set; } = default!; + public IList? SystemStatus { get; set; } [JsonPropertyName("Plugins")] public PluginsInfo Plugins { get; set; } = default!; @@ -79,7 +79,7 @@ public class SystemInfoResponse // (system.Info) public string CgroupDriver { get; set; } = default!; [JsonPropertyName("CgroupVersion")] - public string CgroupVersion { get; set; } = default!; + public string? CgroupVersion { get; set; } [JsonPropertyName("NEventsListener")] public long NEventsListener { get; set; } = default!; @@ -169,10 +169,10 @@ public class SystemInfoResponse // (system.Info) public IList SecurityOptions { get; set; } = default!; [JsonPropertyName("ProductLicense")] - public string ProductLicense { get; set; } = default!; + public string? ProductLicense { get; set; } [JsonPropertyName("DefaultAddressPools")] - public IList DefaultAddressPools { get; set; } = default!; + public IList? DefaultAddressPools { get; set; } [JsonPropertyName("FirewallBackend")] public FirewallInfo? FirewallBackend { get; set; } @@ -181,7 +181,7 @@ public class SystemInfoResponse // (system.Info) public IList CDISpecDirs { get; set; } = default!; [JsonPropertyName("DiscoveredDevices")] - public IList DiscoveredDevices { get; set; } = default!; + public IList? DiscoveredDevices { get; set; } [JsonPropertyName("Containerd")] public ContainerdInfo? Containerd { get; set; } diff --git a/src/Docker.DotNet/Models/TLSInfo.Generated.cs b/src/Docker.DotNet/Models/TLSInfo.Generated.cs index 3cbd1718..24951168 100644 --- a/src/Docker.DotNet/Models/TLSInfo.Generated.cs +++ b/src/Docker.DotNet/Models/TLSInfo.Generated.cs @@ -4,14 +4,14 @@ namespace Docker.DotNet.Models public class TLSInfo // (swarm.TLSInfo) { [JsonPropertyName("TrustRoot")] - public string TrustRoot { get; set; } = default!; + public string? TrustRoot { get; set; } [JsonPropertyName("CertIssuerSubject")] [JsonConverter(typeof(Base64Converter))] - public IList CertIssuerSubject { get; set; } = default!; + public IList? CertIssuerSubject { get; set; } [JsonPropertyName("CertIssuerPublicKey")] [JsonConverter(typeof(Base64Converter))] - public IList CertIssuerPublicKey { get; set; } = default!; + public IList? CertIssuerPublicKey { get; set; } } } diff --git a/src/Docker.DotNet/Models/TaskResponse.Generated.cs b/src/Docker.DotNet/Models/TaskResponse.Generated.cs index b1dadc9f..c96d2834 100644 --- a/src/Docker.DotNet/Models/TaskResponse.Generated.cs +++ b/src/Docker.DotNet/Models/TaskResponse.Generated.cs @@ -27,43 +27,43 @@ public TaskResponse(Meta Meta, Annotations Annotations) public string ID { get; set; } = default!; [JsonPropertyName("Version")] - public Version Version { get; set; } = default!; + public Version? Version { get; set; } [JsonPropertyName("CreatedAt")] - public DateTime CreatedAt { get; set; } = default!; + public DateTime? CreatedAt { get; set; } [JsonPropertyName("UpdatedAt")] - public DateTime UpdatedAt { get; set; } = default!; + public DateTime? UpdatedAt { get; set; } [JsonPropertyName("Name")] - public string Name { get; set; } = default!; + public string? Name { get; set; } [JsonPropertyName("Labels")] public IDictionary Labels { get; set; } = default!; [JsonPropertyName("Spec")] - public TaskSpec Spec { get; set; } = default!; + public TaskSpec? Spec { get; set; } [JsonPropertyName("ServiceID")] - public string ServiceID { get; set; } = default!; + public string? ServiceID { get; set; } [JsonPropertyName("Slot")] - public long Slot { get; set; } = default!; + public long? Slot { get; set; } [JsonPropertyName("NodeID")] - public string NodeID { get; set; } = default!; + public string? NodeID { get; set; } [JsonPropertyName("Status")] - public TaskStatus Status { get; set; } = default!; + public TaskStatus? Status { get; set; } [JsonPropertyName("DesiredState")] - public TaskState DesiredState { get; set; } = default!; + public TaskState? DesiredState { get; set; } [JsonPropertyName("NetworksAttachments")] - public IList NetworksAttachments { get; set; } = default!; + public IList? NetworksAttachments { get; set; } [JsonPropertyName("GenericResources")] - public IList GenericResources { get; set; } = default!; + public IList? GenericResources { get; set; } [JsonPropertyName("JobIteration")] public Version? JobIteration { get; set; } diff --git a/src/Docker.DotNet/Models/TaskSpec.Generated.cs b/src/Docker.DotNet/Models/TaskSpec.Generated.cs index cb86ee30..f4293b16 100644 --- a/src/Docker.DotNet/Models/TaskSpec.Generated.cs +++ b/src/Docker.DotNet/Models/TaskSpec.Generated.cs @@ -22,7 +22,7 @@ public class TaskSpec // (swarm.TaskSpec) public Placement? Placement { get; set; } [JsonPropertyName("Networks")] - public IList Networks { get; set; } = default!; + public IList? Networks { get; set; } [JsonPropertyName("LogDriver")] public SwarmDriver? LogDriver { get; set; } @@ -31,6 +31,6 @@ public class TaskSpec // (swarm.TaskSpec) public ulong ForceUpdate { get; set; } = default!; [JsonPropertyName("Runtime")] - public string Runtime { get; set; } = default!; + public string? Runtime { get; set; } } } diff --git a/src/Docker.DotNet/Models/TaskStatus.Generated.cs b/src/Docker.DotNet/Models/TaskStatus.Generated.cs index a0de7b84..f9630ed8 100644 --- a/src/Docker.DotNet/Models/TaskStatus.Generated.cs +++ b/src/Docker.DotNet/Models/TaskStatus.Generated.cs @@ -4,21 +4,21 @@ namespace Docker.DotNet.Models public class TaskStatus // (swarm.TaskStatus) { [JsonPropertyName("Timestamp")] - public DateTime Timestamp { get; set; } = default!; + public DateTime? Timestamp { get; set; } [JsonPropertyName("State")] - public TaskState State { get; set; } = default!; + public TaskState? State { get; set; } [JsonPropertyName("Message")] - public string Message { get; set; } = default!; + public string? Message { get; set; } [JsonPropertyName("Err")] - public string Err { get; set; } = default!; + public string? Err { get; set; } [JsonPropertyName("ContainerStatus")] public ContainerStatus? ContainerStatus { get; set; } [JsonPropertyName("PortStatus")] - public PortStatus PortStatus { get; set; } = default!; + public PortStatus? PortStatus { get; set; } } } diff --git a/src/Docker.DotNet/Models/TmpfsOptions.Generated.cs b/src/Docker.DotNet/Models/TmpfsOptions.Generated.cs index 5e659e68..a99241a0 100644 --- a/src/Docker.DotNet/Models/TmpfsOptions.Generated.cs +++ b/src/Docker.DotNet/Models/TmpfsOptions.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class TmpfsOptions // (mount.TmpfsOptions) { [JsonPropertyName("SizeBytes")] - public long SizeBytes { get; set; } = default!; + public long? SizeBytes { get; set; } [JsonPropertyName("Mode")] - public uint Mode { get; set; } = default!; + public uint? Mode { get; set; } [JsonPropertyName("Options")] - public IList> Options { get; set; } = default!; + public IList>? Options { get; set; } } } diff --git a/src/Docker.DotNet/Models/Topology.Generated.cs b/src/Docker.DotNet/Models/Topology.Generated.cs index 3cfd250d..a37cf711 100644 --- a/src/Docker.DotNet/Models/Topology.Generated.cs +++ b/src/Docker.DotNet/Models/Topology.Generated.cs @@ -4,6 +4,6 @@ namespace Docker.DotNet.Models public class Topology // (swarm.Topology) { [JsonPropertyName("Segments")] - public IDictionary Segments { get; set; } = default!; + public IDictionary? Segments { get; set; } } } diff --git a/src/Docker.DotNet/Models/TopologyRequirement.Generated.cs b/src/Docker.DotNet/Models/TopologyRequirement.Generated.cs index 996ca9b9..27eb2808 100644 --- a/src/Docker.DotNet/Models/TopologyRequirement.Generated.cs +++ b/src/Docker.DotNet/Models/TopologyRequirement.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class TopologyRequirement // (volume.TopologyRequirement) { [JsonPropertyName("Requisite")] - public IList Requisite { get; set; } = default!; + public IList? Requisite { get; set; } [JsonPropertyName("Preferred")] - public IList Preferred { get; set; } = default!; + public IList? Preferred { get; set; } } } diff --git a/src/Docker.DotNet/Models/TypeMount.Generated.cs b/src/Docker.DotNet/Models/TypeMount.Generated.cs index 0e335581..5cb13d9c 100644 --- a/src/Docker.DotNet/Models/TypeMount.Generated.cs +++ b/src/Docker.DotNet/Models/TypeMount.Generated.cs @@ -4,9 +4,9 @@ namespace Docker.DotNet.Models public class TypeMount // (volume.TypeMount) { [JsonPropertyName("FsType")] - public string FsType { get; set; } = default!; + public string? FsType { get; set; } [JsonPropertyName("MountFlags")] - public IList MountFlags { get; set; } = default!; + public IList? MountFlags { get; set; } } } diff --git a/src/Docker.DotNet/Models/UpdateStatus.Generated.cs b/src/Docker.DotNet/Models/UpdateStatus.Generated.cs index 3abf42e2..8271f7fa 100644 --- a/src/Docker.DotNet/Models/UpdateStatus.Generated.cs +++ b/src/Docker.DotNet/Models/UpdateStatus.Generated.cs @@ -4,7 +4,7 @@ namespace Docker.DotNet.Models public class UpdateStatus // (swarm.UpdateStatus) { [JsonPropertyName("State")] - public string State { get; set; } = default!; + public string? State { get; set; } [JsonPropertyName("StartedAt")] public DateTime? StartedAt { get; set; } @@ -13,6 +13,6 @@ public class UpdateStatus // (swarm.UpdateStatus) public DateTime? CompletedAt { get; set; } [JsonPropertyName("Message")] - public string Message { get; set; } = default!; + public string? Message { get; set; } } } diff --git a/src/Docker.DotNet/Models/Version.Generated.cs b/src/Docker.DotNet/Models/Version.Generated.cs index 2df0d4b3..68f9f30d 100644 --- a/src/Docker.DotNet/Models/Version.Generated.cs +++ b/src/Docker.DotNet/Models/Version.Generated.cs @@ -4,6 +4,6 @@ namespace Docker.DotNet.Models public class Version // (swarm.Version) { [JsonPropertyName("Index")] - public ulong Index { get; set; } = default!; + public ulong? Index { get; set; } } } diff --git a/src/Docker.DotNet/Models/VersionResponse.Generated.cs b/src/Docker.DotNet/Models/VersionResponse.Generated.cs index fbf2f27d..ffc96783 100644 --- a/src/Docker.DotNet/Models/VersionResponse.Generated.cs +++ b/src/Docker.DotNet/Models/VersionResponse.Generated.cs @@ -4,7 +4,7 @@ namespace Docker.DotNet.Models public class VersionResponse // (system.VersionResponse) { [JsonPropertyName("Platform")] - public PlatformInfo Platform { get; set; } = default!; + public PlatformInfo? Platform { get; set; } [JsonPropertyName("Version")] public string Version { get; set; } = default!; @@ -13,7 +13,7 @@ public class VersionResponse // (system.VersionResponse) public string APIVersion { get; set; } = default!; [JsonPropertyName("MinAPIVersion")] - public string MinAPIVersion { get; set; } = default!; + public string? MinAPIVersion { get; set; } [JsonPropertyName("Os")] public string Os { get; set; } = default!; @@ -22,21 +22,21 @@ public class VersionResponse // (system.VersionResponse) public string Arch { get; set; } = default!; [JsonPropertyName("Components")] - public IList Components { get; set; } = default!; + public IList? Components { get; set; } [JsonPropertyName("GitCommit")] - public string GitCommit { get; set; } = default!; + public string? GitCommit { get; set; } [JsonPropertyName("GoVersion")] - public string GoVersion { get; set; } = default!; + public string? GoVersion { get; set; } [JsonPropertyName("KernelVersion")] - public string KernelVersion { get; set; } = default!; + public string? KernelVersion { get; set; } [JsonPropertyName("Experimental")] - public bool Experimental { get; set; } = default!; + public bool? Experimental { get; set; } [JsonPropertyName("BuildTime")] - public string BuildTime { get; set; } = default!; + public string? BuildTime { get; set; } } } diff --git a/src/Docker.DotNet/Models/VolumeAccessMode.Generated.cs b/src/Docker.DotNet/Models/VolumeAccessMode.Generated.cs index 98ebe203..1f2efadd 100644 --- a/src/Docker.DotNet/Models/VolumeAccessMode.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeAccessMode.Generated.cs @@ -4,10 +4,10 @@ namespace Docker.DotNet.Models public class VolumeAccessMode // (volume.AccessMode) { [JsonPropertyName("Scope")] - public string Scope { get; set; } = default!; + public string? Scope { get; set; } [JsonPropertyName("Sharing")] - public string Sharing { get; set; } = default!; + public string? Sharing { get; set; } [JsonPropertyName("MountVolume")] public TypeMount? MountVolume { get; set; } diff --git a/src/Docker.DotNet/Models/VolumeAttachment.Generated.cs b/src/Docker.DotNet/Models/VolumeAttachment.Generated.cs index e1a81659..099a286b 100644 --- a/src/Docker.DotNet/Models/VolumeAttachment.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeAttachment.Generated.cs @@ -4,12 +4,12 @@ namespace Docker.DotNet.Models public class VolumeAttachment // (swarm.VolumeAttachment) { [JsonPropertyName("ID")] - public string ID { get; set; } = default!; + public string? ID { get; set; } [JsonPropertyName("Source")] - public string Source { get; set; } = default!; + public string? Source { get; set; } [JsonPropertyName("Target")] - public string Target { get; set; } = default!; + public string? Target { get; set; } } } diff --git a/src/Docker.DotNet/Models/VolumeInfo.Generated.cs b/src/Docker.DotNet/Models/VolumeInfo.Generated.cs index 75ee38d0..27e5cd45 100644 --- a/src/Docker.DotNet/Models/VolumeInfo.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeInfo.Generated.cs @@ -4,15 +4,15 @@ namespace Docker.DotNet.Models public class VolumeInfo // (volume.Info) { [JsonPropertyName("CapacityBytes")] - public long CapacityBytes { get; set; } = default!; + public long? CapacityBytes { get; set; } [JsonPropertyName("VolumeContext")] - public IDictionary VolumeContext { get; set; } = default!; + public IDictionary? VolumeContext { get; set; } [JsonPropertyName("VolumeID")] - public string VolumeID { get; set; } = default!; + public string? VolumeID { get; set; } [JsonPropertyName("AccessibleTopology")] - public IList AccessibleTopology { get; set; } = default!; + public IList? AccessibleTopology { get; set; } } } diff --git a/src/Docker.DotNet/Models/VolumeOptions.Generated.cs b/src/Docker.DotNet/Models/VolumeOptions.Generated.cs index 11587e37..ec26e96b 100644 --- a/src/Docker.DotNet/Models/VolumeOptions.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeOptions.Generated.cs @@ -4,13 +4,13 @@ namespace Docker.DotNet.Models public class VolumeOptions // (mount.VolumeOptions) { [JsonPropertyName("NoCopy")] - public bool NoCopy { get; set; } = default!; + public bool? NoCopy { get; set; } [JsonPropertyName("Labels")] - public IDictionary Labels { get; set; } = default!; + public IDictionary? Labels { get; set; } [JsonPropertyName("Subpath")] - public string Subpath { get; set; } = default!; + public string? Subpath { get; set; } [JsonPropertyName("DriverConfig")] public Driver? DriverConfig { get; set; } diff --git a/src/Docker.DotNet/Models/VolumeResponse.Generated.cs b/src/Docker.DotNet/Models/VolumeResponse.Generated.cs index 1a091e95..fc9fd7c4 100644 --- a/src/Docker.DotNet/Models/VolumeResponse.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeResponse.Generated.cs @@ -7,7 +7,7 @@ public class VolumeResponse // (main.VolumeResponse) public ClusterVolume? ClusterVolume { get; set; } [JsonPropertyName("CreatedAt")] - public string CreatedAt { get; set; } = default!; + public string? CreatedAt { get; set; } [JsonPropertyName("Driver")] public string Driver { get; set; } = default!; @@ -28,7 +28,7 @@ public class VolumeResponse // (main.VolumeResponse) public string Scope { get; set; } = default!; [JsonPropertyName("Status")] - public IDictionary Status { get; set; } = default!; + public IDictionary? Status { get; set; } [JsonPropertyName("UsageData")] public UsageData? UsageData { get; set; } diff --git a/src/Docker.DotNet/Models/VolumeTopology.Generated.cs b/src/Docker.DotNet/Models/VolumeTopology.Generated.cs index 80e9e53e..e67b8850 100644 --- a/src/Docker.DotNet/Models/VolumeTopology.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeTopology.Generated.cs @@ -4,6 +4,6 @@ namespace Docker.DotNet.Models public class VolumeTopology // (volume.Topology) { [JsonPropertyName("Segments")] - public IDictionary Segments { get; set; } = default!; + public IDictionary? Segments { get; set; } } } diff --git a/src/Docker.DotNet/Models/WaitExitError.Generated.cs b/src/Docker.DotNet/Models/WaitExitError.Generated.cs index f8e5cb80..9efbecf0 100644 --- a/src/Docker.DotNet/Models/WaitExitError.Generated.cs +++ b/src/Docker.DotNet/Models/WaitExitError.Generated.cs @@ -4,6 +4,6 @@ namespace Docker.DotNet.Models public class WaitExitError // (container.WaitExitError) { [JsonPropertyName("Message")] - public string Message { get; set; } = default!; + public string? Message { get; set; } } } diff --git a/tools/specgen/specgen.go b/tools/specgen/specgen.go index ea316492..0672cda9 100644 --- a/tools/specgen/specgen.go +++ b/tools/specgen/specgen.go @@ -6,6 +6,7 @@ import ( "os" "path" "reflect" + "slices" "strconv" "strings" @@ -725,6 +726,8 @@ func reflectTypeMembers(t reflect.Type, m *CSModelType) { jsonName = jsonTag[0] } + omitEmpty := slices.Contains(jsonTag, "omitempty") + if hasTypeCustomizations { for _, p := range typeCustomizations.Properties { if f.Name == p.Name { @@ -758,13 +761,13 @@ func reflectTypeMembers(t reflect.Type, m *CSModelType) { a.Arguments = append(a.Arguments, CSArgument{Value: "typeof(MapQueryStringConverter)"}) } - csProp.IsOpt = !restTag.Required + csProp.IsOpt = omitEmpty || !restTag.Required csProp.Attributes = append(csProp.Attributes, a) csProp.DefaultValue = restTag.Default } else { a := CSAttribute{Type: CSType{"System.Text.Json.Serialization", "JsonPropertyName"}} a.Arguments = append(a.Arguments, CSArgument{jsonName, CSInboxTypesMap[reflect.String]}) - csProp.IsOpt = f.Type.Kind() == reflect.Ptr + csProp.IsOpt = omitEmpty || f.Type.Kind() == reflect.Ptr csProp.Attributes = append(csProp.Attributes, a) } From bc7556f8173569080a557382721a2fe50557b267 Mon Sep 17 00:00:00 2001 From: campersau Date: Fri, 27 Mar 2026 11:26:30 +0100 Subject: [PATCH 4/5] fix nullable warning in ImageOperations --- src/Docker.DotNet/Endpoints/ImageOperations.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Docker.DotNet/Endpoints/ImageOperations.cs b/src/Docker.DotNet/Endpoints/ImageOperations.cs index 6a174953..4a1da651 100644 --- a/src/Docker.DotNet/Endpoints/ImageOperations.cs +++ b/src/Docker.DotNet/Endpoints/ImageOperations.cs @@ -307,7 +307,7 @@ private static Dictionary RegistryAuthHeaders(AuthConfig? authCo private static Dictionary RegistryConfigHeaders(IEnumerable? authConfig) { - var configDictionary = (authConfig ?? Array.Empty()).ToDictionary(e => e.ServerAddress, e => e); + var configDictionary = (authConfig ?? Array.Empty()).Where(e => e.ServerAddress != null).ToDictionary(e => e.ServerAddress!, e => e); return new Dictionary { { From 39df62f78c72bd5c6e0846b2bd174ab4a33964bc Mon Sep 17 00:00:00 2001 From: Andre Hofmeister <9199345+HofmeisterAn@users.noreply.github.com> Date: Sat, 28 Mar 2026 18:36:54 +0100 Subject: [PATCH 5/5] fix: use query param for platform too, throw exception on container config null --- .../Endpoints/ContainerOperations.cs | 16 +++++++++------- src/Docker.DotNet/Endpoints/ImageOperations.cs | 17 ++++++++++++++--- src/Docker.DotNet/QueryString.cs | 2 +- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/src/Docker.DotNet/Endpoints/ContainerOperations.cs b/src/Docker.DotNet/Endpoints/ContainerOperations.cs index 7b7553a5..63dbf87e 100644 --- a/src/Docker.DotNet/Endpoints/ContainerOperations.cs +++ b/src/Docker.DotNet/Endpoints/ContainerOperations.cs @@ -45,11 +45,7 @@ public async Task CreateContainerAsync(CreateContainerP throw new ArgumentNullException(nameof(parameters)); } - IQueryString? queryParameters = null; - if (!string.IsNullOrEmpty(parameters.Name)) - { - queryParameters = new QueryString(parameters); - } + var queryParameters = new QueryString(parameters); var data = new JsonRequestContent(parameters, DockerClient.JsonSerializer); @@ -130,10 +126,13 @@ public async Task GetContainerLogsAsync(string id, ContainerL var containerInspectResponse = await InspectContainerAsync(id, cancellationToken) .ConfigureAwait(false); + var containerConfig = containerInspectResponse.Config + ?? throw new InvalidOperationException("Container inspect response did not include container configuration."); + var response = await _client.MakeRequestForStreamAsync([NoSuchContainerHandler], HttpMethod.Get, $"containers/{id}/logs", queryParameters, null, null, cancellationToken) .ConfigureAwait(false); - return new MultiplexedStream(response, !(containerInspectResponse.Config?.Tty ?? false)); + return new MultiplexedStream(response, !containerConfig.Tty); } public async Task> InspectChangesAsync(string id, CancellationToken cancellationToken = default) @@ -350,10 +349,13 @@ public async Task AttachContainerAsync(string id, ContainerAt var containerInspectResponse = await InspectContainerAsync(id, cancellationToken) .ConfigureAwait(false); + var containerConfig = containerInspectResponse.Config + ?? throw new InvalidOperationException("Container inspect response did not include container configuration."); + var response = await _client.MakeRequestForHijackedStreamAsync([NoSuchContainerHandler], HttpMethod.Post, $"containers/{id}/attach", queryParameters, null, null, cancellationToken) .ConfigureAwait(false); - return new MultiplexedStream(response, !(containerInspectResponse.Config?.Tty ?? false)); + return new MultiplexedStream(response, !containerConfig.Tty); } public async Task WaitContainerAsync(string id, CancellationToken cancellationToken = default) diff --git a/src/Docker.DotNet/Endpoints/ImageOperations.cs b/src/Docker.DotNet/Endpoints/ImageOperations.cs index 4a1da651..87e0b068 100644 --- a/src/Docker.DotNet/Endpoints/ImageOperations.cs +++ b/src/Docker.DotNet/Endpoints/ImageOperations.cs @@ -305,14 +305,25 @@ private static Dictionary RegistryAuthHeaders(AuthConfig? authCo }; } - private static Dictionary RegistryConfigHeaders(IEnumerable? authConfig) + private static Dictionary RegistryConfigHeaders(IEnumerable? authConfigs) { - var configDictionary = (authConfig ?? Array.Empty()).Where(e => e.ServerAddress != null).ToDictionary(e => e.ServerAddress!, e => e); + var registryAuthConfigurations = new Dictionary(); + + foreach (var registryAuthConfiguration in authConfigs ?? Array.Empty()) + { + var registryAddress = registryAuthConfiguration.ServerAddress; + + if (!string.IsNullOrEmpty(registryAddress)) + { + registryAuthConfigurations[registryAddress] = registryAuthConfiguration; + } + } + return new Dictionary { { RegistryConfigHeaderKey, - Convert.ToBase64String(DockerClient.JsonSerializer.SerializeToUtf8Bytes(configDictionary)) + Convert.ToBase64String(DockerClient.JsonSerializer.SerializeToUtf8Bytes(registryAuthConfigurations)) } }; } diff --git a/src/Docker.DotNet/QueryString.cs b/src/Docker.DotNet/QueryString.cs index f2b7c282..e12869e5 100644 --- a/src/Docker.DotNet/QueryString.cs +++ b/src/Docker.DotNet/QueryString.cs @@ -126,7 +126,7 @@ private static bool IsDefaultOfType(object? o) /// /// Generates query string formatted as: -/// [url]?key=value1&key=value2&key=value3... +/// [url]?key=value1&key=value2&key=value3... /// internal class EnumerableQueryString : IQueryString {