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] WebApps - Add ResourceHealthMetadata.json to readme.md for SDK generation #3178

Merged
merged 2 commits into from
Aug 28, 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
11 changes: 8 additions & 3 deletions azure-mgmt-web/azure/mgmt/web/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
from .identifier_py3 import Identifier
from .hybrid_connection_key_py3 import HybridConnectionKey
from .hybrid_connection_py3 import HybridConnection
from .deleted_site_py3 import DeletedSite
from .proxy_only_resource_py3 import ProxyOnlyResource
from .managed_service_identity_py3 import ManagedServiceIdentity
from .slot_swap_status_py3 import SlotSwapStatus
Expand Down Expand Up @@ -101,7 +102,6 @@
from .app_service_environment_py3 import AppServiceEnvironment
from .localizable_string_py3 import LocalizableString
from .csm_usage_quota_py3 import CsmUsageQuota
from .deleted_site_py3 import DeletedSite
from .error_entity_py3 import ErrorEntity
from .operation_py3 import Operation
from .resource_metric_name_py3 import ResourceMetricName
Expand Down Expand Up @@ -229,6 +229,7 @@
from .worker_pool_resource_py3 import WorkerPoolResource
from .app_service_plan_patch_resource_py3 import AppServicePlanPatchResource
from .hybrid_connection_limits_py3 import HybridConnectionLimits
from .resource_health_metadata_py3 import ResourceHealthMetadata
except (SyntaxError, ImportError):
from .app_service_certificate import AppServiceCertificate
from .app_service_certificate_resource import AppServiceCertificateResource
Expand All @@ -253,6 +254,7 @@
from .identifier import Identifier
from .hybrid_connection_key import HybridConnectionKey
from .hybrid_connection import HybridConnection
from .deleted_site import DeletedSite
from .proxy_only_resource import ProxyOnlyResource
from .managed_service_identity import ManagedServiceIdentity
from .slot_swap_status import SlotSwapStatus
Expand Down Expand Up @@ -321,7 +323,6 @@
from .app_service_environment import AppServiceEnvironment
from .localizable_string import LocalizableString
from .csm_usage_quota import CsmUsageQuota
from .deleted_site import DeletedSite
from .error_entity import ErrorEntity
from .operation import Operation
from .resource_metric_name import ResourceMetricName
Expand Down Expand Up @@ -449,6 +450,7 @@
from .worker_pool_resource import WorkerPoolResource
from .app_service_plan_patch_resource import AppServicePlanPatchResource
from .hybrid_connection_limits import HybridConnectionLimits
from .resource_health_metadata import ResourceHealthMetadata
from .app_service_certificate_order_paged import AppServiceCertificateOrderPaged
from .app_service_certificate_resource_paged import AppServiceCertificateResourcePaged
from .csm_operation_description_paged import CsmOperationDescriptionPaged
Expand Down Expand Up @@ -501,6 +503,7 @@
from .app_service_plan_paged import AppServicePlanPaged
from .str_paged import StrPaged
from .hybrid_connection_paged import HybridConnectionPaged
from .resource_health_metadata_paged import ResourceHealthMetadataPaged
from .web_site_management_client_enums import (
KeyVaultSecretStatus,
CertificateProductType,
Expand Down Expand Up @@ -591,6 +594,7 @@
'Identifier',
'HybridConnectionKey',
'HybridConnection',
'DeletedSite',
'ProxyOnlyResource',
'ManagedServiceIdentity',
'SlotSwapStatus',
Expand Down Expand Up @@ -659,7 +663,6 @@
'AppServiceEnvironment',
'LocalizableString',
'CsmUsageQuota',
'DeletedSite',
'ErrorEntity',
'Operation',
'ResourceMetricName',
Expand Down Expand Up @@ -787,6 +790,7 @@
'WorkerPoolResource',
'AppServicePlanPatchResource',
'HybridConnectionLimits',
'ResourceHealthMetadata',
'AppServiceCertificateOrderPaged',
'AppServiceCertificateResourcePaged',
'CsmOperationDescriptionPaged',
Expand Down Expand Up @@ -839,6 +843,7 @@
'AppServicePlanPaged',
'StrPaged',
'HybridConnectionPaged',
'ResourceHealthMetadataPaged',
'KeyVaultSecretStatus',
'CertificateProductType',
'ProvisioningState',
Expand Down
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
36 changes: 28 additions & 8 deletions azure-mgmt-web/azure/mgmt/web/models/deleted_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,23 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model
from .proxy_only_resource import ProxyOnlyResource


class DeletedSite(Model):
class DeletedSite(ProxyOnlyResource):
"""A deleted app.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id.
:vartype id: str
:ivar name: Resource Name.
:vartype name: str
:param kind: Kind of resource.
:type kind: str
:ivar type: Resource type.
:vartype type: str
:ivar deleted_site_id: Numeric id for the deleted site
:vartype deleted_site_id: int
:ivar deleted_timestamp: Time in UTC when the app was deleted.
Expand All @@ -30,24 +38,35 @@ class DeletedSite(Model):
:vartype deleted_site_name: str
:ivar slot: Slot of the deleted site
:vartype slot: str
:ivar deleted_site_kind: Kind of site that was deleted
:vartype deleted_site_kind: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'deleted_site_id': {'readonly': True},
'deleted_timestamp': {'readonly': True},
'subscription': {'readonly': True},
'resource_group': {'readonly': True},
'deleted_site_name': {'readonly': True},
'slot': {'readonly': True},
'deleted_site_kind': {'readonly': True},
}

_attribute_map = {
'deleted_site_id': {'key': 'deletedSiteId', 'type': 'int'},
'deleted_timestamp': {'key': 'deletedTimestamp', 'type': 'str'},
'subscription': {'key': 'subscription', 'type': 'str'},
'resource_group': {'key': 'resourceGroup', 'type': 'str'},
'deleted_site_name': {'key': 'deletedSiteName', 'type': 'str'},
'slot': {'key': 'slot', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'deleted_site_id': {'key': 'properties.deletedSiteId', 'type': 'int'},
'deleted_timestamp': {'key': 'properties.deletedTimestamp', 'type': 'str'},
'subscription': {'key': 'properties.subscription', 'type': 'str'},
'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'},
'deleted_site_name': {'key': 'properties.deletedSiteName', 'type': 'str'},
'slot': {'key': 'properties.slot', 'type': 'str'},
'deleted_site_kind': {'key': 'properties.kind', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -58,3 +77,4 @@ def __init__(self, **kwargs):
self.resource_group = None
self.deleted_site_name = None
self.slot = None
self.deleted_site_kind = None
40 changes: 30 additions & 10 deletions azure-mgmt-web/azure/mgmt/web/models/deleted_site_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,23 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model
from .proxy_only_resource_py3 import ProxyOnlyResource


class DeletedSite(Model):
class DeletedSite(ProxyOnlyResource):
"""A deleted app.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id.
:vartype id: str
:ivar name: Resource Name.
:vartype name: str
:param kind: Kind of resource.
:type kind: str
:ivar type: Resource type.
:vartype type: str
:ivar deleted_site_id: Numeric id for the deleted site
:vartype deleted_site_id: int
:ivar deleted_timestamp: Time in UTC when the app was deleted.
Expand All @@ -30,31 +38,43 @@ class DeletedSite(Model):
:vartype deleted_site_name: str
:ivar slot: Slot of the deleted site
:vartype slot: str
:ivar deleted_site_kind: Kind of site that was deleted
:vartype deleted_site_kind: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'deleted_site_id': {'readonly': True},
'deleted_timestamp': {'readonly': True},
'subscription': {'readonly': True},
'resource_group': {'readonly': True},
'deleted_site_name': {'readonly': True},
'slot': {'readonly': True},
'deleted_site_kind': {'readonly': True},
}

_attribute_map = {
'deleted_site_id': {'key': 'deletedSiteId', 'type': 'int'},
'deleted_timestamp': {'key': 'deletedTimestamp', 'type': 'str'},
'subscription': {'key': 'subscription', 'type': 'str'},
'resource_group': {'key': 'resourceGroup', 'type': 'str'},
'deleted_site_name': {'key': 'deletedSiteName', 'type': 'str'},
'slot': {'key': 'slot', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'deleted_site_id': {'key': 'properties.deletedSiteId', 'type': 'int'},
'deleted_timestamp': {'key': 'properties.deletedTimestamp', 'type': 'str'},
'subscription': {'key': 'properties.subscription', 'type': 'str'},
'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'},
'deleted_site_name': {'key': 'properties.deletedSiteName', 'type': 'str'},
'slot': {'key': 'properties.slot', 'type': 'str'},
'deleted_site_kind': {'key': 'properties.kind', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(DeletedSite, self).__init__(**kwargs)
def __init__(self, *, kind: str=None, **kwargs) -> None:
super(DeletedSite, self).__init__(kind=kind, **kwargs)
self.deleted_site_id = None
self.deleted_timestamp = None
self.subscription = None
self.resource_group = None
self.deleted_site_name = None
self.slot = None
self.deleted_site_kind = None
Loading