Skip to content

Commit

Permalink
[AutoPR web/resource-manager] WebApps - Add ResourceHealthMetadata.js…
Browse files Browse the repository at this point in the history
…on to readme.md for SDK generation (#3178)

* Generated from 1c9e1028cea9b1119b0fb396906d412c6d228c8e

WebApps - Add ResourceHealthMetadata.json to readme.md for SDK generation

* Generated from 4038e1418fea2b1092005a07b4ff72442d0038a1

Change deleted site model to be proxy only resource
  • Loading branch information
AutorestCI authored Aug 28, 2018
1 parent 204f4e4 commit 155a4c4
Show file tree
Hide file tree
Showing 9 changed files with 665 additions and 21 deletions.
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
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
54 changes: 54 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/resource_health_metadata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .proxy_only_resource import ProxyOnlyResource


class ResourceHealthMetadata(ProxyOnlyResource):
"""Used for getting ResourceHealthCheck settings.
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
:param category: The category that the resource matches in the RHC Policy
File
:type category: str
:param signal_availability: Is there a health signal for the resource
:type signal_availability: bool
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'category': {'key': 'properties.category', 'type': 'str'},
'signal_availability': {'key': 'properties.signalAvailability', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(ResourceHealthMetadata, self).__init__(**kwargs)
self.category = kwargs.get('category', None)
self.signal_availability = kwargs.get('signal_availability', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.paging import Paged


class ResourceHealthMetadataPaged(Paged):
"""
A paging container for iterating over a list of :class:`ResourceHealthMetadata <azure.mgmt.web.models.ResourceHealthMetadata>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[ResourceHealthMetadata]'}
}

def __init__(self, *args, **kwargs):

super(ResourceHealthMetadataPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .proxy_only_resource_py3 import ProxyOnlyResource


class ResourceHealthMetadata(ProxyOnlyResource):
"""Used for getting ResourceHealthCheck settings.
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
:param category: The category that the resource matches in the RHC Policy
File
:type category: str
:param signal_availability: Is there a health signal for the resource
:type signal_availability: bool
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'category': {'key': 'properties.category', 'type': 'str'},
'signal_availability': {'key': 'properties.signalAvailability', 'type': 'bool'},
}

def __init__(self, *, kind: str=None, category: str=None, signal_availability: bool=None, **kwargs) -> None:
super(ResourceHealthMetadata, self).__init__(kind=kind, **kwargs)
self.category = category
self.signal_availability = signal_availability
2 changes: 2 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from .web_apps_operations import WebAppsOperations
from .app_service_environments_operations import AppServiceEnvironmentsOperations
from .app_service_plans_operations import AppServicePlansOperations
from .resource_health_metadata_operations import ResourceHealthMetadataOperations

__all__ = [
'AppServiceCertificateOrdersOperations',
Expand All @@ -37,4 +38,5 @@
'WebAppsOperations',
'AppServiceEnvironmentsOperations',
'AppServicePlansOperations',
'ResourceHealthMetadataOperations',
]
Loading

0 comments on commit 155a4c4

Please sign in to comment.