/// <summary>
 /// Initializes a new instance of the ServiceReplicaProperties class.
 /// </summary>
 /// <param name="osType">The operation system required by the code in
 /// service. Possible values include: 'Linux', 'Windows'</param>
 /// <param name="codePackages">Describes the set of code packages that
 /// forms the service. A code package describes the container and the
 /// properties for running it. All the code packages are started
 /// together on the same host and share the same context (network,
 /// process etc.).</param>
 /// <param name="networkRefs">The names of the private networks that
 /// this service needs to be part of.</param>
 /// <param name="diagnostics">Reference to sinks in
 /// DiagnosticsDescription.</param>
 public ServiceReplicaProperties(string osType, IList <ContainerCodePackageProperties> codePackages, IList <NetworkRef> networkRefs = default(IList <NetworkRef>), DiagnosticsRef diagnostics = default(DiagnosticsRef))
 {
     OsType       = osType;
     CodePackages = codePackages;
     NetworkRefs  = networkRefs;
     Diagnostics  = diagnostics;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ServiceResourceDescription class.
 /// </summary>
 /// <param name="osType">The operation system required by the code in
 /// service. Possible values include: 'Linux', 'Windows'</param>
 /// <param name="codePackages">Describes the set of code packages that
 /// forms the service. A code package describes the container and the
 /// properties for running it. All the code packages are started
 /// together on the same host and share the same context (network,
 /// process etc.).</param>
 /// <param name="id">Fully qualified identifier for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. Ex-
 /// Microsoft.Compute/virtualMachines or
 /// Microsoft.Storage/storageAccounts.</param>
 /// <param name="provisioningState">State of the resource.</param>
 /// <param name="networkRefs">The names of the private networks that
 /// this service needs to be part of.</param>
 /// <param name="diagnostics">Reference to sinks in
 /// DiagnosticsDescription.</param>
 /// <param name="description">User readable description of the
 /// service.</param>
 /// <param name="replicaCount">The number of replicas of the service to
 /// create. Defaults to 1 if not specified.</param>
 /// <param name="autoScalingPolicies">Auto scaling policies</param>
 /// <param name="status">Status of the service. Possible values
 /// include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting',
 /// 'Failed'</param>
 /// <param name="statusDetails">Gives additional information about the
 /// current status of the service.</param>
 /// <param name="healthState">Describes the health state of an
 /// application resource. Possible values include: 'Invalid', 'Ok',
 /// 'Warning', 'Error', 'Unknown'</param>
 /// <param name="unhealthyEvaluation">When the service's health state
 /// is not 'Ok', this additional details from service fabric Health
 /// Manager for the user to know why the service is marked
 /// unhealthy.</param>
 public ServiceResourceDescription(string osType, IList <ContainerCodePackageProperties> codePackages, string id = default(string), string name = default(string), string type = default(string), string provisioningState = default(string), IList <NetworkRef> networkRefs = default(IList <NetworkRef>), DiagnosticsRef diagnostics = default(DiagnosticsRef), string description = default(string), int?replicaCount = default(int?), IList <AutoScalingPolicy> autoScalingPolicies = default(IList <AutoScalingPolicy>), string status = default(string), string statusDetails = default(string), string healthState = default(string), string unhealthyEvaluation = default(string))
     : base(id, name, type)
 {
     ProvisioningState   = provisioningState;
     OsType              = osType;
     CodePackages        = codePackages;
     NetworkRefs         = networkRefs;
     Diagnostics         = diagnostics;
     Description         = description;
     ReplicaCount        = replicaCount;
     AutoScalingPolicies = autoScalingPolicies;
     Status              = status;
     StatusDetails       = statusDetails;
     HealthState         = healthState;
     UnhealthyEvaluation = unhealthyEvaluation;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ContainerCodePackageProperties
 /// class.
 /// </summary>
 /// <param name="name">The name of the code package.</param>
 /// <param name="image">The Container image to use.</param>
 /// <param name="resources">The resources required by this
 /// container.</param>
 /// <param name="imageRegistryCredential">Image registry
 /// credential.</param>
 /// <param name="entrypoint">Override for the default entry point in
 /// the container.</param>
 /// <param name="commands">Command array to execute within the
 /// container in exec form.</param>
 /// <param name="environmentVariables">The environment variables to set
 /// in this container</param>
 /// <param name="settings">The settings to set in this container. The
 /// setting file path can be fetched from environment variable
 /// "Fabric_SettingPath". The path for Windows container is
 /// "C:\\secrets". The path for Linux container is
 /// "/var/secrets".</param>
 /// <param name="labels">The labels to set in this container.</param>
 /// <param name="endpoints">The endpoints exposed by this
 /// container.</param>
 /// <param name="volumeRefs">Volumes to be attached to the container.
 /// The lifetime of these volumes is independent of the application's
 /// lifetime.</param>
 /// <param name="volumes">Volumes to be attached to the container. The
 /// lifetime of these volumes is scoped to the application's
 /// lifetime.</param>
 /// <param name="diagnostics">Reference to sinks in
 /// DiagnosticsDescription.</param>
 /// <param name="reliableCollectionsRefs">A list of ReliableCollection
 /// resources used by this particular code package. Please refer to
 /// ReliableCollectionsRef for more details.</param>
 /// <param name="instanceView">Runtime information of a container
 /// instance.</param>
 public ContainerCodePackageProperties(string name, string image, ResourceRequirements resources, ImageRegistryCredential imageRegistryCredential = default(ImageRegistryCredential), string entrypoint = default(string), IList <string> commands = default(IList <string>), IList <EnvironmentVariable> environmentVariables = default(IList <EnvironmentVariable>), IList <Setting> settings = default(IList <Setting>), IList <ContainerLabel> labels = default(IList <ContainerLabel>), IList <EndpointProperties> endpoints = default(IList <EndpointProperties>), IList <VolumeReference> volumeRefs = default(IList <VolumeReference>), IList <ApplicationScopedVolume> volumes = default(IList <ApplicationScopedVolume>), DiagnosticsRef diagnostics = default(DiagnosticsRef), IList <ReliableCollectionsRef> reliableCollectionsRefs = default(IList <ReliableCollectionsRef>), ContainerInstanceView instanceView = default(ContainerInstanceView))
 {
     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;
     InstanceView            = instanceView;
     CustomInit();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the ServiceReplicaDescription class.
 /// </summary>
 /// <param name="osType">The operation system required by the code in
 /// service. Possible values include: 'Linux', 'Windows'</param>
 /// <param name="codePackages">Describes the set of code packages that
 /// forms the service. A code package describes the container and the
 /// properties for running it. All the code packages are started
 /// together on the same host and share the same context (network,
 /// process etc.).</param>
 /// <param name="replicaName">Name of the replica.</param>
 /// <param name="networkRefs">The names of the private networks that
 /// this service needs to be part of.</param>
 /// <param name="diagnostics">Reference to sinks in
 /// DiagnosticsDescription.</param>
 public ServiceReplicaDescription(string osType, IList <ContainerCodePackageProperties> codePackages, string replicaName, IList <NetworkRef> networkRefs = default(IList <NetworkRef>), DiagnosticsRef diagnostics = default(DiagnosticsRef))
     : base(osType, codePackages, networkRefs, diagnostics)
 {
     ReplicaName = replicaName;
     CustomInit();
 }