/// <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();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the CertificatePatchResourceInner
 /// class.
 /// </summary>
 /// <param name="password">Certificate password.</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="friendlyName">Friendly name of the
 /// certificate.</param>
 /// <param name="subjectName">Subject name of the certificate.</param>
 /// <param name="hostNames">Host names the certificate applies
 /// to.</param>
 /// <param name="pfxBlob">Pfx blob.</param>
 /// <param name="siteName">App name.</param>
 /// <param name="selfLink">Self link.</param>
 /// <param name="issuer">Certificate issuer.</param>
 /// <param name="issueDate">Certificate issue Date.</param>
 /// <param name="expirationDate">Certificate expriration date.</param>
 /// <param name="thumbprint">Certificate thumbprint.</param>
 /// <param name="valid">Is the certificate valid?.</param>
 /// <param name="cerBlob">Raw bytes of .cer file</param>
 /// <param name="publicKeyHash">Public key hash.</param>
 /// <param name="hostingEnvironmentProfile">Specification for the App
 /// Service Environment to use for the certificate.</param>
 /// <param name="keyVaultId">Key Vault Csm resource Id.</param>
 /// <param name="keyVaultSecretName">Key Vault secret name.</param>
 /// <param name="keyVaultSecretStatus">Status of the Key Vault secret.
 /// Possible values include: 'Initialized',
 /// 'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed',
 /// 'OperationNotPermittedOnKeyVault',
 /// 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist',
 /// 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey',
 /// 'Unknown'</param>
 /// <param name="geoRegion">Region of the certificate.</param>
 /// <param name="serverFarmId">Resource ID of the associated App
 /// Service plan, formatted as:
 /// "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".</param>
 public CertificatePatchResourceInner(string password, string id = default(string), string name = default(string), string kind = default(string), string type = default(string), string friendlyName = default(string), string subjectName = default(string), IList <string> hostNames = default(IList <string>), byte[] pfxBlob = default(byte[]), string siteName = default(string), string selfLink = default(string), string issuer = default(string), System.DateTime?issueDate = default(System.DateTime?), System.DateTime?expirationDate = default(System.DateTime?), string thumbprint = default(string), bool?valid = default(bool?), byte[] cerBlob = default(byte[]), string publicKeyHash = default(string), HostingEnvironmentProfile hostingEnvironmentProfile = default(HostingEnvironmentProfile), string keyVaultId = default(string), string keyVaultSecretName = default(string), KeyVaultSecretStatus?keyVaultSecretStatus = default(KeyVaultSecretStatus?), string geoRegion = default(string), string serverFarmId = default(string))
     : base(id, name, kind, type)
 {
     FriendlyName              = friendlyName;
     SubjectName               = subjectName;
     HostNames                 = hostNames;
     PfxBlob                   = pfxBlob;
     SiteName                  = siteName;
     SelfLink                  = selfLink;
     Issuer                    = issuer;
     IssueDate                 = issueDate;
     ExpirationDate            = expirationDate;
     Password                  = password;
     Thumbprint                = thumbprint;
     Valid                     = valid;
     CerBlob                   = cerBlob;
     PublicKeyHash             = publicKeyHash;
     HostingEnvironmentProfile = hostingEnvironmentProfile;
     KeyVaultId                = keyVaultId;
     KeyVaultSecretName        = keyVaultSecretName;
     KeyVaultSecretStatus      = keyVaultSecretStatus;
     GeoRegion                 = geoRegion;
     ServerFarmId              = serverFarmId;
     CustomInit();
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the SiteInner class.
 /// </summary>
 /// <param name="state">Current state of the app.</param>
 /// <param name="hostNames">Hostnames associated with the app.</param>
 /// <param name="repositorySiteName">Name of the repository
 /// site.</param>
 /// <param name="usageState">State indicating whether the app has
 /// exceeded its quota usage. Read-only. Possible values include:
 /// 'Normal', 'Exceeded'</param>
 /// <param name="enabled">&lt;code&gt;true&lt;/code&gt; if the app is
 /// enabled; otherwise, &lt;code&gt;false&lt;/code&gt;. Setting this
 /// value to false disables the app (takes the app offline).</param>
 /// <param name="enabledHostNames">Enabled hostnames for the
 /// app.Hostnames need to be assigned (see HostNames) AND enabled.
 /// Otherwise,
 /// the app is not served on those hostnames.</param>
 /// <param name="availabilityState">Management information availability
 /// state for the app. Possible values include: 'Normal', 'Limited',
 /// 'DisasterRecoveryMode'</param>
 /// <param name="hostNameSslStates">Hostname SSL states are used to
 /// manage the SSL bindings for app's hostnames.</param>
 /// <param name="serverFarmId">Resource ID of the associated App
 /// Service plan, formatted as:
 /// "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".</param>
 /// <param name="reserved">&lt;code&gt;true&lt;/code&gt; if reserved;
 /// otherwise, &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="isXenon">Obsolete: Hyper-V sandbox.</param>
 /// <param name="hyperV">Hyper-V sandbox.</param>
 /// <param name="lastModifiedTimeUtc">Last time the app was modified,
 /// in UTC. Read-only.</param>
 /// <param name="siteConfig">Configuration of the app.</param>
 /// <param name="trafficManagerHostNames">Azure Traffic Manager
 /// hostnames associated with the app. Read-only.</param>
 /// <param name="scmSiteAlsoStopped">&lt;code&gt;true&lt;/code&gt; to
 /// stop SCM (KUDU) site when the app is stopped; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;. The default is
 /// &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="targetSwapSlot">Specifies which deployment slot this
 /// app will swap into. Read-only.</param>
 /// <param name="hostingEnvironmentProfile">App Service Environment to
 /// use for the app.</param>
 /// <param name="clientAffinityEnabled">&lt;code&gt;true&lt;/code&gt;
 /// to enable client affinity; &lt;code&gt;false&lt;/code&gt; to stop
 /// sending session affinity cookies, which route client requests in
 /// the same session to the same instance. Default is
 /// &lt;code&gt;true&lt;/code&gt;.</param>
 /// <param name="clientCertEnabled">&lt;code&gt;true&lt;/code&gt; to
 /// enable client certificate authentication (TLS mutual
 /// authentication); otherwise, &lt;code&gt;false&lt;/code&gt;. Default
 /// is &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="clientCertExclusionPaths">client certificate
 /// authentication comma-separated exclusion paths</param>
 /// <param name="hostNamesDisabled">&lt;code&gt;true&lt;/code&gt; to
 /// disable the public hostnames of the app; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;.
 /// If &lt;code&gt;true&lt;/code&gt;, the app is only accessible via
 /// API management process.</param>
 /// <param name="outboundIpAddresses">List of IP addresses that the app
 /// uses for outbound connections (e.g. database access). Includes VIPs
 /// from tenants that site can be hosted with current settings.
 /// Read-only.</param>
 /// <param name="possibleOutboundIpAddresses">List of IP addresses that
 /// the app uses for outbound connections (e.g. database access).
 /// Includes VIPs from all tenants. Read-only.</param>
 /// <param name="containerSize">Size of the function container.</param>
 /// <param name="dailyMemoryTimeQuota">Maximum allowed daily
 /// memory-time quota (applicable on dynamic apps only).</param>
 /// <param name="suspendedTill">App suspended till in case memory-time
 /// quota is exceeded.</param>
 /// <param name="maxNumberOfWorkers">Maximum number of workers.
 /// This only applies to Functions container.</param>
 /// <param name="cloningInfo">If specified during app creation, the app
 /// is cloned from a source app.</param>
 /// <param name="resourceGroup">Name of the resource group the app
 /// belongs to. Read-only.</param>
 /// <param name="isDefaultContainer">&lt;code&gt;true&lt;/code&gt; if
 /// the app is a default container; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="defaultHostName">Default hostname of the app.
 /// Read-only.</param>
 /// <param name="slotSwapStatus">Status of the last deployment slot
 /// swap operation.</param>
 /// <param name="httpsOnly">HttpsOnly: configures a web site to accept
 /// only https requests. Issues redirect for
 /// http requests</param>
 /// <param name="redundancyMode">Site redundancy mode. Possible values
 /// include: 'None', 'Manual', 'Failover', 'ActiveActive',
 /// 'GeoRedundant'</param>
 /// <param name="inProgressOperationId">Specifies an operation id if
 /// this site has a pending operation.</param>
 /// <param name="geoDistributions">GeoDistributions for this
 /// site</param>
 /// <param name="kind">Kind of resource.</param>
 public SiteInner(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string state = default(string), IList <string> hostNames = default(IList <string>), string repositorySiteName = default(string), UsageState?usageState = default(UsageState?), bool?enabled = default(bool?), IList <string> enabledHostNames = default(IList <string>), SiteAvailabilityState?availabilityState = default(SiteAvailabilityState?), IList <HostNameSslState> hostNameSslStates = default(IList <HostNameSslState>), string serverFarmId = default(string), bool?reserved = default(bool?), bool?isXenon = default(bool?), bool?hyperV = default(bool?), System.DateTime?lastModifiedTimeUtc = default(System.DateTime?), SiteConfig siteConfig = default(SiteConfig), IList <string> trafficManagerHostNames = default(IList <string>), bool?scmSiteAlsoStopped = default(bool?), string targetSwapSlot = default(string), HostingEnvironmentProfile hostingEnvironmentProfile = default(HostingEnvironmentProfile), bool?clientAffinityEnabled = default(bool?), bool?clientCertEnabled = default(bool?), string clientCertExclusionPaths = default(string), bool?hostNamesDisabled = default(bool?), string outboundIpAddresses = default(string), string possibleOutboundIpAddresses = default(string), int?containerSize = default(int?), int?dailyMemoryTimeQuota = default(int?), System.DateTime?suspendedTill = default(System.DateTime?), int?maxNumberOfWorkers = default(int?), CloningInfo cloningInfo = default(CloningInfo), string resourceGroup = default(string), bool?isDefaultContainer = default(bool?), string defaultHostName = default(string), SlotSwapStatus slotSwapStatus = default(SlotSwapStatus), bool?httpsOnly = default(bool?), RedundancyMode?redundancyMode = default(RedundancyMode?), System.Guid?inProgressOperationId = default(System.Guid?), IList <GeoDistribution> geoDistributions = default(IList <GeoDistribution>), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string kind = default(string))
     : base(location, id, name, type, tags)
 {
     State                       = state;
     HostNames                   = hostNames;
     RepositorySiteName          = repositorySiteName;
     UsageState                  = usageState;
     Enabled                     = enabled;
     EnabledHostNames            = enabledHostNames;
     AvailabilityState           = availabilityState;
     HostNameSslStates           = hostNameSslStates;
     ServerFarmId                = serverFarmId;
     Reserved                    = reserved;
     IsXenon                     = isXenon;
     HyperV                      = hyperV;
     LastModifiedTimeUtc         = lastModifiedTimeUtc;
     SiteConfig                  = siteConfig;
     TrafficManagerHostNames     = trafficManagerHostNames;
     ScmSiteAlsoStopped          = scmSiteAlsoStopped;
     TargetSwapSlot              = targetSwapSlot;
     HostingEnvironmentProfile   = hostingEnvironmentProfile;
     ClientAffinityEnabled       = clientAffinityEnabled;
     ClientCertEnabled           = clientCertEnabled;
     ClientCertExclusionPaths    = clientCertExclusionPaths;
     HostNamesDisabled           = hostNamesDisabled;
     OutboundIpAddresses         = outboundIpAddresses;
     PossibleOutboundIpAddresses = possibleOutboundIpAddresses;
     ContainerSize               = containerSize;
     DailyMemoryTimeQuota        = dailyMemoryTimeQuota;
     SuspendedTill               = suspendedTill;
     MaxNumberOfWorkers          = maxNumberOfWorkers;
     CloningInfo                 = cloningInfo;
     ResourceGroup               = resourceGroup;
     IsDefaultContainer          = isDefaultContainer;
     DefaultHostName             = defaultHostName;
     SlotSwapStatus              = slotSwapStatus;
     HttpsOnly                   = httpsOnly;
     RedundancyMode              = redundancyMode;
     InProgressOperationId       = inProgressOperationId;
     GeoDistributions            = geoDistributions;
     Identity                    = identity;
     Kind = kind;
     CustomInit();
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the AppServicePlanPatchResourceInner
 /// class.
 /// </summary>
 /// <param name="appServicePlanPatchResourceName">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="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 AppServicePlanPatchResourceInner(string appServicePlanPatchResourceName, string id = default(string), string name = default(string), string kind = default(string), string type = 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?), 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?))
     : base(id, name, kind, type)
 {
     AppServicePlanPatchResourceName = appServicePlanPatchResourceName;
     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;
     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();
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the DeletedSiteInner class.
 /// </summary>
 /// <param name="deletedTimestamp">Time in UTC when the app was
 /// deleted.</param>
 /// <param name="state">Current state of the app.</param>
 /// <param name="hostNames">Hostnames associated with the app.</param>
 /// <param name="repositorySiteName">Name of the repository
 /// site.</param>
 /// <param name="usageState">State indicating whether the app has
 /// exceeded its quota usage. Read-only. Possible values include:
 /// 'Normal', 'Exceeded'</param>
 /// <param name="enabled">&lt;code&gt;true&lt;/code&gt; if the app is
 /// enabled; otherwise, &lt;code&gt;false&lt;/code&gt;. Setting this
 /// value to false disables the app (takes the app offline).</param>
 /// <param name="enabledHostNames">Enabled hostnames for the
 /// app.Hostnames need to be assigned (see HostNames) AND enabled.
 /// Otherwise,
 /// the app is not served on those hostnames.</param>
 /// <param name="availabilityState">Management information availability
 /// state for the app. Possible values include: 'Normal', 'Limited',
 /// 'DisasterRecoveryMode'</param>
 /// <param name="hostNameSslStates">Hostname SSL states are used to
 /// manage the SSL bindings for app's hostnames.</param>
 /// <param name="serverFarmId">Resource ID of the associated App
 /// Service plan, formatted as:
 /// "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".</param>
 /// <param name="reserved">&lt;code&gt;true&lt;/code&gt; if reserved;
 /// otherwise, &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="lastModifiedTimeUtc">Last time the app was modified,
 /// in UTC. Read-only.</param>
 /// <param name="siteConfig">Configuration of the app.</param>
 /// <param name="trafficManagerHostNames">Azure Traffic Manager
 /// hostnames associated with the app. Read-only.</param>
 /// <param name="premiumAppDeployed">Indicates whether app is deployed
 /// as a premium app.</param>
 /// <param name="scmSiteAlsoStopped">&lt;code&gt;true&lt;/code&gt; to
 /// stop SCM (KUDU) site when the app is stopped; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;. The default is
 /// &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="targetSwapSlot">Specifies which deployment slot this
 /// app will swap into. Read-only.</param>
 /// <param name="hostingEnvironmentProfile">App Service Environment to
 /// use for the app.</param>
 /// <param name="microService">Micro services like apps, logic
 /// apps.</param>
 /// <param name="gatewaySiteName">Name of gateway app associated with
 /// the app.</param>
 /// <param name="clientAffinityEnabled">&lt;code&gt;true&lt;/code&gt;
 /// to enable client affinity; &lt;code&gt;false&lt;/code&gt; to stop
 /// sending session affinity cookies, which route client requests in
 /// the same session to the same instance. Default is
 /// &lt;code&gt;true&lt;/code&gt;.</param>
 /// <param name="clientCertEnabled">&lt;code&gt;true&lt;/code&gt; to
 /// enable client certificate authentication (TLS mutual
 /// authentication); otherwise, &lt;code&gt;false&lt;/code&gt;. Default
 /// is &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="hostNamesDisabled">&lt;code&gt;true&lt;/code&gt; to
 /// disable the public hostnames of the app; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;.
 /// If &lt;code&gt;true&lt;/code&gt;, the app is only accessible via
 /// API management process.</param>
 /// <param name="outboundIpAddresses">List of IP addresses that the app
 /// uses for outbound connections (e.g. database access).
 /// Read-only.</param>
 /// <param name="containerSize">Size of the function container.</param>
 /// <param name="dailyMemoryTimeQuota">Maximum allowed daily
 /// memory-time quota (applicable on dynamic apps only).</param>
 /// <param name="suspendedTill">App suspended till in case memory-time
 /// quota is exceeded.</param>
 /// <param name="maxNumberOfWorkers">Maximum number of workers.
 /// This only applies to Functions container.</param>
 /// <param name="cloningInfo">If specified during app creation, the app
 /// is cloned from a source app.</param>
 /// <param name="resourceGroup">Name of the resource group the app
 /// belongs to. Read-only.</param>
 /// <param name="isDefaultContainer">&lt;code&gt;true&lt;/code&gt; if
 /// the app is a default container; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="defaultHostName">Default hostname of the app.
 /// Read-only.</param>
 /// <param name="slotSwapStatus">Status of the last deployment slot
 /// swap operation.</param>
 public DeletedSiteInner(string location = default(string), string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), System.DateTime?deletedTimestamp = default(System.DateTime?), string state = default(string), IList <string> hostNames = default(IList <string>), string repositorySiteName = default(string), UsageState?usageState = default(UsageState?), bool?enabled = default(bool?), IList <string> enabledHostNames = default(IList <string>), SiteAvailabilityState?availabilityState = default(SiteAvailabilityState?), IList <HostNameSslState> hostNameSslStates = default(IList <HostNameSslState>), string serverFarmId = default(string), bool?reserved = default(bool?), System.DateTime?lastModifiedTimeUtc = default(System.DateTime?), SiteConfig siteConfig = default(SiteConfig), IList <string> trafficManagerHostNames = default(IList <string>), bool?premiumAppDeployed = default(bool?), bool?scmSiteAlsoStopped = default(bool?), string targetSwapSlot = default(string), HostingEnvironmentProfile hostingEnvironmentProfile = default(HostingEnvironmentProfile), string microService = default(string), string gatewaySiteName = default(string), bool?clientAffinityEnabled = default(bool?), bool?clientCertEnabled = default(bool?), bool?hostNamesDisabled = default(bool?), string outboundIpAddresses = default(string), int?containerSize = default(int?), int?dailyMemoryTimeQuota = default(int?), System.DateTime?suspendedTill = default(System.DateTime?), int?maxNumberOfWorkers = default(int?), CloningInfo cloningInfo = default(CloningInfo), string resourceGroup = default(string), bool?isDefaultContainer = default(bool?), string defaultHostName = default(string), SlotSwapStatus slotSwapStatus = default(SlotSwapStatus))
     : base(location, id, name, type, tags)
 {
     DeletedTimestamp          = deletedTimestamp;
     State                     = state;
     HostNames                 = hostNames;
     RepositorySiteName        = repositorySiteName;
     UsageState                = usageState;
     Enabled                   = enabled;
     EnabledHostNames          = enabledHostNames;
     AvailabilityState         = availabilityState;
     HostNameSslStates         = hostNameSslStates;
     ServerFarmId              = serverFarmId;
     Reserved                  = reserved;
     LastModifiedTimeUtc       = lastModifiedTimeUtc;
     SiteConfig                = siteConfig;
     TrafficManagerHostNames   = trafficManagerHostNames;
     PremiumAppDeployed        = premiumAppDeployed;
     ScmSiteAlsoStopped        = scmSiteAlsoStopped;
     TargetSwapSlot            = targetSwapSlot;
     HostingEnvironmentProfile = hostingEnvironmentProfile;
     MicroService              = microService;
     GatewaySiteName           = gatewaySiteName;
     ClientAffinityEnabled     = clientAffinityEnabled;
     ClientCertEnabled         = clientCertEnabled;
     HostNamesDisabled         = hostNamesDisabled;
     OutboundIpAddresses       = outboundIpAddresses;
     ContainerSize             = containerSize;
     DailyMemoryTimeQuota      = dailyMemoryTimeQuota;
     SuspendedTill             = suspendedTill;
     MaxNumberOfWorkers        = maxNumberOfWorkers;
     CloningInfo               = cloningInfo;
     ResourceGroup             = resourceGroup;
     IsDefaultContainer        = isDefaultContainer;
     DefaultHostName           = defaultHostName;
     SlotSwapStatus            = slotSwapStatus;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the SitePatchResource class.
 /// </summary>
 /// <param name="kind">Kind of resource.</param>
 /// <param name="state">Current state of the app.</param>
 /// <param name="hostNames">Hostnames associated with the app.</param>
 /// <param name="repositorySiteName">Name of the repository
 /// site.</param>
 /// <param name="usageState">State indicating whether the app has
 /// exceeded its quota usage. Read-only. Possible values include:
 /// 'Normal', 'Exceeded'</param>
 /// <param name="enabled">&lt;code&gt;true&lt;/code&gt; if the app is
 /// enabled; otherwise, &lt;code&gt;false&lt;/code&gt;. Setting this
 /// value to false disables the app (takes the app offline).</param>
 /// <param name="enabledHostNames">Enabled hostnames for the
 /// app.Hostnames need to be assigned (see HostNames) AND enabled.
 /// Otherwise,
 /// the app is not served on those hostnames.</param>
 /// <param name="availabilityState">Management information availability
 /// state for the app. Possible values include: 'Normal', 'Limited',
 /// 'DisasterRecoveryMode'</param>
 /// <param name="hostNameSslStates">Hostname SSL states are used to
 /// manage the SSL bindings for app's hostnames.</param>
 /// <param name="serverFarmId">Resource ID of the associated App
 /// Service plan, formatted as:
 /// "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".</param>
 /// <param name="reserved">&lt;code&gt;true&lt;/code&gt; if reserved;
 /// otherwise, &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="isXenon">Hyper-V sandbox.</param>
 /// <param name="lastModifiedTimeUtc">Last time the app was modified,
 /// in UTC. Read-only.</param>
 /// <param name="siteConfig">Configuration of the app.</param>
 /// <param name="trafficManagerHostNames">Azure Traffic Manager
 /// hostnames associated with the app. Read-only.</param>
 /// <param name="scmSiteAlsoStopped">&lt;code&gt;true&lt;/code&gt; to
 /// stop SCM (KUDU) site when the app is stopped; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;. The default is
 /// &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="targetSwapSlot">Specifies which deployment slot this
 /// app will swap into. Read-only.</param>
 /// <param name="hostingEnvironmentProfile">App Service Environment to
 /// use for the app.</param>
 /// <param name="clientAffinityEnabled">&lt;code&gt;true&lt;/code&gt;
 /// to enable client affinity; &lt;code&gt;false&lt;/code&gt; to stop
 /// sending session affinity cookies, which route client requests in
 /// the same session to the same instance. Default is
 /// &lt;code&gt;true&lt;/code&gt;.</param>
 /// <param name="clientCertEnabled">&lt;code&gt;true&lt;/code&gt; to
 /// enable client certificate authentication (TLS mutual
 /// authentication); otherwise, &lt;code&gt;false&lt;/code&gt;. Default
 /// is &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="hostNamesDisabled">&lt;code&gt;true&lt;/code&gt; to
 /// disable the public hostnames of the app; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;.
 /// If &lt;code&gt;true&lt;/code&gt;, the app is only accessible via
 /// API management process.</param>
 /// <param name="outboundIpAddresses">List of IP addresses that the app
 /// uses for outbound connections (e.g. database access). Includes VIPs
 /// from tenants that site can be hosted with current settings.
 /// Read-only.</param>
 /// <param name="possibleOutboundIpAddresses">List of IP addresses that
 /// the app uses for outbound connections (e.g. database access).
 /// Includes VIPs from all tenants. Read-only.</param>
 /// <param name="containerSize">Size of the function container.</param>
 /// <param name="dailyMemoryTimeQuota">Maximum allowed daily
 /// memory-time quota (applicable on dynamic apps only).</param>
 /// <param name="suspendedTill">App suspended till in case memory-time
 /// quota is exceeded.</param>
 /// <param name="maxNumberOfWorkers">Maximum number of workers.
 /// This only applies to Functions container.</param>
 /// <param name="cloningInfo">If specified during app creation, the app
 /// is cloned from a source app.</param>
 /// <param name="snapshotInfo">If specified during app creation, the
 /// app is created from a previous snapshot.</param>
 /// <param name="resourceGroup">Name of the resource group the app
 /// belongs to. Read-only.</param>
 /// <param name="isDefaultContainer">&lt;code&gt;true&lt;/code&gt; if
 /// the app is a default container; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="defaultHostName">Default hostname of the app.
 /// Read-only.</param>
 /// <param name="slotSwapStatus">Status of the last deployment slot
 /// swap operation.</param>
 /// <param name="httpsOnly">HttpsOnly: configures a web site to accept
 /// only https requests. Issues redirect for
 /// http requests</param>
 public SitePatchResource(string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string state = default(string), IList <string> hostNames = default(IList <string>), string repositorySiteName = default(string), UsageState?usageState = default(UsageState?), bool?enabled = default(bool?), IList <string> enabledHostNames = default(IList <string>), SiteAvailabilityState?availabilityState = default(SiteAvailabilityState?), IList <HostNameSslState> hostNameSslStates = default(IList <HostNameSslState>), string serverFarmId = default(string), bool?reserved = default(bool?), bool?isXenon = default(bool?), System.DateTime?lastModifiedTimeUtc = default(System.DateTime?), SiteConfig siteConfig = default(SiteConfig), IList <string> trafficManagerHostNames = default(IList <string>), bool?scmSiteAlsoStopped = default(bool?), string targetSwapSlot = default(string), HostingEnvironmentProfile hostingEnvironmentProfile = default(HostingEnvironmentProfile), bool?clientAffinityEnabled = default(bool?), bool?clientCertEnabled = default(bool?), bool?hostNamesDisabled = default(bool?), string outboundIpAddresses = default(string), string possibleOutboundIpAddresses = default(string), int?containerSize = default(int?), int?dailyMemoryTimeQuota = default(int?), System.DateTime?suspendedTill = default(System.DateTime?), int?maxNumberOfWorkers = default(int?), CloningInfo cloningInfo = default(CloningInfo), SnapshotRecoveryRequest snapshotInfo = default(SnapshotRecoveryRequest), string resourceGroup = default(string), bool?isDefaultContainer = default(bool?), string defaultHostName = default(string), SlotSwapStatus slotSwapStatus = default(SlotSwapStatus), bool?httpsOnly = default(bool?))
     : base(id, name, type, kind)
 {
     State                       = state;
     HostNames                   = hostNames;
     RepositorySiteName          = repositorySiteName;
     UsageState                  = usageState;
     Enabled                     = enabled;
     EnabledHostNames            = enabledHostNames;
     AvailabilityState           = availabilityState;
     HostNameSslStates           = hostNameSslStates;
     ServerFarmId                = serverFarmId;
     Reserved                    = reserved;
     IsXenon                     = isXenon;
     LastModifiedTimeUtc         = lastModifiedTimeUtc;
     SiteConfig                  = siteConfig;
     TrafficManagerHostNames     = trafficManagerHostNames;
     ScmSiteAlsoStopped          = scmSiteAlsoStopped;
     TargetSwapSlot              = targetSwapSlot;
     HostingEnvironmentProfile   = hostingEnvironmentProfile;
     ClientAffinityEnabled       = clientAffinityEnabled;
     ClientCertEnabled           = clientCertEnabled;
     HostNamesDisabled           = hostNamesDisabled;
     OutboundIpAddresses         = outboundIpAddresses;
     PossibleOutboundIpAddresses = possibleOutboundIpAddresses;
     ContainerSize               = containerSize;
     DailyMemoryTimeQuota        = dailyMemoryTimeQuota;
     SuspendedTill               = suspendedTill;
     MaxNumberOfWorkers          = maxNumberOfWorkers;
     CloningInfo                 = cloningInfo;
     SnapshotInfo                = snapshotInfo;
     ResourceGroup               = resourceGroup;
     IsDefaultContainer          = isDefaultContainer;
     DefaultHostName             = defaultHostName;
     SlotSwapStatus              = slotSwapStatus;
     HttpsOnly                   = httpsOnly;
     CustomInit();
 }