コード例 #1
0
 private IDictionary <string, ManagedClusterAddonProfile> CreateAddonsProfiles()
 {
     if (this.IsParameterBound(c => c.AddOnNameToBeEnabled))
     {
         Dictionary <string, ManagedClusterAddonProfile> addonProfiles = new Dictionary <string, ManagedClusterAddonProfile>();
         return(AddonUtils.EnableAddonsProfile(addonProfiles, AddOnNameToBeEnabled, WorkspaceResourceId, SubnetName));
     }
     else
     {
         return(null);
     }
 }
コード例 #2
0
 protected override IDictionary <string, ManagedClusterAddonProfile> UpdateAddonsProfile(IDictionary <string, ManagedClusterAddonProfile> addonProfiles)
 {
     return(AddonUtils.EnableAddonsProfile(addonProfiles, Name, nameof(Name), WorkspaceResourceId, nameof(WorkspaceResourceId), SubnetName, nameof(SubnetName)));
 }