From a51b040e8059e01b6576baa30f0c96c05056f808 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 13 Mar 2018 22:47:37 +0000 Subject: [PATCH] Generated from 97244d8ccb5921e9fb92659da2925cde1ad21364 Web: adding support for `computeMode` to App Service plans --- azure-mgmt-web/azure/mgmt/web/models/__init__.py | 4 ++-- .../azure/mgmt/web/models/sku_description.py | 7 ++++++- .../web/models/web_site_management_client_enums.py | 14 +++++++------- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/azure-mgmt-web/azure/mgmt/web/models/__init__.py b/azure-mgmt-web/azure/mgmt/web/models/__init__.py index f60ea1a3a7da..b886a668825b 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/__init__.py +++ b/azure-mgmt-web/azure/mgmt/web/models/__init__.py @@ -279,6 +279,7 @@ HostType, UsageState, SiteAvailabilityState, + ComputeModeOptions, StatusOptions, DomainStatus, AzureResourceType, @@ -288,7 +289,6 @@ DomainType, HostingEnvironmentStatus, InternalLoadBalancingMode, - ComputeModeOptions, WorkerSizeOptions, AccessControlEntryAction, OperationStatus, @@ -592,6 +592,7 @@ 'HostType', 'UsageState', 'SiteAvailabilityState', + 'ComputeModeOptions', 'StatusOptions', 'DomainStatus', 'AzureResourceType', @@ -601,7 +602,6 @@ 'DomainType', 'HostingEnvironmentStatus', 'InternalLoadBalancingMode', - 'ComputeModeOptions', 'WorkerSizeOptions', 'AccessControlEntryAction', 'OperationStatus', diff --git a/azure-mgmt-web/azure/mgmt/web/models/sku_description.py b/azure-mgmt-web/azure/mgmt/web/models/sku_description.py index 4e5ac3fc4498..3b15eb1f3972 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/sku_description.py +++ b/azure-mgmt-web/azure/mgmt/web/models/sku_description.py @@ -23,6 +23,9 @@ class SkuDescription(Model): :type size: str :param family: Family code of the resource SKU. :type family: str + :param compute_mode: Shared or dedicated app hosting. Possible values + include: 'Shared', 'Dedicated', 'Dynamic' + :type compute_mode: str or ~azure.mgmt.web.models.ComputeModeOptions :param capacity: Current number of instances assigned to the resource. :type capacity: int :param sku_capacity: Min, max, and default scale values of the SKU. @@ -39,18 +42,20 @@ class SkuDescription(Model): 'tier': {'key': 'tier', 'type': 'str'}, 'size': {'key': 'size', 'type': 'str'}, 'family': {'key': 'family', 'type': 'str'}, + 'compute_mode': {'key': 'computeMode', 'type': 'ComputeModeOptions'}, 'capacity': {'key': 'capacity', 'type': 'int'}, 'sku_capacity': {'key': 'skuCapacity', 'type': 'SkuCapacity'}, 'locations': {'key': 'locations', 'type': '[str]'}, 'capabilities': {'key': 'capabilities', 'type': '[Capability]'}, } - def __init__(self, name=None, tier=None, size=None, family=None, capacity=None, sku_capacity=None, locations=None, capabilities=None): + def __init__(self, name=None, tier=None, size=None, family=None, compute_mode=None, capacity=None, sku_capacity=None, locations=None, capabilities=None): super(SkuDescription, self).__init__() self.name = name self.tier = tier self.size = size self.family = family + self.compute_mode = compute_mode self.capacity = capacity self.sku_capacity = sku_capacity self.locations = locations diff --git a/azure-mgmt-web/azure/mgmt/web/models/web_site_management_client_enums.py b/azure-mgmt-web/azure/mgmt/web/models/web_site_management_client_enums.py index 0b311784c359..e76fbaee6064 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/web_site_management_client_enums.py +++ b/azure-mgmt-web/azure/mgmt/web/models/web_site_management_client_enums.py @@ -173,6 +173,13 @@ class SiteAvailabilityState(Enum): disaster_recovery_mode = "DisasterRecoveryMode" +class ComputeModeOptions(Enum): + + shared = "Shared" + dedicated = "Dedicated" + dynamic = "Dynamic" + + class StatusOptions(Enum): ready = "Ready" @@ -250,13 +257,6 @@ class InternalLoadBalancingMode(Enum): publishing = "Publishing" -class ComputeModeOptions(Enum): - - shared = "Shared" - dedicated = "Dedicated" - dynamic = "Dynamic" - - class WorkerSizeOptions(Enum): default = "Default"