#nullable disable // Consider removing in the future to minimize likelihood of NullReferenceException; refer https://learn.microsoft.com/en-us/dotnet/csharp/nullable-references
using System;
using System.Collections.Generic;
namespace GitHub.Actions.WorkflowParser
{
public sealed class JobContainer
{
///
/// Gets or sets the environment which is provided to the container.
///
public IDictionary Environment
{
get;
set;
}
///
/// Gets or sets the container image name.
///
public String Image
{
get;
set;
}
///
/// Gets or sets the options used for the container instance.
///
public String Options
{
get;
set;
}
///
/// Gets or sets the container entrypoint override.
///
public String Entrypoint
{
get;
set;
}
///
/// Gets or sets the container command and args (after the image name).
///
public String Command
{
get;
set;
}
///
/// Gets or sets the volumes which are mounted into the container.
///
public IList Volumes
{
get;
set;
}
///
/// Gets or sets the ports which are exposed on the container.
///
public IList Ports
{
get;
set;
}
///
/// Gets or sets the credentials used for pulling the container iamge.
///
public ContainerRegistryCredentials Credentials
{
get;
set;
}
}
public sealed class ContainerRegistryCredentials
{
///
/// Gets or sets the user to authenticate to a registry with
///
public String Username
{
get;
set;
}
///
/// Gets or sets the password to authenticate to a registry with
///
public String Password
{
get;
set;
}
}
}