/// <summary> /// Initializes a new instance of the Cluster class. /// </summary> /// <param name="location">Azure resource location.</param> /// <param name="managementEndpoint">The http management endpoint of /// the cluster.</param> /// <param name="nodeTypes">The list of node types in the /// cluster.</param> /// <param name="id">Azure resource identifier.</param> /// <param name="name">Azure resource name.</param> /// <param name="type">Azure resource type.</param> /// <param name="tags">Azure resource tags.</param> /// <param name="addOnFeatures">The list of add-on features to enable /// in the cluster.</param> /// <param name="availableClusterVersions">The Service Fabric runtime /// versions available for this cluster.</param> /// <param name="azureActiveDirectory">The AAD authentication settings /// of the cluster.</param> /// <param name="certificate">The certificate to use for securing the /// cluster. The certificate provided will be used for node to node /// security within the cluster, SSL certificate for cluster management /// endpoint and default admin client.</param> /// <param name="certificateCommonNames">Describes a list of server /// certificates referenced by common name that are used to secure the /// cluster.</param> /// <param name="clientCertificateCommonNames">The list of client /// certificates referenced by common name that are allowed to manage /// the cluster.</param> /// <param name="clientCertificateThumbprints">The list of client /// certificates referenced by thumbprint that are allowed to manage /// the cluster.</param> /// <param name="clusterCodeVersion">The Service Fabric runtime version /// of the cluster. This property can only by set the user when /// **upgradeMode** is set to 'Manual'. To get list of available /// Service Fabric versions for new clusters use [ClusterVersion /// API](./ClusterVersion.md). To get the list of available version for /// existing clusters use **availableClusterVersions**.</param> /// <param name="clusterEndpoint">The Azure Resource Provider endpoint. /// A system service in the cluster connects to this endpoint.</param> /// <param name="clusterId">A service generated unique identifier for /// the cluster resource.</param> /// <param name="clusterState">The current state of the cluster. /// /// - WaitingForNodes - Indicates that the cluster resource is created /// and the resource provider is waiting for Service Fabric VM /// extension to boot up and report to it. /// - Deploying - Indicates that the Service Fabric runtime is being /// installed on the VMs. Cluster resource will be in this state until /// the cluster boots up and system services are up. /// - BaselineUpgrade - Indicates that the cluster is upgrading to /// establishes the cluster version. This upgrade is automatically /// initiated when the cluster boots up for the first time. /// - UpdatingUserConfiguration - Indicates that the cluster is being /// upgraded with the user provided configuration. /// - UpdatingUserCertificate - Indicates that the cluster is being /// upgraded with the user provided certificate. /// - UpdatingInfrastructure - Indicates that the cluster is being /// upgraded with the latest Service Fabric runtime version. This /// happens only when the **upgradeMode** is set to 'Automatic'. /// - EnforcingClusterVersion - Indicates that cluster is on a /// different version than expected and the cluster is being upgraded /// to the expected version. /// - UpgradeServiceUnreachable - Indicates that the system service in /// the cluster is no longer polling the Resource Provider. Clusters in /// this state cannot be managed by the Resource Provider. /// - AutoScale - Indicates that the ReliabilityLevel of the cluster is /// being adjusted. /// - Ready - Indicates that the cluster is in a stable state. /// . Possible values include: 'WaitingForNodes', 'Deploying', /// 'BaselineUpgrade', 'UpdatingUserConfiguration', /// 'UpdatingUserCertificate', 'UpdatingInfrastructure', /// 'EnforcingClusterVersion', 'UpgradeServiceUnreachable', /// 'AutoScale', 'Ready'</param> /// <param name="diagnosticsStorageAccountConfig">The storage account /// information for storing Service Fabric diagnostic logs.</param> /// <param name="fabricSettings">The list of custom fabric settings to /// configure the cluster.</param> /// <param name="provisioningState">The provisioning state of the /// cluster resource. Possible values include: 'Updating', 'Succeeded', /// 'Failed', 'Canceled'</param> /// <param name="reliabilityLevel">The reliability level sets the /// replica set size of system services. Learn about /// [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). /// /// - None - Run the System services with a target replica set count of /// 1. This should only be used for test clusters. /// - Bronze - Run the System services with a target replica set count /// of 3. This should only be used for test clusters. /// - Silver - Run the System services with a target replica set count /// of 5. /// - Gold - Run the System services with a target replica set count of /// 7. /// - Platinum - Run the System services with a target replica set /// count of 9. /// . Possible values include: 'None', 'Bronze', 'Silver', 'Gold', /// 'Platinum'</param> /// <param name="reverseProxyCertificate">The server certificate used /// by reverse proxy.</param> /// <param name="reverseProxyCertificateCommonNames">Describes a list /// of server certificates referenced by common name that are used to /// secure the cluster.</param> /// <param name="upgradeDescription">The policy to use when upgrading /// the cluster.</param> /// <param name="upgradeMode">The upgrade mode of the cluster when new /// Service Fabric runtime version is available. /// /// - Automatic - The cluster will be automatically upgraded to the /// latest Service Fabric runtime version as soon as it is available. /// - Manual - The cluster will not be automatically upgraded to the /// latest Service Fabric runtime version. The cluster is upgraded by /// setting the **clusterCodeVersion** property in the cluster /// resource. /// . Possible values include: 'Automatic', 'Manual'</param> /// <param name="vmImage">The VM image VMSS has been configured with. /// Generic names such as Windows or Linux can be used.</param> public Cluster(string location, string managementEndpoint, IList <NodeTypeDescription> nodeTypes, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), IList <string> addOnFeatures = default(IList <string>), IList <ClusterVersionDetails> availableClusterVersions = default(IList <ClusterVersionDetails>), AzureActiveDirectory azureActiveDirectory = default(AzureActiveDirectory), CertificateDescription certificate = default(CertificateDescription), ServerCertificateCommonNames certificateCommonNames = default(ServerCertificateCommonNames), IList <ClientCertificateCommonName> clientCertificateCommonNames = default(IList <ClientCertificateCommonName>), IList <ClientCertificateThumbprint> clientCertificateThumbprints = default(IList <ClientCertificateThumbprint>), string clusterCodeVersion = default(string), string clusterEndpoint = default(string), string clusterId = default(string), string clusterState = default(string), DiagnosticsStorageAccountConfig diagnosticsStorageAccountConfig = default(DiagnosticsStorageAccountConfig), IList <SettingsSectionDescription> fabricSettings = default(IList <SettingsSectionDescription>), string provisioningState = default(string), string reliabilityLevel = default(string), CertificateDescription reverseProxyCertificate = default(CertificateDescription), ServerCertificateCommonNames reverseProxyCertificateCommonNames = default(ServerCertificateCommonNames), ClusterUpgradePolicy upgradeDescription = default(ClusterUpgradePolicy), string upgradeMode = default(string), string vmImage = default(string)) : base(location, id, name, type, tags) { AddOnFeatures = addOnFeatures; AvailableClusterVersions = availableClusterVersions; AzureActiveDirectory = azureActiveDirectory; Certificate = certificate; CertificateCommonNames = certificateCommonNames; ClientCertificateCommonNames = clientCertificateCommonNames; ClientCertificateThumbprints = clientCertificateThumbprints; ClusterCodeVersion = clusterCodeVersion; ClusterEndpoint = clusterEndpoint; ClusterId = clusterId; ClusterState = clusterState; DiagnosticsStorageAccountConfig = diagnosticsStorageAccountConfig; FabricSettings = fabricSettings; ManagementEndpoint = managementEndpoint; NodeTypes = nodeTypes; ProvisioningState = provisioningState; ReliabilityLevel = reliabilityLevel; ReverseProxyCertificate = reverseProxyCertificate; ReverseProxyCertificateCommonNames = reverseProxyCertificateCommonNames; UpgradeDescription = upgradeDescription; UpgradeMode = upgradeMode; VmImage = vmImage; CustomInit(); }
/// <summary> /// Initializes a new instance of the ManagedCluster class. /// </summary> /// <param name="location">Azure resource location.</param> /// <param name="dnsName">The cluster dns name.</param> /// <param name="adminUserName">vm admin user name.</param> /// <param name="id">Azure resource identifier.</param> /// <param name="name">Azure resource name.</param> /// <param name="type">Azure resource type.</param> /// <param name="tags">Azure resource tags.</param> /// <param name="etag">Azure resource etag.</param> /// <param name="fqdn">the cluster Fully qualified domain name.</param> /// <param name="clusterId">A service generated unique identifier for /// the cluster resource.</param> /// <param name="clusterState">The current state of the cluster. /// /// - WaitingForNodes - Indicates that the cluster resource is created /// and the resource provider is waiting for Service Fabric VM /// extension to boot up and report to it. /// - Deploying - Indicates that the Service Fabric runtime is being /// installed on the VMs. Cluster resource will be in this state until /// the cluster boots up and system services are up. /// - BaselineUpgrade - Indicates that the cluster is upgrading to /// establishes the cluster version. This upgrade is automatically /// initiated when the cluster boots up for the first time. /// - UpdatingUserConfiguration - Indicates that the cluster is being /// upgraded with the user provided configuration. /// - UpdatingUserCertificate - Indicates that the cluster is being /// upgraded with the user provided certificate. /// - UpdatingInfrastructure - Indicates that the cluster is being /// upgraded with the latest Service Fabric runtime version. This /// happens only when the **upgradeMode** is set to 'Automatic'. /// - EnforcingClusterVersion - Indicates that cluster is on a /// different version than expected and the cluster is being upgraded /// to the expected version. /// - UpgradeServiceUnreachable - Indicates that the system service in /// the cluster is no longer polling the Resource Provider. Clusters in /// this state cannot be managed by the Resource Provider. /// - AutoScale - Indicates that the ReliabilityLevel of the cluster is /// being adjusted. /// - Ready - Indicates that the cluster is in a stable state. /// . Possible values include: 'WaitingForNodes', 'Deploying', /// 'BaselineUpgrade', 'UpdatingUserConfiguration', /// 'UpdatingUserCertificate', 'UpdatingInfrastructure', /// 'EnforcingClusterVersion', 'UpgradeServiceUnreachable', /// 'AutoScale', 'Ready'</param> /// <param name="clusterCertificateThumbprint">The cluster certificate /// thumbprint used node to node communication.</param> /// <param name="clientConnectionPort">The port used for client /// connections to the cluster.</param> /// <param name="httpGatewayConnectionPort">The port used for http /// connections to the cluster.</param> /// <param name="adminPassword">vm admin user password.</param> /// <param name="loadBalancingRules">Describes load balancing /// rules.</param> /// <param name="clients">client certificates for the cluster.</param> /// <param name="azureActiveDirectory">Azure active directory.</param> /// <param name="fabricSettings">The list of custom fabric settings to /// configure the cluster.</param> /// <param name="useTestExtension">Use service fabric test vm /// extension, by default it's false.</param> /// <param name="provisioningState">The provisioning state of the /// managed cluster resource. Possible values include: 'None', /// 'Creating', 'Created', 'Updating', 'Succeeded', 'Failed', /// 'Canceled', 'Deleting', 'Deleted', 'Other'</param> /// <param name="clusterCodeVersion">The Service Fabric runtime version /// of the cluster. This property can only by set the user when /// **upgradeMode** is set to 'Manual'. To get list of available /// Service Fabric versions for new clusters use [ClusterVersion /// API](./ClusterVersion.md). To get the list of available version for /// existing clusters use **availableClusterVersions**.</param> /// <param name="clusterUpgradeMode">The upgrade mode of the cluster /// when new Service Fabric runtime version is available. /// /// - Automatic - The cluster will be automatically upgraded to the /// latest Service Fabric runtime version as soon as it is available. /// - Manual - The cluster will not be automatically upgraded to the /// latest Service Fabric runtime version. The cluster is upgraded by /// setting the **clusterCodeVersion** property in the cluster /// resource. /// . Possible values include: 'Automatic', 'Manual'</param> /// <param name="clusterUpgradeDescription">Describes the policy used /// when upgrading the cluster.</param> /// <param name="reverseProxyEndpointPort">The endpoint used by reverse /// proxy.</param> /// <param name="sku">The sku of the managed cluster</param> public ManagedCluster(string location, string dnsName, string adminUserName, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string etag = default(string), string fqdn = default(string), string clusterId = default(string), string clusterState = default(string), string clusterCertificateThumbprint = default(string), int?clientConnectionPort = default(int?), int?httpGatewayConnectionPort = default(int?), string adminPassword = default(string), IList <LoadBalancingRule> loadBalancingRules = default(IList <LoadBalancingRule>), IList <ClientCertificate> clients = default(IList <ClientCertificate>), AzureActiveDirectory azureActiveDirectory = default(AzureActiveDirectory), IList <SettingsSectionDescription> fabricSettings = default(IList <SettingsSectionDescription>), bool?useTestExtension = default(bool?), string provisioningState = default(string), string clusterCodeVersion = default(string), string clusterUpgradeMode = default(string), ClusterUpgradePolicy clusterUpgradeDescription = default(ClusterUpgradePolicy), int?reverseProxyEndpointPort = default(int?), Sku sku = default(Sku)) : base(location, id, name, type, tags, etag) { DnsName = dnsName; Fqdn = fqdn; ClusterId = clusterId; ClusterState = clusterState; ClusterCertificateThumbprint = clusterCertificateThumbprint; ClientConnectionPort = clientConnectionPort; HttpGatewayConnectionPort = httpGatewayConnectionPort; AdminUserName = adminUserName; AdminPassword = adminPassword; LoadBalancingRules = loadBalancingRules; Clients = clients; AzureActiveDirectory = azureActiveDirectory; FabricSettings = fabricSettings; UseTestExtension = useTestExtension; ProvisioningState = provisioningState; ClusterCodeVersion = clusterCodeVersion; ClusterUpgradeMode = clusterUpgradeMode; ClusterUpgradeDescription = clusterUpgradeDescription; ReverseProxyEndpointPort = reverseProxyEndpointPort; Sku = sku; CustomInit(); }
/// <summary> /// Initializes a new instance of the ManagedClusterUpdateParameters /// class. /// </summary> /// <param name="clientConnectionPort">The port used for client /// connections to the cluster.</param> /// <param name="httpGatewayConnectionPort">The port used for http /// connections to the cluster.</param> /// <param name="loadBalancingRules">Describes a load balancing /// rule.</param> /// <param name="clients">client certificates for the cluster.</param> /// <param name="azureActiveDirectory">Azure active directory.</param> /// <param name="fabricSettings">The list of custom fabric settings to /// configure the cluster.</param> /// <param name="clusterCodeVersion">The Service Fabric runtime version /// of the cluster. This property can only by set the user when /// **upgradeMode** is set to 'Manual'. To get list of available /// Service Fabric versions for new clusters use [ClusterVersion /// API](./ClusterVersion.md). To get the list of available version for /// existing clusters use **availableClusterVersions**.</param> /// <param name="clusterUpgradeMode">The upgrade mode of the cluster /// when new Service Fabric runtime version is available. /// /// - Automatic - The cluster will be automatically upgraded to the /// latest Service Fabric runtime version as soon as it is available. /// - Manual - The cluster will not be automatically upgraded to the /// latest Service Fabric runtime version. The cluster is upgraded by /// setting the **clusterCodeVersion** property in the cluster /// resource. /// . Possible values include: 'Automatic', 'Manual'</param> /// <param name="clusterUpgradeDescription">Describes the policy used /// when upgrading the cluster.</param> /// <param name="reverseProxyEndpointPort">The endpoint used by reverse /// proxy.</param> /// <param name="tags">Managed cluster update parameters</param> public ManagedClusterUpdateParameters(int?clientConnectionPort = default(int?), int?httpGatewayConnectionPort = default(int?), IList <LoadBalancingRule> loadBalancingRules = default(IList <LoadBalancingRule>), IList <ClientCertificate> clients = default(IList <ClientCertificate>), AzureActiveDirectory azureActiveDirectory = default(AzureActiveDirectory), IList <SettingsSectionDescription> fabricSettings = default(IList <SettingsSectionDescription>), string clusterCodeVersion = default(string), string clusterUpgradeMode = default(string), ClusterUpgradePolicy clusterUpgradeDescription = default(ClusterUpgradePolicy), int?reverseProxyEndpointPort = default(int?), IDictionary <string, string> tags = default(IDictionary <string, string>)) { ClientConnectionPort = clientConnectionPort; HttpGatewayConnectionPort = httpGatewayConnectionPort; LoadBalancingRules = loadBalancingRules; Clients = clients; AzureActiveDirectory = azureActiveDirectory; FabricSettings = fabricSettings; ClusterCodeVersion = clusterCodeVersion; ClusterUpgradeMode = clusterUpgradeMode; ClusterUpgradeDescription = clusterUpgradeDescription; ReverseProxyEndpointPort = reverseProxyEndpointPort; Tags = tags; CustomInit(); }