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 AppServicePlanInner class.
 /// </summary>
 /// <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="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="maximumElasticWorkerCount">Maximum number of total
 /// workers allowed for this ElasticScaleEnabled App Service
 /// 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="freeOfferExpirationTime">The time when the server farm
 /// free offer expires.</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="isXenon">Obsolete: If Hyper-V container app service
 /// plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt;
 /// otherwise.</param>
 /// <param name="hyperV">If Hyper-V container 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>
 /// <param name="kind">Kind of resource.</param>
 public AppServicePlanInner(string location, string id = default(string), string name = 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), HostingEnvironmentProfile hostingEnvironmentProfile = default(HostingEnvironmentProfile), int?maximumNumberOfWorkers = default(int?), string geoRegion = default(string), bool?perSiteScaling = default(bool?), int?maximumElasticWorkerCount = default(int?), int?numberOfSites = default(int?), bool?isSpot = default(bool?), System.DateTime?spotExpirationTime = default(System.DateTime?), System.DateTime?freeOfferExpirationTime = default(System.DateTime?), string resourceGroup = default(string), bool?reserved = default(bool?), bool?isXenon = default(bool?), bool?hyperV = default(bool?), int?targetWorkerCount = default(int?), int?targetWorkerSizeId = default(int?), ProvisioningState?provisioningState = default(ProvisioningState?), SkuDescription sku = default(SkuDescription), string kind = default(string))
     : base(location, id, name, type, tags)
 {
     WorkerTierName            = workerTierName;
     Status                    = status;
     Subscription              = subscription;
     HostingEnvironmentProfile = hostingEnvironmentProfile;
     MaximumNumberOfWorkers    = maximumNumberOfWorkers;
     GeoRegion                 = geoRegion;
     PerSiteScaling            = perSiteScaling;
     MaximumElasticWorkerCount = maximumElasticWorkerCount;
     NumberOfSites             = numberOfSites;
     IsSpot                    = isSpot;
     SpotExpirationTime        = spotExpirationTime;
     FreeOfferExpirationTime   = freeOfferExpirationTime;
     ResourceGroup             = resourceGroup;
     Reserved                  = reserved;
     IsXenon                   = isXenon;
     HyperV                    = hyperV;
     TargetWorkerCount         = targetWorkerCount;
     TargetWorkerSizeId        = targetWorkerSizeId;
     ProvisioningState         = provisioningState;
     Sku  = sku;
     Kind = kind;
     CustomInit();
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the WorkerPoolResourceInner 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 WorkerPoolResourceInner(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();
 }
 /// <summary>
 /// Initializes a new instance of the AppServicePlanInner class.
 /// </summary>
 /// <param name="kind">The kind of the site</param>
 /// <param name="appServicePlanName">Name for the App Service
 /// plan.</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'</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="resourceGroup">Resource group of the App Service
 /// plan.</param>
 /// <param name="reserved">Reserved.</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 AppServicePlanInner(string kind = default(string), string location = default(string), string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string appServicePlanName = default(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?), 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, type, tags)
 {
     Kind = kind;
     AppServicePlanName        = appServicePlanName;
     WorkerTierName            = workerTierName;
     Status                    = status;
     Subscription              = subscription;
     AdminSiteName             = adminSiteName;
     HostingEnvironmentProfile = hostingEnvironmentProfile;
     MaximumNumberOfWorkers    = maximumNumberOfWorkers;
     GeoRegion                 = geoRegion;
     PerSiteScaling            = perSiteScaling;
     NumberOfSites             = numberOfSites;
     ResourceGroup             = resourceGroup;
     Reserved                  = reserved;
     TargetWorkerCount         = targetWorkerCount;
     TargetWorkerSizeId        = targetWorkerSizeId;
     ProvisioningState         = provisioningState;
     Sku = sku;
     CustomInit();
 }