in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/ContainerCodePackagePropertiesConverter.cs [34:152]
internal static ContainerCodePackageProperties GetFromJsonProperties(JsonReader reader)
{
var name = default(string);
var image = default(string);
var imageRegistryCredential = default(ImageRegistryCredential);
var entryPoint = default(string);
var commands = default(IEnumerable<string>);
var environmentVariables = default(IEnumerable<EnvironmentVariable>);
var settings = default(IEnumerable<Setting>);
var labels = default(IEnumerable<ContainerLabel>);
var endpoints = default(IEnumerable<EndpointProperties>);
var resources = default(ResourceRequirements);
var volumeRefs = default(IEnumerable<VolumeReference>);
var volumes = default(IEnumerable<ApplicationScopedVolume>);
var diagnostics = default(DiagnosticsRef);
var reliableCollectionsRefs = default(IEnumerable<ReliableCollectionsRef>);
var instanceView = default(ContainerInstanceView);
var livenessProbe = default(IEnumerable<Probe>);
var readinessProbe = default(IEnumerable<Probe>);
do
{
var propName = reader.ReadPropertyName();
if (string.Compare("name", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
name = reader.ReadValueAsString();
}
else if (string.Compare("image", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
image = reader.ReadValueAsString();
}
else if (string.Compare("imageRegistryCredential", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
imageRegistryCredential = ImageRegistryCredentialConverter.Deserialize(reader);
}
else if (string.Compare("entryPoint", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
entryPoint = reader.ReadValueAsString();
}
else if (string.Compare("commands", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
commands = reader.ReadList(JsonReaderExtensions.ReadValueAsString);
}
else if (string.Compare("environmentVariables", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
environmentVariables = reader.ReadList(EnvironmentVariableConverter.Deserialize);
}
else if (string.Compare("settings", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
settings = reader.ReadList(SettingConverter.Deserialize);
}
else if (string.Compare("labels", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
labels = reader.ReadList(ContainerLabelConverter.Deserialize);
}
else if (string.Compare("endpoints", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
endpoints = reader.ReadList(EndpointPropertiesConverter.Deserialize);
}
else if (string.Compare("resources", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
resources = ResourceRequirementsConverter.Deserialize(reader);
}
else if (string.Compare("volumeRefs", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
volumeRefs = reader.ReadList(VolumeReferenceConverter.Deserialize);
}
else if (string.Compare("volumes", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
volumes = reader.ReadList(ApplicationScopedVolumeConverter.Deserialize);
}
else if (string.Compare("diagnostics", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
diagnostics = DiagnosticsRefConverter.Deserialize(reader);
}
else if (string.Compare("reliableCollectionsRefs", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
reliableCollectionsRefs = reader.ReadList(ReliableCollectionsRefConverter.Deserialize);
}
else if (string.Compare("instanceView", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
instanceView = ContainerInstanceViewConverter.Deserialize(reader);
}
else if (string.Compare("livenessProbe", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
livenessProbe = reader.ReadList(ProbeConverter.Deserialize);
}
else if (string.Compare("readinessProbe", propName, StringComparison.OrdinalIgnoreCase) == 0)
{
readinessProbe = reader.ReadList(ProbeConverter.Deserialize);
}
else
{
reader.SkipPropertyValue();
}
}
while (reader.TokenType != JsonToken.EndObject);
var containerCodePackageProperties = new ContainerCodePackageProperties(
name: name,
image: image,
imageRegistryCredential: imageRegistryCredential,
entryPoint: entryPoint,
commands: commands,
environmentVariables: environmentVariables,
settings: settings,
labels: labels,
endpoints: endpoints,
resources: resources,
volumeRefs: volumeRefs,
volumes: volumes,
diagnostics: diagnostics,
reliableCollectionsRefs: reliableCollectionsRefs,
livenessProbe: livenessProbe,
readinessProbe: readinessProbe);
containerCodePackageProperties.InstanceView = instanceView;
return containerCodePackageProperties;
}