Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the OpenShiftManagedCluster class.
 /// </summary>
 /// <param name="location">Resource location</param>
 /// <param name="openShiftVersion">Version of OpenShift specified when
 /// creating the cluster.</param>
 /// <param name="id">Resource Id</param>
 /// <param name="name">Resource name</param>
 /// <param name="type">Resource type</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="plan">Define the resource plan as required by ARM for
 /// billing purposes</param>
 /// <param name="provisioningState">The current deployment or
 /// provisioning state, which only appears in the response.</param>
 /// <param name="publicHostname">Optional user-specified FQDN for
 /// OpenShift API server.</param>
 /// <param name="fqdn">User-specified FQDN for OpenShift API server
 /// loadbalancer internal hostname.</param>
 /// <param name="networkProfile">Configuration for OpenShift
 /// networking.</param>
 /// <param name="routerProfiles">Configuration for OpenShift
 /// router(s).</param>
 /// <param name="masterPoolProfile">Configuration for OpenShift master
 /// VMs.</param>
 /// <param name="agentPoolProfiles">Configuration of OpenShift cluster
 /// VMs.</param>
 /// <param name="authProfile">Configures OpenShift
 /// authentication.</param>
 public OpenShiftManagedCluster(string location, string openShiftVersion, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), PurchasePlan plan = default(PurchasePlan), string provisioningState = default(string), string publicHostname = default(string), string fqdn = default(string), NetworkProfile networkProfile = default(NetworkProfile), IList <OpenShiftRouterProfile> routerProfiles = default(IList <OpenShiftRouterProfile>), OpenShiftManagedClusterMasterPoolProfile masterPoolProfile = default(OpenShiftManagedClusterMasterPoolProfile), IList <OpenShiftManagedClusterAgentPoolProfile> agentPoolProfiles = default(IList <OpenShiftManagedClusterAgentPoolProfile>), OpenShiftManagedClusterAuthProfile authProfile = default(OpenShiftManagedClusterAuthProfile))
     : base(location, id, name, type, tags)
 {
     Plan = plan;
     ProvisioningState = provisioningState;
     OpenShiftVersion  = openShiftVersion;
     PublicHostname    = publicHostname;
     Fqdn              = fqdn;
     NetworkProfile    = networkProfile;
     RouterProfiles    = routerProfiles;
     MasterPoolProfile = masterPoolProfile;
     AgentPoolProfiles = agentPoolProfiles;
     AuthProfile       = authProfile;
     CustomInit();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (AgentPoolProfiles != null)
     {
         foreach (var element in AgentPoolProfiles)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
     if (LinuxProfile != null)
     {
         LinuxProfile.Validate();
     }
     if (WindowsProfile != null)
     {
         WindowsProfile.Validate();
     }
     if (ServicePrincipalProfile != null)
     {
         ServicePrincipalProfile.Validate();
     }
     if (AddonProfiles != null)
     {
         foreach (var valueElement in AddonProfiles.Values)
         {
             if (valueElement != null)
             {
                 valueElement.Validate();
             }
         }
     }
     if (NetworkProfile != null)
     {
         NetworkProfile.Validate();
     }
     if (AadProfile != null)
     {
         AadProfile.Validate();
     }
 }