/// <summary>
 /// Initializes a new instance of the DeploymentSettings class.
 /// </summary>
 /// <param name="resourceRequests">The requested resource quantity for
 /// required CPU and Memory. It is recommended that using this field to
 /// represent the required CPU and Memory, the old field cpu and
 /// memoryInGB will be deprecated later.</param>
 /// <param name="environmentVariables">Collection of environment
 /// variables</param>
 /// <param name="addonConfigs">Collection of addons</param>
 public DeploymentSettings(ResourceRequests resourceRequests = default(ResourceRequests), IDictionary <string, string> environmentVariables = default(IDictionary <string, string>), IDictionary <string, IDictionary <string, object> > addonConfigs = default(IDictionary <string, IDictionary <string, object> >), ContainerProbeSettings containerProbeSettings = default(ContainerProbeSettings))
 {
     ResourceRequests       = resourceRequests;
     EnvironmentVariables   = environmentVariables;
     AddonConfigs           = addonConfigs;
     ContainerProbeSettings = containerProbeSettings;
     CustomInit();
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the DeploymentSettings class.
 /// </summary>
 /// <param name="resourceRequests">The requested resource quantity for
 /// required CPU and Memory. It is recommended that using this field to
 /// represent the required CPU and Memory, the old field cpu and
 /// memoryInGB will be deprecated later.</param>
 /// <param name="environmentVariables">Collection of environment
 /// variables</param>
 /// <param name="addonConfigs">Collection of addons</param>
 /// <param name="livenessProbe">Periodic probe of App Instance
 /// liveness. App Instance will be restarted if the probe fails. More
 /// info:
 /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes</param>
 /// <param name="readinessProbe">Periodic probe of App Instance service
 /// readiness. App Instance will be removed from service endpoints if
 /// the probe fails. More info:
 /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes</param>
 /// <param name="startupProbe">StartupProbe indicates that the App
 /// Instance has successfully initialized. If specified, no other
 /// probes are executed until this completes successfully. If this
 /// probe fails, the Pod will be restarted, just as if the
 /// livenessProbe failed. This can be used to provide different probe
 /// parameters at the beginning of a App Instance's lifecycle, when it
 /// might take a long time to load data or warm a cache, than during
 /// steady-state operation. This cannot be updated. More info:
 /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes</param>
 /// <param name="terminationGracePeriodSeconds">Optional duration in
 /// seconds the App Instance needs to terminate gracefully. May be
 /// decreased in delete request. Value must be non-negative integer.
 /// The value zero indicates stop immediately via the kill signal (no
 /// opportunity to shut down). If this value is nil, the default grace
 /// period will be used instead. The grace period is the duration in
 /// seconds after the processes running in the App Instance are sent a
 /// termination signal and the time when the processes are forcibly
 /// halted with a kill signal. Set this value longer than the expected
 /// cleanup time for your process. Defaults to 90 seconds.</param>
 public DeploymentSettings(ResourceRequests resourceRequests = default(ResourceRequests), IDictionary <string, string> environmentVariables = default(IDictionary <string, string>), IDictionary <string, IDictionary <string, object> > addonConfigs = default(IDictionary <string, IDictionary <string, object> >), Probe livenessProbe = default(Probe), Probe readinessProbe = default(Probe), Probe startupProbe = default(Probe), int?terminationGracePeriodSeconds = default(int?), ContainerProbeSettings containerProbeSettings = default(ContainerProbeSettings))
 {
     ResourceRequests              = resourceRequests;
     EnvironmentVariables          = environmentVariables;
     AddonConfigs                  = addonConfigs;
     LivenessProbe                 = livenessProbe;
     ReadinessProbe                = readinessProbe;
     StartupProbe                  = startupProbe;
     TerminationGracePeriodSeconds = terminationGracePeriodSeconds;
     ContainerProbeSettings        = containerProbeSettings;
     CustomInit();
 }