/// <summary>
 /// Initializes a new instance of the ServiceUnitProperties class.
 /// </summary>
 /// <param name="targetResourceGroup">The Azure Resource Group to which
 /// the resources in the service unit belong to or should be deployed
 /// to.</param>
 /// <param name="deploymentMode">Describes the type of ARM deployment
 /// to be performed on the resource. Possible values include:
 /// 'Incremental', 'Complete'</param>
 /// <param name="artifacts">The artifacts for the service unit.</param>
 public ServiceUnitProperties(string targetResourceGroup, DeploymentMode deploymentMode, ServiceUnitArtifacts artifacts = default(ServiceUnitArtifacts))
 {
     TargetResourceGroup = targetResourceGroup;
     DeploymentMode      = deploymentMode;
     Artifacts           = artifacts;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the ServiceUnitResource class.
 /// </summary>
 /// <param name="location">The geo-location where the resource
 /// lives</param>
 /// <param name="targetResourceGroup">The Azure Resource Group to which
 /// the resources in the service unit belong to or should be deployed
 /// to.</param>
 /// <param name="deploymentMode">Describes the type of ARM deployment
 /// to be performed on the resource. Possible values include:
 /// 'Incremental', 'Complete'</param>
 /// <param name="id">Fully qualified resource Id for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. Ex-
 /// Microsoft.Compute/virtualMachines or
 /// Microsoft.Storage/storageAccounts.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="artifacts">The artifacts for the service unit.</param>
 public ServiceUnitResource(string location, string targetResourceGroup, DeploymentMode deploymentMode, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ServiceUnitArtifacts artifacts = default(ServiceUnitArtifacts))
     : base(location, id, name, type, tags)
 {
     TargetResourceGroup = targetResourceGroup;
     DeploymentMode      = deploymentMode;
     Artifacts           = artifacts;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ServiceUnit class.
 /// </summary>
 /// <param name="targetResourceGroup">The Azure Resource Group to which
 /// the resources in the service unit belong to or should be deployed
 /// to.</param>
 /// <param name="deploymentMode">Describes the type of ARM deployment
 /// to be performed on the resource. Possible values include:
 /// 'Incremental', 'Complete'</param>
 /// <param name="artifacts">The artifacts for the service unit.</param>
 /// <param name="name">Name of the service unit.</param>
 /// <param name="steps">Detailed step information, if present.</param>
 public ServiceUnit(string targetResourceGroup, DeploymentMode deploymentMode, ServiceUnitArtifacts artifacts = default(ServiceUnitArtifacts), string name = default(string), IList <RolloutStep> steps = default(IList <RolloutStep>))
     : base(targetResourceGroup, deploymentMode, artifacts)
 {
     Name  = name;
     Steps = steps;
     CustomInit();
 }