예제 #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();
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the AppServicePlan class.
 /// </summary>
 /// <param name="location">Resource Location.</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="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>
 public AppServicePlan(string location, 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), 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))
     : base(location, id, name, kind, 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;
     CustomInit();
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the PremierAddOnRequest class.
 /// </summary>
 public PremierAddOnRequest(string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ArmPlan plan = default(ArmPlan), object properties = default(object), SkuDescription sku = default(SkuDescription))
 {
     Location   = location;
     Tags       = tags;
     Plan       = plan;
     Properties = properties;
     Sku        = sku;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the WorkerPool class.
 /// </summary>
 public WorkerPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), SkuDescription sku = default(SkuDescription), int?workerSizeId = default(int?), ComputeModeOptions?computeMode = default(ComputeModeOptions?), string workerSize = default(string), int?workerCount = default(int?), IList <string> instanceNames = default(IList <string>))
     : base(location, id, name, type, tags)
 {
     Sku           = sku;
     WorkerSizeId  = workerSizeId;
     ComputeMode   = computeMode;
     WorkerSize    = workerSize;
     WorkerCount   = workerCount;
     InstanceNames = instanceNames;
 }
 /// <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();
 }
 /// <summary>
 /// Initializes a new instance of the StaticSiteARMResource class.
 /// </summary>
 /// <param name="location">Resource Location.</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="defaultHostname">The default autogenerated hostname
 /// for the static site.</param>
 /// <param name="repositoryUrl">URL for the repository of the static
 /// site.</param>
 /// <param name="branch">The target branch in the repository.</param>
 /// <param name="customDomains">The custom domains associated with this
 /// static site.</param>
 /// <param name="repositoryToken">A user's github repository token.
 /// This is used to setup the Github Actions workflow file and API
 /// secrets.</param>
 /// <param name="buildProperties">Build properties to configure on the
 /// repository.</param>
 public StaticSiteARMResource(string location, 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 defaultHostname = default(string), string repositoryUrl = default(string), string branch = default(string), IList <string> customDomains = default(IList <string>), string repositoryToken = default(string), StaticSiteBuildProperties buildProperties = default(StaticSiteBuildProperties), SkuDescription sku = default(SkuDescription))
     : base(location, id, name, kind, type, tags)
 {
     DefaultHostname = defaultHostname;
     RepositoryUrl   = repositoryUrl;
     Branch          = branch;
     CustomDomains   = customDomains;
     RepositoryToken = repositoryToken;
     BuildProperties = buildProperties;
     Sku             = sku;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the
 /// ResponseMessageEnvelopeRemotePrivateEndpointConnection class.
 /// </summary>
 /// <param name="id">Resource Id. Typically ID is populated only for
 /// responses to GET requests. Caller is responsible for passing in
 /// this
 /// value for GET requests only.
 /// For example:
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupId}/providers/Microsoft.Web/sites/{sitename}</param>
 /// <param name="name">Name of resource.</param>
 /// <param name="type">Type of resource e.g
 /// "Microsoft.Web/sites".</param>
 /// <param name="location">Geographical region resource belongs to e.g.
 /// SouthCentralUS, SouthEastAsia.</param>
 /// <param name="tags">Tags associated with resource.</param>
 /// <param name="plan">Azure resource manager plan.</param>
 /// <param name="properties">Resource specific properties.</param>
 /// <param name="sku">SKU description of the resource.</param>
 /// <param name="status">Azure-AsyncOperation Status info.</param>
 /// <param name="error">Azure-AsyncOperation Error info.</param>
 /// <param name="identity">MSI resource</param>
 /// <param name="zones">Logical Availability Zones the service is
 /// hosted in</param>
 public ResponseMessageEnvelopeRemotePrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ArmPlan plan = default(ArmPlan), RemotePrivateEndpointConnection properties = default(RemotePrivateEndpointConnection), SkuDescription sku = default(SkuDescription), string status = default(string), ErrorEntity error = default(ErrorEntity), ManagedServiceIdentity identity = default(ManagedServiceIdentity), IList <string> zones = default(IList <string>))
 {
     Id         = id;
     Name       = name;
     Type       = type;
     Location   = location;
     Tags       = tags;
     Plan       = plan;
     Properties = properties;
     Sku        = sku;
     Status     = status;
     Error      = error;
     Identity   = identity;
     Zones      = zones;
     CustomInit();
 }
예제 #8
0
 /// <summary>
 /// Initializes a new instance of the ServerFarmWithRichSku class.
 /// </summary>
 public ServerFarmWithRichSku(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), SkuDescription sku = default(SkuDescription), string serverFarmWithRichSkuName = 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))
     : base(location, id, name, type, tags)
 {
     Sku = sku;
     ServerFarmWithRichSkuName = serverFarmWithRichSkuName;
     WorkerTierName            = workerTierName;
     Status                    = status;
     Subscription              = subscription;
     AdminSiteName             = adminSiteName;
     HostingEnvironmentProfile = hostingEnvironmentProfile;
     MaximumNumberOfWorkers    = maximumNumberOfWorkers;
     GeoRegion                 = geoRegion;
     PerSiteScaling            = perSiteScaling;
     NumberOfSites             = numberOfSites;
     ResourceGroup             = resourceGroup;
 }
예제 #9
0
 /// <summary>
 /// Initializes a new instance of the StaticSiteARMResource class.
 /// </summary>
 /// <param name="location">Resource Location.</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="defaultHostname">The default autogenerated hostname
 /// for the static site.</param>
 /// <param name="repositoryUrl">URL for the repository of the static
 /// site.</param>
 /// <param name="branch">The target branch in the repository.</param>
 /// <param name="customDomains">The custom domains associated with this
 /// static site.</param>
 /// <param name="repositoryToken">A user's github repository token.
 /// This is used to setup the Github Actions workflow file and API
 /// secrets.</param>
 /// <param name="buildProperties">Build properties to configure on the
 /// repository.</param>
 /// <param name="privateEndpointConnections">Private endpoint
 /// connections</param>
 /// <param name="stagingEnvironmentPolicy">State indicating whether
 /// staging environments are allowed or not allowed for a static web
 /// app. Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="allowConfigFileUpdates">&lt;code&gt;false&lt;/code&gt;
 /// if config file is locked for this static web app; otherwise,
 /// &lt;code&gt;true&lt;/code&gt;.</param>
 /// <param name="templateProperties">Template options for generating a
 /// new repository.</param>
 /// <param name="contentDistributionEndpoint">The content distribution
 /// endpoint for the static site.</param>
 /// <param name="keyVaultReferenceIdentity">Identity to use for Key
 /// Vault Reference authentication.</param>
 /// <param name="userProvidedFunctionApps">User provided function apps
 /// registered with the static site</param>
 /// <param name="provider">The provider that submitted the last
 /// deployment to the primary environment of the static site.</param>
 public StaticSiteARMResource(string location, 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 defaultHostname = default(string), string repositoryUrl = default(string), string branch = default(string), IList <string> customDomains = default(IList <string>), string repositoryToken = default(string), StaticSiteBuildProperties buildProperties = default(StaticSiteBuildProperties), IList <ResponseMessageEnvelopeRemotePrivateEndpointConnection> privateEndpointConnections = default(IList <ResponseMessageEnvelopeRemotePrivateEndpointConnection>), StagingEnvironmentPolicy?stagingEnvironmentPolicy = default(StagingEnvironmentPolicy?), bool?allowConfigFileUpdates = default(bool?), StaticSiteTemplateOptions templateProperties = default(StaticSiteTemplateOptions), string contentDistributionEndpoint = default(string), string keyVaultReferenceIdentity = default(string), IList <StaticSiteUserProvidedFunctionApp> userProvidedFunctionApps = default(IList <StaticSiteUserProvidedFunctionApp>), string provider = default(string), SkuDescription sku = default(SkuDescription), ManagedServiceIdentity identity = default(ManagedServiceIdentity))
     : base(location, id, name, kind, type, tags)
 {
     DefaultHostname             = defaultHostname;
     RepositoryUrl               = repositoryUrl;
     Branch                      = branch;
     CustomDomains               = customDomains;
     RepositoryToken             = repositoryToken;
     BuildProperties             = buildProperties;
     PrivateEndpointConnections  = privateEndpointConnections;
     StagingEnvironmentPolicy    = stagingEnvironmentPolicy;
     AllowConfigFileUpdates      = allowConfigFileUpdates;
     TemplateProperties          = templateProperties;
     ContentDistributionEndpoint = contentDistributionEndpoint;
     KeyVaultReferenceIdentity   = keyVaultReferenceIdentity;
     UserProvidedFunctionApps    = userProvidedFunctionApps;
     Provider                    = provider;
     Sku      = sku;
     Identity = identity;
     CustomInit();
 }