Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the SkuInfo class.
 /// </summary>
 /// <param name="resourceType">Resource type that this SKU applies
 /// to.</param>
 /// <param name="sku">Name and tier of the SKU.</param>
 /// <param name="capacity">Min, max, and default scale values of the
 /// SKU.</param>
 public SkuInfo(string resourceType = default(string), SkuDescription sku = default(SkuDescription), SkuCapacity capacity = default(SkuCapacity))
 {
     ResourceType = resourceType;
     Sku          = sku;
     Capacity     = capacity;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the WorkerPoolResource class.
 /// </summary>
 /// <param name="id">Resource Id.</param>
 /// <param name="name">Resource Name.</param>
 /// <param name="kind">Kind of resource.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="workerSizeId">Worker size ID for referencing this
 /// worker pool.</param>
 /// <param name="computeMode">Shared or dedicated app hosting. Possible
 /// values include: 'Shared', 'Dedicated', 'Dynamic'</param>
 /// <param name="workerSize">VM size of the worker pool
 /// instances.</param>
 /// <param name="workerCount">Number of instances in the worker
 /// pool.</param>
 /// <param name="instanceNames">Names of all instances in the worker
 /// pool (read only).</param>
 public WorkerPoolResource(string id = default(string), string name = default(string), string kind = default(string), string type = default(string), int?workerSizeId = default(int?), ComputeModeOptions?computeMode = default(ComputeModeOptions?), string workerSize = default(string), int?workerCount = default(int?), IList <string> instanceNames = default(IList <string>), SkuDescription sku = default(SkuDescription))
     : base(id, name, kind, type)
 {
     WorkerSizeId  = workerSizeId;
     ComputeMode   = computeMode;
     WorkerSize    = workerSize;
     WorkerCount   = workerCount;
     InstanceNames = instanceNames;
     Sku           = sku;
     CustomInit();
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the AppServicePlan class.
 /// </summary>
 /// <param name="location">Resource Location.</param>
 /// <param name="appServicePlanName">Name for the App Service
 /// plan.</param>
 /// <param name="id">Resource Id.</param>
 /// <param name="name">Resource Name.</param>
 /// <param name="kind">Kind of resource.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="workerTierName">Target worker tier assigned to the App
 /// Service plan.</param>
 /// <param name="status">App Service plan status. Possible values
 /// include: 'Ready', 'Pending', 'Creating'</param>
 /// <param name="subscription">App Service plan subscription.</param>
 /// <param name="adminSiteName">App Service plan administration
 /// site.</param>
 /// <param name="hostingEnvironmentProfile">Specification for the App
 /// Service Environment to use for the App Service plan.</param>
 /// <param name="maximumNumberOfWorkers">Maximum number of instances
 /// that can be assigned to this App Service plan.</param>
 /// <param name="geoRegion">Geographical location for the App Service
 /// plan.</param>
 /// <param name="perSiteScaling">If &lt;code&gt;true&lt;/code&gt;, apps
 /// assigned to this App Service plan can be scaled independently.
 /// If &lt;code&gt;false&lt;/code&gt;, apps assigned to this App
 /// Service plan will scale to all instances of the plan.</param>
 /// <param name="numberOfSites">Number of apps assigned to this App
 /// Service plan.</param>
 /// <param name="isSpot">If &lt;code&gt;true&lt;/code&gt;, this App
 /// Service Plan owns spot instances.</param>
 /// <param name="spotExpirationTime">The time when the server farm
 /// expires. Valid only if it is a spot server farm.</param>
 /// <param name="resourceGroup">Resource group of the App Service
 /// plan.</param>
 /// <param name="reserved">If Linux app service plan
 /// &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt;
 /// otherwise.</param>
 /// <param name="targetWorkerCount">Scaling worker count.</param>
 /// <param name="targetWorkerSizeId">Scaling worker size ID.</param>
 /// <param name="provisioningState">Provisioning state of the App
 /// Service Environment. Possible values include: 'Succeeded',
 /// 'Failed', 'Canceled', 'InProgress', 'Deleting'</param>
 public AppServicePlan(string location, string appServicePlanName, string id = default(string), string name = default(string), string kind = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string workerTierName = default(string), StatusOptions?status = default(StatusOptions?), string subscription = default(string), string adminSiteName = default(string), HostingEnvironmentProfile hostingEnvironmentProfile = default(HostingEnvironmentProfile), int?maximumNumberOfWorkers = default(int?), string geoRegion = default(string), bool?perSiteScaling = default(bool?), int?numberOfSites = default(int?), bool?isSpot = default(bool?), System.DateTime?spotExpirationTime = default(System.DateTime?), string resourceGroup = default(string), bool?reserved = default(bool?), int?targetWorkerCount = default(int?), int?targetWorkerSizeId = default(int?), ProvisioningState?provisioningState = default(ProvisioningState?), SkuDescription sku = default(SkuDescription))
     : base(location, id, name, kind, type, tags)
 {
     AppServicePlanName        = appServicePlanName;
     WorkerTierName            = workerTierName;
     Status                    = status;
     Subscription              = subscription;
     AdminSiteName             = adminSiteName;
     HostingEnvironmentProfile = hostingEnvironmentProfile;
     MaximumNumberOfWorkers    = maximumNumberOfWorkers;
     GeoRegion                 = geoRegion;
     PerSiteScaling            = perSiteScaling;
     NumberOfSites             = numberOfSites;
     IsSpot                    = isSpot;
     SpotExpirationTime        = spotExpirationTime;
     ResourceGroup             = resourceGroup;
     Reserved                  = reserved;
     TargetWorkerCount         = targetWorkerCount;
     TargetWorkerSizeId        = targetWorkerSizeId;
     ProvisioningState         = provisioningState;
     Sku = sku;
     CustomInit();
 }