/// <summary> /// Specifies the network policy to be used for building the Kubernetes network. /// </summary> /// <param name="networkPolicy">The network policy to be used for building the Kubernetes network.</param> /// <return>The next stage of the definition.</return> KubernetesCluster.Definition.IWithAttach <KubernetesCluster.Definition.IWithCreate> KubernetesCluster.Definition.IWithNetworkPolicy <KubernetesCluster.Definition.IWithCreate> .WithNetworkPolicy(NetworkPolicy networkPolicy) { return(this.WithNetworkPolicy(networkPolicy)); }
///GENMHASH:81FCB1F625D160C21630C458F9A6CA2B:A60126C45B1D069840148CF0F6141110 public KubernetesClusterNetworkProfileImpl WithNetworkPolicy(NetworkPolicy networkPolicy) { this.EnsureNetworkProfile().NetworkPolicy = networkPolicy; return(this); }
/// <summary> /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider" /// /> and <see cref="ignoreCase" /> /// </summary> /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param> /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param> /// <param name="formatProvider">not used by this TypeConverter.</param> /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param> /// <returns> /// an instance of <see cref="NetworkPolicy" />, or <c>null</c> if there is no suitable conversion. /// </returns> public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => NetworkPolicy.CreateFrom(sourceValue);