Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR web/resource-manager] Add HyperV property for AppServicePlan and Site model and deprecating… #3169

Merged
merged 2 commits into from
Aug 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions azure-mgmt-web/azure/mgmt/web/models/app_service_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@ class AppServicePlan(Resource):
:param reserved: If Linux app service plan <code>true</code>,
<code>false</code> otherwise. Default value: False .
:type reserved: bool
:param is_xenon: If Hyper-V container app service plan <code>true</code>,
<code>false</code> otherwise. Default value: False .
:param is_xenon: Obsolete: If Hyper-V container app service plan
<code>true</code>, <code>false</code> otherwise. Default value: False .
:type is_xenon: bool
:param hyper_v: If Hyper-V container app service plan <code>true</code>,
<code>false</code> otherwise. Default value: False .
:type hyper_v: bool
:param target_worker_count: Scaling worker count.
:type target_worker_count: int
:param target_worker_size_id: Scaling worker size ID.
Expand Down Expand Up @@ -124,6 +127,7 @@ class AppServicePlan(Resource):
'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'},
'reserved': {'key': 'properties.reserved', 'type': 'bool'},
'is_xenon': {'key': 'properties.isXenon', 'type': 'bool'},
'hyper_v': {'key': 'properties.hyperV', 'type': 'bool'},
'target_worker_count': {'key': 'properties.targetWorkerCount', 'type': 'int'},
'target_worker_size_id': {'key': 'properties.targetWorkerSizeId', 'type': 'int'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'ProvisioningState'},
Expand All @@ -147,6 +151,7 @@ def __init__(self, **kwargs):
self.resource_group = None
self.reserved = kwargs.get('reserved', False)
self.is_xenon = kwargs.get('is_xenon', False)
self.hyper_v = kwargs.get('hyper_v', False)
self.target_worker_count = kwargs.get('target_worker_count', None)
self.target_worker_size_id = kwargs.get('target_worker_size_id', None)
self.provisioning_state = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ class AppServicePlanPatchResource(ProxyOnlyResource):
:param reserved: If Linux app service plan <code>true</code>,
<code>false</code> otherwise. Default value: False .
:type reserved: bool
:param is_xenon: If Hyper-V container app service plan <code>true</code>,
<code>false</code> otherwise. Default value: False .
:param is_xenon: Obsolete: If Hyper-V container app service plan
<code>true</code>, <code>false</code> otherwise. Default value: False .
:type is_xenon: bool
:param hyper_v: If Hyper-V container app service plan <code>true</code>,
<code>false</code> otherwise. Default value: False .
:type hyper_v: bool
:param target_worker_count: Scaling worker count.
:type target_worker_count: int
:param target_worker_size_id: Scaling worker size ID.
Expand Down Expand Up @@ -113,6 +116,7 @@ class AppServicePlanPatchResource(ProxyOnlyResource):
'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'},
'reserved': {'key': 'properties.reserved', 'type': 'bool'},
'is_xenon': {'key': 'properties.isXenon', 'type': 'bool'},
'hyper_v': {'key': 'properties.hyperV', 'type': 'bool'},
'target_worker_count': {'key': 'properties.targetWorkerCount', 'type': 'int'},
'target_worker_size_id': {'key': 'properties.targetWorkerSizeId', 'type': 'int'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'ProvisioningState'},
Expand All @@ -135,6 +139,7 @@ def __init__(self, **kwargs):
self.resource_group = None
self.reserved = kwargs.get('reserved', False)
self.is_xenon = kwargs.get('is_xenon', False)
self.hyper_v = kwargs.get('hyper_v', False)
self.target_worker_count = kwargs.get('target_worker_count', None)
self.target_worker_size_id = kwargs.get('target_worker_size_id', None)
self.provisioning_state = None
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ class AppServicePlanPatchResource(ProxyOnlyResource):
:param reserved: If Linux app service plan <code>true</code>,
<code>false</code> otherwise. Default value: False .
:type reserved: bool
:param is_xenon: If Hyper-V container app service plan <code>true</code>,
<code>false</code> otherwise. Default value: False .
:param is_xenon: Obsolete: If Hyper-V container app service plan
<code>true</code>, <code>false</code> otherwise. Default value: False .
:type is_xenon: bool
:param hyper_v: If Hyper-V container app service plan <code>true</code>,
<code>false</code> otherwise. Default value: False .
:type hyper_v: bool
:param target_worker_count: Scaling worker count.
:type target_worker_count: int
:param target_worker_size_id: Scaling worker size ID.
Expand Down Expand Up @@ -113,12 +116,13 @@ class AppServicePlanPatchResource(ProxyOnlyResource):
'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'},
'reserved': {'key': 'properties.reserved', 'type': 'bool'},
'is_xenon': {'key': 'properties.isXenon', 'type': 'bool'},
'hyper_v': {'key': 'properties.hyperV', 'type': 'bool'},
'target_worker_count': {'key': 'properties.targetWorkerCount', 'type': 'int'},
'target_worker_size_id': {'key': 'properties.targetWorkerSizeId', 'type': 'int'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'ProvisioningState'},
}

def __init__(self, *, kind: str=None, worker_tier_name: str=None, admin_site_name: str=None, hosting_environment_profile=None, per_site_scaling: bool=False, is_spot: bool=None, spot_expiration_time=None, free_offer_expiration_time=None, reserved: bool=False, is_xenon: bool=False, target_worker_count: int=None, target_worker_size_id: int=None, **kwargs) -> None:
def __init__(self, *, kind: str=None, worker_tier_name: str=None, admin_site_name: str=None, hosting_environment_profile=None, per_site_scaling: bool=False, is_spot: bool=None, spot_expiration_time=None, free_offer_expiration_time=None, reserved: bool=False, is_xenon: bool=False, hyper_v: bool=False, target_worker_count: int=None, target_worker_size_id: int=None, **kwargs) -> None:
super(AppServicePlanPatchResource, self).__init__(kind=kind, **kwargs)
self.worker_tier_name = worker_tier_name
self.status = None
Expand All @@ -135,6 +139,7 @@ def __init__(self, *, kind: str=None, worker_tier_name: str=None, admin_site_nam
self.resource_group = None
self.reserved = reserved
self.is_xenon = is_xenon
self.hyper_v = hyper_v
self.target_worker_count = target_worker_count
self.target_worker_size_id = target_worker_size_id
self.provisioning_state = None
11 changes: 8 additions & 3 deletions azure-mgmt-web/azure/mgmt/web/models/app_service_plan_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@ class AppServicePlan(Resource):
:param reserved: If Linux app service plan <code>true</code>,
<code>false</code> otherwise. Default value: False .
:type reserved: bool
:param is_xenon: If Hyper-V container app service plan <code>true</code>,
<code>false</code> otherwise. Default value: False .
:param is_xenon: Obsolete: If Hyper-V container app service plan
<code>true</code>, <code>false</code> otherwise. Default value: False .
:type is_xenon: bool
:param hyper_v: If Hyper-V container app service plan <code>true</code>,
<code>false</code> otherwise. Default value: False .
:type hyper_v: bool
:param target_worker_count: Scaling worker count.
:type target_worker_count: int
:param target_worker_size_id: Scaling worker size ID.
Expand Down Expand Up @@ -124,13 +127,14 @@ class AppServicePlan(Resource):
'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'},
'reserved': {'key': 'properties.reserved', 'type': 'bool'},
'is_xenon': {'key': 'properties.isXenon', 'type': 'bool'},
'hyper_v': {'key': 'properties.hyperV', 'type': 'bool'},
'target_worker_count': {'key': 'properties.targetWorkerCount', 'type': 'int'},
'target_worker_size_id': {'key': 'properties.targetWorkerSizeId', 'type': 'int'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'ProvisioningState'},
'sku': {'key': 'sku', 'type': 'SkuDescription'},
}

def __init__(self, *, location: str, kind: str=None, tags=None, worker_tier_name: str=None, admin_site_name: str=None, hosting_environment_profile=None, per_site_scaling: bool=False, is_spot: bool=None, spot_expiration_time=None, free_offer_expiration_time=None, reserved: bool=False, is_xenon: bool=False, target_worker_count: int=None, target_worker_size_id: int=None, sku=None, **kwargs) -> None:
def __init__(self, *, location: str, kind: str=None, tags=None, worker_tier_name: str=None, admin_site_name: str=None, hosting_environment_profile=None, per_site_scaling: bool=False, is_spot: bool=None, spot_expiration_time=None, free_offer_expiration_time=None, reserved: bool=False, is_xenon: bool=False, hyper_v: bool=False, target_worker_count: int=None, target_worker_size_id: int=None, sku=None, **kwargs) -> None:
super(AppServicePlan, self).__init__(kind=kind, location=location, tags=tags, **kwargs)
self.worker_tier_name = worker_tier_name
self.status = None
Expand All @@ -147,6 +151,7 @@ def __init__(self, *, location: str, kind: str=None, tags=None, worker_tier_name
self.resource_group = None
self.reserved = reserved
self.is_xenon = is_xenon
self.hyper_v = hyper_v
self.target_worker_count = target_worker_count
self.target_worker_size_id = target_worker_size_id
self.provisioning_state = None
Expand Down
4 changes: 4 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/backup_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class BackupRequest(ProxyOnlyResource):
:type kind: str
:ivar type: Resource type.
:vartype type: str
:param backup_name: Name of the backup.
:type backup_name: str
:param enabled: True if the backup schedule is enabled (must be included
in that case), false if the backup schedule should be disabled.
:type enabled: bool
Expand All @@ -52,6 +54,7 @@ class BackupRequest(ProxyOnlyResource):
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'backup_name': {'key': 'properties.backupName', 'type': 'str'},
'enabled': {'key': 'properties.enabled', 'type': 'bool'},
'storage_account_url': {'key': 'properties.storageAccountUrl', 'type': 'str'},
'backup_schedule': {'key': 'properties.backupSchedule', 'type': 'BackupSchedule'},
Expand All @@ -60,6 +63,7 @@ class BackupRequest(ProxyOnlyResource):

def __init__(self, **kwargs):
super(BackupRequest, self).__init__(**kwargs)
self.backup_name = kwargs.get('backup_name', None)
self.enabled = kwargs.get('enabled', None)
self.storage_account_url = kwargs.get('storage_account_url', None)
self.backup_schedule = kwargs.get('backup_schedule', None)
Expand Down
6 changes: 5 additions & 1 deletion azure-mgmt-web/azure/mgmt/web/models/backup_request_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class BackupRequest(ProxyOnlyResource):
:type kind: str
:ivar type: Resource type.
:vartype type: str
:param backup_name: Name of the backup.
:type backup_name: str
:param enabled: True if the backup schedule is enabled (must be included
in that case), false if the backup schedule should be disabled.
:type enabled: bool
Expand All @@ -52,14 +54,16 @@ class BackupRequest(ProxyOnlyResource):
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'backup_name': {'key': 'properties.backupName', 'type': 'str'},
'enabled': {'key': 'properties.enabled', 'type': 'bool'},
'storage_account_url': {'key': 'properties.storageAccountUrl', 'type': 'str'},
'backup_schedule': {'key': 'properties.backupSchedule', 'type': 'BackupSchedule'},
'databases': {'key': 'properties.databases', 'type': '[DatabaseBackupSetting]'},
}

def __init__(self, *, storage_account_url: str, kind: str=None, enabled: bool=None, backup_schedule=None, databases=None, **kwargs) -> None:
def __init__(self, *, storage_account_url: str, kind: str=None, backup_name: str=None, enabled: bool=None, backup_schedule=None, databases=None, **kwargs) -> None:
super(BackupRequest, self).__init__(kind=kind, **kwargs)
self.backup_name = backup_name
self.enabled = enabled
self.storage_account_url = storage_account_url
self.backup_schedule = backup_schedule
Expand Down
6 changes: 5 additions & 1 deletion azure-mgmt-web/azure/mgmt/web/models/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ class Site(Resource):
:param reserved: <code>true</code> if reserved; otherwise,
<code>false</code>. Default value: False .
:type reserved: bool
:param is_xenon: Hyper-V sandbox. Default value: False .
:param is_xenon: Obsolete: Hyper-V sandbox. Default value: False .
:type is_xenon: bool
:param hyper_v: Hyper-V sandbox. Default value: False .
:type hyper_v: bool
:ivar last_modified_time_utc: Last time the app was modified, in UTC.
Read-only.
:vartype last_modified_time_utc: datetime
Expand Down Expand Up @@ -181,6 +183,7 @@ class Site(Resource):
'server_farm_id': {'key': 'properties.serverFarmId', 'type': 'str'},
'reserved': {'key': 'properties.reserved', 'type': 'bool'},
'is_xenon': {'key': 'properties.isXenon', 'type': 'bool'},
'hyper_v': {'key': 'properties.hyperV', 'type': 'bool'},
'last_modified_time_utc': {'key': 'properties.lastModifiedTimeUtc', 'type': 'iso-8601'},
'site_config': {'key': 'properties.siteConfig', 'type': 'SiteConfig'},
'traffic_manager_host_names': {'key': 'properties.trafficManagerHostNames', 'type': '[str]'},
Expand Down Expand Up @@ -218,6 +221,7 @@ def __init__(self, **kwargs):
self.server_farm_id = kwargs.get('server_farm_id', None)
self.reserved = kwargs.get('reserved', False)
self.is_xenon = kwargs.get('is_xenon', False)
self.hyper_v = kwargs.get('hyper_v', False)
self.last_modified_time_utc = None
self.site_config = kwargs.get('site_config', None)
self.traffic_manager_host_names = None
Expand Down
6 changes: 5 additions & 1 deletion azure-mgmt-web/azure/mgmt/web/models/site_patch_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ class SitePatchResource(ProxyOnlyResource):
:param reserved: <code>true</code> if reserved; otherwise,
<code>false</code>. Default value: False .
:type reserved: bool
:param is_xenon: Hyper-V sandbox. Default value: False .
:param is_xenon: Obsolete: Hyper-V sandbox. Default value: False .
:type is_xenon: bool
:param hyper_v: Hyper-V sandbox. Default value: False .
:type hyper_v: bool
:ivar last_modified_time_utc: Last time the app was modified, in UTC.
Read-only.
:vartype last_modified_time_utc: datetime
Expand Down Expand Up @@ -170,6 +172,7 @@ class SitePatchResource(ProxyOnlyResource):
'server_farm_id': {'key': 'properties.serverFarmId', 'type': 'str'},
'reserved': {'key': 'properties.reserved', 'type': 'bool'},
'is_xenon': {'key': 'properties.isXenon', 'type': 'bool'},
'hyper_v': {'key': 'properties.hyperV', 'type': 'bool'},
'last_modified_time_utc': {'key': 'properties.lastModifiedTimeUtc', 'type': 'iso-8601'},
'site_config': {'key': 'properties.siteConfig', 'type': 'SiteConfig'},
'traffic_manager_host_names': {'key': 'properties.trafficManagerHostNames', 'type': '[str]'},
Expand Down Expand Up @@ -206,6 +209,7 @@ def __init__(self, **kwargs):
self.server_farm_id = kwargs.get('server_farm_id', None)
self.reserved = kwargs.get('reserved', False)
self.is_xenon = kwargs.get('is_xenon', False)
self.hyper_v = kwargs.get('hyper_v', False)
self.last_modified_time_utc = None
self.site_config = kwargs.get('site_config', None)
self.traffic_manager_host_names = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ class SitePatchResource(ProxyOnlyResource):
:param reserved: <code>true</code> if reserved; otherwise,
<code>false</code>. Default value: False .
:type reserved: bool
:param is_xenon: Hyper-V sandbox. Default value: False .
:param is_xenon: Obsolete: Hyper-V sandbox. Default value: False .
:type is_xenon: bool
:param hyper_v: Hyper-V sandbox. Default value: False .
:type hyper_v: bool
:ivar last_modified_time_utc: Last time the app was modified, in UTC.
Read-only.
:vartype last_modified_time_utc: datetime
Expand Down Expand Up @@ -170,6 +172,7 @@ class SitePatchResource(ProxyOnlyResource):
'server_farm_id': {'key': 'properties.serverFarmId', 'type': 'str'},
'reserved': {'key': 'properties.reserved', 'type': 'bool'},
'is_xenon': {'key': 'properties.isXenon', 'type': 'bool'},
'hyper_v': {'key': 'properties.hyperV', 'type': 'bool'},
'last_modified_time_utc': {'key': 'properties.lastModifiedTimeUtc', 'type': 'iso-8601'},
'site_config': {'key': 'properties.siteConfig', 'type': 'SiteConfig'},
'traffic_manager_host_names': {'key': 'properties.trafficManagerHostNames', 'type': '[str]'},
Expand All @@ -193,7 +196,7 @@ class SitePatchResource(ProxyOnlyResource):
'https_only': {'key': 'properties.httpsOnly', 'type': 'bool'},
}

def __init__(self, *, kind: str=None, enabled: bool=None, host_name_ssl_states=None, server_farm_id: str=None, reserved: bool=False, is_xenon: bool=False, site_config=None, scm_site_also_stopped: bool=False, hosting_environment_profile=None, client_affinity_enabled: bool=None, client_cert_enabled: bool=None, host_names_disabled: bool=None, container_size: int=None, daily_memory_time_quota: int=None, cloning_info=None, https_only: bool=None, **kwargs) -> None:
def __init__(self, *, kind: str=None, enabled: bool=None, host_name_ssl_states=None, server_farm_id: str=None, reserved: bool=False, is_xenon: bool=False, hyper_v: bool=False, site_config=None, scm_site_also_stopped: bool=False, hosting_environment_profile=None, client_affinity_enabled: bool=None, client_cert_enabled: bool=None, host_names_disabled: bool=None, container_size: int=None, daily_memory_time_quota: int=None, cloning_info=None, https_only: bool=None, **kwargs) -> None:
super(SitePatchResource, self).__init__(kind=kind, **kwargs)
self.state = None
self.host_names = None
Expand All @@ -206,6 +209,7 @@ def __init__(self, *, kind: str=None, enabled: bool=None, host_name_ssl_states=N
self.server_farm_id = server_farm_id
self.reserved = reserved
self.is_xenon = is_xenon
self.hyper_v = hyper_v
self.last_modified_time_utc = None
self.site_config = site_config
self.traffic_manager_host_names = None
Expand Down
Loading