コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the ApplicationResourceUpdate class.
 /// </summary>
 /// <param name="id">Azure resource identifier.</param>
 /// <param name="name">Azure resource name.</param>
 /// <param name="type">Azure resource type.</param>
 /// <param name="location">Azure resource location.</param>
 /// <param name="tags">Azure resource tags.</param>
 /// <param name="etag">Azure resource etag.</param>
 /// <param name="typeVersion">The version of the application type as
 /// defined in the application manifest.</param>
 /// <param name="parameters">List of application parameters with
 /// overridden values from their default values specified in the
 /// application manifest.</param>
 /// <param name="upgradePolicy">Describes the policy for a monitored
 /// application upgrade.</param>
 /// <param name="minimumNodes">The minimum number of nodes where
 /// Service Fabric will reserve capacity for this application. Note
 /// that this does not mean that the services of this application will
 /// be placed on all of those nodes. If this property is set to zero,
 /// no capacity will be reserved. The value of this property cannot be
 /// more than the value of the MaximumNodes property.</param>
 /// <param name="maximumNodes">The maximum number of nodes where
 /// Service Fabric will reserve capacity for this application. Note
 /// that this does not mean that the services of this application will
 /// be placed on all of those nodes. By default, the value of this
 /// property is zero and it means that the services can be placed on
 /// any node.</param>
 /// <param name="removeApplicationCapacity">Remove the current
 /// application capacity settings.</param>
 /// <param name="metrics">List of application capacity metric
 /// description.</param>
 public ApplicationResourceUpdate(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 etag = default(string), string typeVersion = default(string), IDictionary <string, string> parameters = default(IDictionary <string, string>), ApplicationUpgradePolicy upgradePolicy = default(ApplicationUpgradePolicy), long?minimumNodes = default(long?), long?maximumNodes = default(long?), bool?removeApplicationCapacity = default(bool?), IList <ApplicationMetricDescription> metrics = default(IList <ApplicationMetricDescription>))
     : base(id, name, type, location, tags, etag)
 {
     TypeVersion               = typeVersion;
     Parameters                = parameters;
     UpgradePolicy             = upgradePolicy;
     MinimumNodes              = minimumNodes;
     MaximumNodes              = maximumNodes;
     RemoveApplicationCapacity = removeApplicationCapacity;
     Metrics = metrics;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the ApplicationResource class.
 /// </summary>
 /// <param name="id">Azure resource identifier.</param>
 /// <param name="name">Azure resource name.</param>
 /// <param name="type">Azure resource type.</param>
 /// <param name="location">It will be deprecated in New API, resource
 /// location depends on the parent resource.</param>
 /// <param name="tags">Azure resource tags.</param>
 /// <param name="etag">Azure resource etag.</param>
 /// <param name="identity">Describes the managed identities for an
 /// Azure resource.</param>
 /// <param name="typeVersion">The version of the application type as
 /// defined in the application manifest.</param>
 /// <param name="parameters">List of application parameters with
 /// overridden values from their default values specified in the
 /// application manifest.</param>
 /// <param name="upgradePolicy">Describes the policy for a monitored
 /// application upgrade.</param>
 /// <param name="minimumNodes">The minimum number of nodes where
 /// Service Fabric will reserve capacity for this application. Note
 /// that this does not mean that the services of this application will
 /// be placed on all of those nodes. If this property is set to zero,
 /// no capacity will be reserved. The value of this property cannot be
 /// more than the value of the MaximumNodes property.</param>
 /// <param name="maximumNodes">The maximum number of nodes where
 /// Service Fabric will reserve capacity for this application. Note
 /// that this does not mean that the services of this application will
 /// be placed on all of those nodes. By default, the value of this
 /// property is zero and it means that the services can be placed on
 /// any node.</param>
 /// <param name="removeApplicationCapacity">Remove the current
 /// application capacity settings.</param>
 /// <param name="metrics">List of application capacity metric
 /// description.</param>
 /// <param name="managedIdentities">List of user assigned identities
 /// for the application, each mapped to a friendly name.</param>
 /// <param name="provisioningState">The current deployment or
 /// provisioning state, which only appears in the response</param>
 /// <param name="typeName">The application type name as defined in the
 /// application manifest.</param>
 public ApplicationResource(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 etag = default(string), ManagedIdentity identity = default(ManagedIdentity), string typeVersion = default(string), IDictionary <string, string> parameters = default(IDictionary <string, string>), ApplicationUpgradePolicy upgradePolicy = default(ApplicationUpgradePolicy), long?minimumNodes = default(long?), long?maximumNodes = default(long?), bool?removeApplicationCapacity = default(bool?), IList <ApplicationMetricDescription> metrics = default(IList <ApplicationMetricDescription>), IList <ApplicationUserAssignedIdentity> managedIdentities = default(IList <ApplicationUserAssignedIdentity>), string provisioningState = default(string), string typeName = default(string))
     : base(id, name, type, location, tags, etag)
 {
     Identity                  = identity;
     TypeVersion               = typeVersion;
     Parameters                = parameters;
     UpgradePolicy             = upgradePolicy;
     MinimumNodes              = minimumNodes;
     MaximumNodes              = maximumNodes;
     RemoveApplicationCapacity = removeApplicationCapacity;
     Metrics           = metrics;
     ManagedIdentities = managedIdentities;
     ProvisioningState = provisioningState;
     TypeName          = typeName;
     CustomInit();
 }