Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the ManagedCluster class.
 /// </summary>
 /// <param name="location">Resource location</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="provisioningState">The current deployment or
 /// provisioning state, which only appears in the response.</param>
 /// <param name="maxAgentPools">The max number of agent pools for the
 /// managed cluster.</param>
 /// <param name="kubernetesVersion">Version of Kubernetes specified
 /// when creating the managed cluster.</param>
 /// <param name="dnsPrefix">DNS prefix specified when creating the
 /// managed cluster.</param>
 /// <param name="fqdn">FQDN for the master pool.</param>
 /// <param name="privateFQDN">FQDN of private cluster.</param>
 /// <param name="agentPoolProfiles">Properties of the agent
 /// pool.</param>
 /// <param name="linuxProfile">Profile for Linux VMs in the container
 /// service cluster.</param>
 /// <param name="windowsProfile">Profile for Windows VMs in the
 /// container service cluster.</param>
 /// <param name="servicePrincipalProfile">Information about a service
 /// principal identity for the cluster to use for manipulating Azure
 /// APIs.</param>
 /// <param name="addonProfiles">Profile of managed cluster
 /// add-on.</param>
 /// <param name="nodeResourceGroup">Name of the resource group
 /// containing agent pool nodes.</param>
 /// <param name="enableRBAC">Whether to enable Kubernetes Role-Based
 /// Access Control.</param>
 /// <param name="enablePodSecurityPolicy">(DEPRECATING) Whether to
 /// enable Kubernetes pod security policy (preview). This feature is
 /// set for removal on October 15th, 2020. Learn more at
 /// aka.ms/aks/azpodpolicy.</param>
 /// <param name="networkProfile">Profile of network
 /// configuration.</param>
 /// <param name="aadProfile">Profile of Azure Active Directory
 /// configuration.</param>
 /// <param name="autoScalerProfile">Parameters to be applied to the
 /// cluster-autoscaler when enabled</param>
 /// <param name="apiServerAccessProfile">Access profile for managed
 /// cluster API server.</param>
 /// <param name="diskEncryptionSetID">ResourceId of the disk encryption
 /// set to use for enabling encryption at rest.</param>
 /// <param name="identityProfile">Identities associated with the
 /// cluster.</param>
 /// <param name="identity">The identity of the managed cluster, if
 /// configured.</param>
 /// <param name="sku">The managed cluster SKU.</param>
 public ManagedCluster(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string provisioningState = default(string), int?maxAgentPools = default(int?), string kubernetesVersion = default(string), string dnsPrefix = default(string), string fqdn = default(string), string privateFQDN = default(string), IList <ManagedClusterAgentPoolProfile> agentPoolProfiles = default(IList <ManagedClusterAgentPoolProfile>), ContainerServiceLinuxProfile linuxProfile = default(ContainerServiceLinuxProfile), ManagedClusterWindowsProfile windowsProfile = default(ManagedClusterWindowsProfile), ManagedClusterServicePrincipalProfile servicePrincipalProfile = default(ManagedClusterServicePrincipalProfile), IDictionary <string, ManagedClusterAddonProfile> addonProfiles = default(IDictionary <string, ManagedClusterAddonProfile>), string nodeResourceGroup = default(string), bool?enableRBAC = default(bool?), bool?enablePodSecurityPolicy = default(bool?), ContainerServiceNetworkProfile networkProfile = default(ContainerServiceNetworkProfile), ManagedClusterAADProfile aadProfile = default(ManagedClusterAADProfile), ManagedClusterPropertiesAutoScalerProfile autoScalerProfile = default(ManagedClusterPropertiesAutoScalerProfile), ManagedClusterAPIServerAccessProfile apiServerAccessProfile = default(ManagedClusterAPIServerAccessProfile), string diskEncryptionSetID = default(string), IDictionary <string, ManagedClusterPropertiesIdentityProfileValue> identityProfile = default(IDictionary <string, ManagedClusterPropertiesIdentityProfileValue>), ManagedClusterIdentity identity = default(ManagedClusterIdentity), ManagedClusterSKU sku = default(ManagedClusterSKU))
     : base(location, id, name, type, tags)
 {
     ProvisioningState = provisioningState;
     MaxAgentPools     = maxAgentPools;
     KubernetesVersion = kubernetesVersion;
     DnsPrefix         = dnsPrefix;
     Fqdn                    = fqdn;
     PrivateFQDN             = privateFQDN;
     AgentPoolProfiles       = agentPoolProfiles;
     LinuxProfile            = linuxProfile;
     WindowsProfile          = windowsProfile;
     ServicePrincipalProfile = servicePrincipalProfile;
     AddonProfiles           = addonProfiles;
     NodeResourceGroup       = nodeResourceGroup;
     EnableRBAC              = enableRBAC;
     EnablePodSecurityPolicy = enablePodSecurityPolicy;
     NetworkProfile          = networkProfile;
     AadProfile              = aadProfile;
     AutoScalerProfile       = autoScalerProfile;
     ApiServerAccessProfile  = apiServerAccessProfile;
     DiskEncryptionSetID     = diskEncryptionSetID;
     IdentityProfile         = identityProfile;
     Identity                = identity;
     Sku = sku;
     CustomInit();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the ManagedCluster class.
 /// </summary>
 /// <param name="location">Resource location</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="provisioningState">The current deployment or
 /// provisioning state, which only appears in the response.</param>
 /// <param name="maxAgentPools">The max number of agent pools for the
 /// managed cluster.</param>
 /// <param name="kubernetesVersion">Version of Kubernetes specified
 /// when creating the managed cluster.</param>
 /// <param name="dnsPrefix">DNS prefix specified when creating the
 /// managed cluster.</param>
 /// <param name="fqdn">FQDN for the master pool.</param>
 /// <param name="agentPoolProfiles">Properties of the agent
 /// pool.</param>
 /// <param name="linuxProfile">Profile for Linux VMs in the container
 /// service cluster.</param>
 /// <param name="windowsProfile">Profile for Windows VMs in the
 /// container service cluster.</param>
 /// <param name="servicePrincipalProfile">Information about a service
 /// principal identity for the cluster to use for manipulating Azure
 /// APIs.</param>
 /// <param name="addonProfiles">Profile of managed cluster
 /// add-on.</param>
 /// <param name="nodeResourceGroup">Name of the resource group
 /// containing agent pool nodes.</param>
 /// <param name="enableRBAC">Whether to enable Kubernetes Role-Based
 /// Access Control.</param>
 /// <param name="enablePodSecurityPolicy">(PREVIEW) Whether to enable
 /// Kubernetes Pod security policy.</param>
 /// <param name="networkProfile">Profile of network
 /// configuration.</param>
 /// <param name="aadProfile">Profile of Azure Active Directory
 /// configuration.</param>
 /// <param name="apiServerAuthorizedIPRanges">(PREVIEW) Authorized IP
 /// Ranges to kubernetes API server.</param>
 /// <param name="identity">The identity of the managed cluster, if
 /// configured.</param>
 public ManagedCluster(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string provisioningState = default(string), int?maxAgentPools = default(int?), string kubernetesVersion = default(string), string dnsPrefix = default(string), string fqdn = default(string), IList <ManagedClusterAgentPoolProfile> agentPoolProfiles = default(IList <ManagedClusterAgentPoolProfile>), ContainerServiceLinuxProfile linuxProfile = default(ContainerServiceLinuxProfile), ManagedClusterWindowsProfile windowsProfile = default(ManagedClusterWindowsProfile), ManagedClusterServicePrincipalProfile servicePrincipalProfile = default(ManagedClusterServicePrincipalProfile), IDictionary <string, ManagedClusterAddonProfile> addonProfiles = default(IDictionary <string, ManagedClusterAddonProfile>), string nodeResourceGroup = default(string), bool?enableRBAC = default(bool?), bool?enablePodSecurityPolicy = default(bool?), ContainerServiceNetworkProfile networkProfile = default(ContainerServiceNetworkProfile), ManagedClusterAADProfile aadProfile = default(ManagedClusterAADProfile), IList <string> apiServerAuthorizedIPRanges = default(IList <string>), ManagedClusterIdentity identity = default(ManagedClusterIdentity))
     : base(location, id, name, type, tags)
 {
     ProvisioningState = provisioningState;
     MaxAgentPools     = maxAgentPools;
     KubernetesVersion = kubernetesVersion;
     DnsPrefix         = dnsPrefix;
     Fqdn = fqdn;
     AgentPoolProfiles       = agentPoolProfiles;
     LinuxProfile            = linuxProfile;
     WindowsProfile          = windowsProfile;
     ServicePrincipalProfile = servicePrincipalProfile;
     AddonProfiles           = addonProfiles;
     NodeResourceGroup       = nodeResourceGroup;
     EnableRBAC = enableRBAC;
     EnablePodSecurityPolicy = enablePodSecurityPolicy;
     NetworkProfile          = networkProfile;
     AadProfile = aadProfile;
     ApiServerAuthorizedIPRanges = apiServerAuthorizedIPRanges;
     Identity = identity;
     CustomInit();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the ManagedCluster class.
 /// </summary>
 /// <param name="location">Resource location</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="sku">The managed cluster SKU.</param>
 /// <param name="extendedLocation">The extended location of the Virtual
 /// Machine.</param>
 /// <param name="identity">The identity of the managed cluster, if
 /// configured.</param>
 /// <param name="provisioningState">The current provisioning
 /// state.</param>
 /// <param name="powerState">The Power State of the cluster.</param>
 /// <param name="maxAgentPools">The max number of agent pools for the
 /// managed cluster.</param>
 /// <param name="kubernetesVersion">The version of Kubernetes the
 /// Managed Cluster is running.</param>
 /// <param name="dnsPrefix">The DNS prefix of the Managed
 /// Cluster.</param>
 /// <param name="fqdnSubdomain">The FQDN subdomain of the private
 /// cluster with custom private dns zone.</param>
 /// <param name="fqdn">The FQDN of the master pool.</param>
 /// <param name="privateFQDN">The FQDN of private cluster.</param>
 /// <param name="azurePortalFQDN">The special FQDN used by the Azure
 /// Portal to access the Managed Cluster. This FQDN is for use only by
 /// the Azure Portal and should not be used by other clients.</param>
 /// <param name="agentPoolProfiles">The agent pool properties.</param>
 /// <param name="linuxProfile">The profile for Linux VMs in the Managed
 /// Cluster.</param>
 /// <param name="windowsProfile">The profile for Windows VMs in the
 /// Managed Cluster.</param>
 /// <param name="servicePrincipalProfile">Information about a service
 /// principal identity for the cluster to use for manipulating Azure
 /// APIs.</param>
 /// <param name="addonProfiles">The profile of managed cluster
 /// add-on.</param>
 /// <param name="podIdentityProfile">The pod identity profile of the
 /// Managed Cluster.</param>
 /// <param name="nodeResourceGroup">The name of the resource group
 /// containing agent pool nodes.</param>
 /// <param name="enableRBAC">Whether to enable Kubernetes Role-Based
 /// Access Control.</param>
 /// <param name="enablePodSecurityPolicy">(DEPRECATING) Whether to
 /// enable Kubernetes pod security policy (preview). This feature is
 /// set for removal on October 15th, 2020. Learn more at
 /// aka.ms/aks/azpodpolicy.</param>
 /// <param name="networkProfile">The network configuration
 /// profile.</param>
 /// <param name="aadProfile">The Azure Active Directory
 /// configuration.</param>
 /// <param name="autoUpgradeProfile">The auto upgrade
 /// configuration.</param>
 /// <param name="autoScalerProfile">Parameters to be applied to the
 /// cluster-autoscaler when enabled</param>
 /// <param name="apiServerAccessProfile">The access profile for managed
 /// cluster API server.</param>
 /// <param name="diskEncryptionSetID">The Resource ID of the disk
 /// encryption set to use for enabling encryption at rest.</param>
 /// <param name="identityProfile">Identities associated with the
 /// cluster.</param>
 /// <param name="privateLinkResources">Private link resources
 /// associated with the cluster.</param>
 /// <param name="disableLocalAccounts">If local accounts should be
 /// disabled on the Managed Cluster.</param>
 /// <param name="httpProxyConfig">Configurations for provisioning the
 /// cluster with HTTP proxy servers.</param>
 /// <param name="securityProfile">Security profile for the managed
 /// cluster.</param>
 public ManagedCluster(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ManagedClusterSKU sku = default(ManagedClusterSKU), ExtendedLocation extendedLocation = default(ExtendedLocation), ManagedClusterIdentity identity = default(ManagedClusterIdentity), string provisioningState = default(string), PowerState powerState = default(PowerState), int?maxAgentPools = default(int?), string kubernetesVersion = default(string), string dnsPrefix = default(string), string fqdnSubdomain = default(string), string fqdn = default(string), string privateFQDN = default(string), string azurePortalFQDN = default(string), IList <ManagedClusterAgentPoolProfile> agentPoolProfiles = default(IList <ManagedClusterAgentPoolProfile>), ContainerServiceLinuxProfile linuxProfile = default(ContainerServiceLinuxProfile), ManagedClusterWindowsProfile windowsProfile = default(ManagedClusterWindowsProfile), ManagedClusterServicePrincipalProfile servicePrincipalProfile = default(ManagedClusterServicePrincipalProfile), IDictionary <string, ManagedClusterAddonProfile> addonProfiles = default(IDictionary <string, ManagedClusterAddonProfile>), ManagedClusterPodIdentityProfile podIdentityProfile = default(ManagedClusterPodIdentityProfile), string nodeResourceGroup = default(string), bool?enableRBAC = default(bool?), bool?enablePodSecurityPolicy = default(bool?), ContainerServiceNetworkProfile networkProfile = default(ContainerServiceNetworkProfile), ManagedClusterAADProfile aadProfile = default(ManagedClusterAADProfile), ManagedClusterAutoUpgradeProfile autoUpgradeProfile = default(ManagedClusterAutoUpgradeProfile), ManagedClusterPropertiesAutoScalerProfile autoScalerProfile = default(ManagedClusterPropertiesAutoScalerProfile), ManagedClusterAPIServerAccessProfile apiServerAccessProfile = default(ManagedClusterAPIServerAccessProfile), string diskEncryptionSetID = default(string), IDictionary <string, UserAssignedIdentity> identityProfile = default(IDictionary <string, UserAssignedIdentity>), IList <PrivateLinkResource> privateLinkResources = default(IList <PrivateLinkResource>), bool?disableLocalAccounts = default(bool?), ManagedClusterHTTPProxyConfig httpProxyConfig = default(ManagedClusterHTTPProxyConfig), ManagedClusterSecurityProfile securityProfile = default(ManagedClusterSecurityProfile))
     : base(location, id, name, type, tags)
 {
     Sku = sku;
     ExtendedLocation  = extendedLocation;
     Identity          = identity;
     ProvisioningState = provisioningState;
     PowerState        = powerState;
     MaxAgentPools     = maxAgentPools;
     KubernetesVersion = kubernetesVersion;
     DnsPrefix         = dnsPrefix;
     FqdnSubdomain     = fqdnSubdomain;
     Fqdn                    = fqdn;
     PrivateFQDN             = privateFQDN;
     AzurePortalFQDN         = azurePortalFQDN;
     AgentPoolProfiles       = agentPoolProfiles;
     LinuxProfile            = linuxProfile;
     WindowsProfile          = windowsProfile;
     ServicePrincipalProfile = servicePrincipalProfile;
     AddonProfiles           = addonProfiles;
     PodIdentityProfile      = podIdentityProfile;
     NodeResourceGroup       = nodeResourceGroup;
     EnableRBAC              = enableRBAC;
     EnablePodSecurityPolicy = enablePodSecurityPolicy;
     NetworkProfile          = networkProfile;
     AadProfile              = aadProfile;
     AutoUpgradeProfile      = autoUpgradeProfile;
     AutoScalerProfile       = autoScalerProfile;
     ApiServerAccessProfile  = apiServerAccessProfile;
     DiskEncryptionSetID     = diskEncryptionSetID;
     IdentityProfile         = identityProfile;
     PrivateLinkResources    = privateLinkResources;
     DisableLocalAccounts    = disableLocalAccounts;
     HttpProxyConfig         = httpProxyConfig;
     SecurityProfile         = securityProfile;
     CustomInit();
 }