Show / Hide Table of Contents

    Class AutoscaleSettingResourcePatch

    The autoscale setting object for patch operations.

    Inheritance
    Object
    AutoscaleSettingResourcePatch
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class AutoscaleSettingResourcePatch

    Constructors

    AutoscaleSettingResourcePatch()

    Initializes a new instance of the AutoscaleSettingResourcePatch class.

    Declaration
    public AutoscaleSettingResourcePatch ();

    AutoscaleSettingResourcePatch(IList<AutoscaleProfile>, IDictionary<String,String>, IList<AutoscaleNotification>, Nullable<Boolean>, String, String)

    Initializes a new instance of the AutoscaleSettingResourcePatch class.

    Declaration
    public AutoscaleSettingResourcePatch (System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.AutoscaleProfile> profiles, System.Collections.Generic.IDictionary<string,string> tags = null, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.AutoscaleNotification> notifications = null, Nullable<bool> enabled = null, string name = null, string targetResourceUri = null);
    Parameters
    IList<AutoscaleProfile> profiles

    the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.

    IDictionary<String,String> tags

    Resource tags

    IList<AutoscaleNotification> notifications

    the collection of notifications.

    Nullable<Boolean> enabled

    the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'.

    String name

    the name of the autoscale setting.

    String targetResourceUri

    the resource identifier of the resource that the autoscale setting should be added to.

    Properties

    Enabled

    Gets or sets the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.enabled")]
    public Nullable<bool> Enabled { get; set; }
    Property Value
    Nullable<Boolean>

    Name

    Gets or sets the name of the autoscale setting.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.name")]
    public string Name { get; set; }
    Property Value
    String

    Notifications

    Gets or sets the collection of notifications.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.notifications")]
    public System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.AutoscaleNotification> Notifications { get; set; }
    Property Value
    IList<AutoscaleNotification>

    Profiles

    Gets or sets the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.profiles")]
    public System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.AutoscaleProfile> Profiles { get; set; }
    Property Value
    IList<AutoscaleProfile>

    Tags

    Gets or sets resource tags

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="tags")]
    public System.Collections.Generic.IDictionary<string,string> Tags { get; set; }
    Property Value
    IDictionary<String,String>

    TargetResourceUri

    Gets or sets the resource identifier of the resource that the autoscale setting should be added to.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.targetResourceUri")]
    public string TargetResourceUri { get; set; }
    Property Value
    String

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net