Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the Profile class.
 /// </summary>
 public Profile(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string profileStatus = default(string), string trafficRoutingMethod = default(string), DnsConfig dnsConfig = default(DnsConfig), MonitorConfig monitorConfig = default(MonitorConfig), IList <Endpoint> endpoints = default(IList <Endpoint>))
     : base(id, name, type, location, tags)
 {
     ProfileStatus        = profileStatus;
     TrafficRoutingMethod = trafficRoutingMethod;
     DnsConfig            = dnsConfig;
     MonitorConfig        = monitorConfig;
     Endpoints            = endpoints;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the Profile class.
 /// </summary>
 /// <param name="id">Fully qualified resource Id for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. Ex-
 /// Microsoft.Network/trafficmanagerProfiles.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="location">The Azure Region where the resource
 /// lives</param>
 /// <param name="profileStatus">The status of the Traffic Manager
 /// profile. Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="trafficRoutingMethod">The traffic routing method of
 /// the Traffic Manager profile. Possible values include:
 /// 'Performance', 'Priority', 'Weighted', 'Geographic', 'MultiValue',
 /// 'Subnet'</param>
 /// <param name="dnsConfig">The DNS settings of the Traffic Manager
 /// profile.</param>
 /// <param name="monitorConfig">The endpoint monitoring settings of the
 /// Traffic Manager profile.</param>
 /// <param name="endpoints">The list of endpoints in the Traffic
 /// Manager profile.</param>
 /// <param name="trafficViewEnrollmentStatus">Indicates whether Traffic
 /// View is 'Enabled' or 'Disabled' for the Traffic Manager profile.
 /// Null, indicates 'Disabled'. Enabling this feature will increase the
 /// cost of the Traffic Manage profile. Possible values include:
 /// 'Enabled', 'Disabled'</param>
 /// <param name="maxReturn">Maximum number of endpoints to be returned
 /// for MultiValue routing type.</param>
 public Profile(string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string location = default(string), ProfileStatus?profileStatus = default(ProfileStatus?), TrafficRoutingMethod?trafficRoutingMethod = default(TrafficRoutingMethod?), DnsConfig dnsConfig = default(DnsConfig), MonitorConfig monitorConfig = default(MonitorConfig), IList <Endpoint> endpoints = default(IList <Endpoint>), TrafficViewEnrollmentStatus?trafficViewEnrollmentStatus = default(TrafficViewEnrollmentStatus?), long?maxReturn = default(long?))
     : base(id, name, type, tags, location)
 {
     ProfileStatus               = profileStatus;
     TrafficRoutingMethod        = trafficRoutingMethod;
     DnsConfig                   = dnsConfig;
     MonitorConfig               = monitorConfig;
     Endpoints                   = endpoints;
     TrafficViewEnrollmentStatus = trafficViewEnrollmentStatus;
     MaxReturn                   = maxReturn;
     CustomInit();
 }
 public static Profile BuildProfile(string id, string name, string type, string location, Dictionary<string, string> tags, string profileStatus, string trafficRoutingMethod, DnsConfig dnsConfig, MonitorConfig monitorConfig, Endpoint[] endpoints)
 {
     return new Microsoft.Azure.Management.TrafficManager.Models.Profile
     {
         Id = id,
         Name = name,
         Type = type,
         Location = location,
         Tags = tags,
         Properties = new Microsoft.Azure.Management.TrafficManager.Models.ProfileProperties
         {
             ProfileStatus = profileStatus,
             TrafficRoutingMethod = trafficRoutingMethod,
             DnsConfig = dnsConfig,
             MonitorConfig = monitorConfig,
             Endpoints = endpoints
         }
     };
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the ProfileProperties class with
 /// required arguments.
 /// </summary>
 public ProfileProperties(string trafficRoutingMethod, DnsConfig dnsConfig, MonitorConfig monitorConfig)
     : this()
 {
     if (trafficRoutingMethod == null)
     {
         throw new ArgumentNullException("trafficRoutingMethod");
     }
     if (dnsConfig == null)
     {
         throw new ArgumentNullException("dnsConfig");
     }
     if (monitorConfig == null)
     {
         throw new ArgumentNullException("monitorConfig");
     }
     this.TrafficRoutingMethod = trafficRoutingMethod;
     this.DnsConfig            = dnsConfig;
     this.MonitorConfig        = monitorConfig;
 }
 /// <summary>
 /// Initializes a new instance of the ProfileProperties class with
 /// required arguments.
 /// </summary>
 public ProfileProperties(string trafficRoutingMethod, DnsConfig dnsConfig, MonitorConfig monitorConfig)
     : this()
 {
     if (trafficRoutingMethod == null)
     {
         throw new ArgumentNullException("trafficRoutingMethod");
     }
     if (dnsConfig == null)
     {
         throw new ArgumentNullException("dnsConfig");
     }
     if (monitorConfig == null)
     {
         throw new ArgumentNullException("monitorConfig");
     }
     this.TrafficRoutingMethod = trafficRoutingMethod;
     this.DnsConfig = dnsConfig;
     this.MonitorConfig = monitorConfig;
 }