private ContainerServiceImpl WithOrchestratorProfile(ContainerServiceOrchestratorTypes orchestratorType) { ContainerServiceOrchestratorProfile orchestratorProfile = new ContainerServiceOrchestratorProfile(); orchestratorProfile.OrchestratorType = orchestratorType; this.Inner.OrchestratorProfile = orchestratorProfile; return(this); }
///GENMHASH:6D557FE1D021BE5607F25800C54206AC:92A40AABED958DD7D8E0110C6E8CA32F public ContainerServiceOrchestratorTypes OrchestratorType() { if (this.Inner.OrchestratorProfile == null) { throw new Exception("Orchestrator profile is missing!"); } return(ContainerServiceOrchestratorTypes.Parse(this.Inner.OrchestratorProfile.OrchestratorType)); }
internal static ContainerServiceOrchestratorProfile DeserializeContainerServiceOrchestratorProfile(JsonElement element) { ContainerServiceOrchestratorTypes orchestratorType = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("orchestratorType")) { orchestratorType = property.Value.GetString().ToContainerServiceOrchestratorTypes(); continue; } } return(new ContainerServiceOrchestratorProfile(orchestratorType)); }
internal static string ToSerializedValue(this ContainerServiceOrchestratorTypes value) { switch (value) { case ContainerServiceOrchestratorTypes.Swarm: return("Swarm"); case ContainerServiceOrchestratorTypes.DCOS: return("DCOS"); case ContainerServiceOrchestratorTypes.Custom: return("Custom"); case ContainerServiceOrchestratorTypes.Kubernetes: return("Kubernetes"); } return(null); }
public ContainerServiceOrchestratorProfile(ContainerServiceOrchestratorTypes orchestratorType) { OrchestratorType = orchestratorType; }
public static string ToSerialString(this ContainerServiceOrchestratorTypes value) => value switch {
/// <summary> /// Initializes a new instance of the /// ContainerServiceOrchestratorProfile class. /// </summary> /// <param name="orchestratorType">The orchestrator to use to manage /// container service cluster resources. Valid values are Swarm, DCOS, /// and Custom. Possible values include: 'Swarm', 'DCOS', 'Custom', /// 'Kubernetes'</param> public ContainerServiceOrchestratorProfile(ContainerServiceOrchestratorTypes orchestratorType) { OrchestratorType = orchestratorType; CustomInit(); }