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 Microsoft.Web ResourceHealthMetadata swagger #2097

Closed
  •  
  •  
  •  
622 changes: 420 additions & 202 deletions azure-mgmt-web/azure/mgmt/web/models/__init__.py

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions azure-mgmt-web/azure/mgmt/web/models/abnormal_time_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class AbnormalTimePeriod(Model):
'solutions': {'key': 'solutions', 'type': '[Solution]'},
}

def __init__(self, start_time=None, end_time=None, events=None, solutions=None):
super(AbnormalTimePeriod, self).__init__()
self.start_time = start_time
self.end_time = end_time
self.events = events
self.solutions = solutions
def __init__(self, **kwargs):
super(AbnormalTimePeriod, self).__init__(**kwargs)
self.start_time = kwargs.get('start_time', None)
self.end_time = kwargs.get('end_time', None)
self.events = kwargs.get('events', None)
self.solutions = kwargs.get('solutions', None)
40 changes: 40 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/abnormal_time_period_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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.serialization import Model


class AbnormalTimePeriod(Model):
"""Class representing Abnormal Time Period identified in diagnosis.

:param start_time: Start time of the downtime
:type start_time: datetime
:param end_time: End time of the downtime
:type end_time: datetime
:param events: List of Possible Cause of downtime
:type events: list[~azure.mgmt.web.models.DetectorAbnormalTimePeriod]
:param solutions: List of proposed solutions
:type solutions: list[~azure.mgmt.web.models.Solution]
"""

_attribute_map = {
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
'end_time': {'key': 'endTime', 'type': 'iso-8601'},
'events': {'key': 'events', 'type': '[DetectorAbnormalTimePeriod]'},
'solutions': {'key': 'solutions', 'type': '[Solution]'},
}

def __init__(self, *, start_time=None, end_time=None, events=None, solutions=None, **kwargs) -> None:
super(AbnormalTimePeriod, self).__init__(**kwargs)
self.start_time = start_time
self.end_time = end_time
self.events = events
self.solutions = solutions
28 changes: 15 additions & 13 deletions azure-mgmt-web/azure/mgmt/web/models/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@
class Address(Model):
"""Address information for domain registration.

:param address1: First line of an Address.
All required parameters must be populated in order to send to Azure.

:param address1: Required. First line of an Address.
:type address1: str
:param address2: The second line of the Address. Optional.
:type address2: str
:param city: The city for the address.
:param city: Required. The city for the address.
:type city: str
:param country: The country for the address.
:param country: Required. The country for the address.
:type country: str
:param postal_code: The postal code for the address.
:param postal_code: Required. The postal code for the address.
:type postal_code: str
:param state: The state or province for the address.
:param state: Required. The state or province for the address.
:type state: str
"""

Expand All @@ -46,11 +48,11 @@ class Address(Model):
'state': {'key': 'state', 'type': 'str'},
}

def __init__(self, address1, city, country, postal_code, state, address2=None):
super(Address, self).__init__()
self.address1 = address1
self.address2 = address2
self.city = city
self.country = country
self.postal_code = postal_code
self.state = state
def __init__(self, **kwargs):
super(Address, self).__init__(**kwargs)
self.address1 = kwargs.get('address1', None)
self.address2 = kwargs.get('address2', None)
self.city = kwargs.get('city', None)
self.country = kwargs.get('country', None)
self.postal_code = kwargs.get('postal_code', None)
self.state = kwargs.get('state', None)
58 changes: 58 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/address_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# 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.serialization import Model


class Address(Model):
"""Address information for domain registration.

All required parameters must be populated in order to send to Azure.

:param address1: Required. First line of an Address.
:type address1: str
:param address2: The second line of the Address. Optional.
:type address2: str
:param city: Required. The city for the address.
:type city: str
:param country: Required. The country for the address.
:type country: str
:param postal_code: Required. The postal code for the address.
:type postal_code: str
:param state: Required. The state or province for the address.
:type state: str
"""

_validation = {
'address1': {'required': True},
'city': {'required': True},
'country': {'required': True},
'postal_code': {'required': True},
'state': {'required': True},
}

_attribute_map = {
'address1': {'key': 'address1', 'type': 'str'},
'address2': {'key': 'address2', 'type': 'str'},
'city': {'key': 'city', 'type': 'str'},
'country': {'key': 'country', 'type': 'str'},
'postal_code': {'key': 'postalCode', 'type': 'str'},
'state': {'key': 'state', 'type': 'str'},
}

def __init__(self, *, address1: str, city: str, country: str, postal_code: str, state: str, address2: str=None, **kwargs) -> None:
super(Address, self).__init__(**kwargs)
self.address1 = address1
self.address2 = address2
self.city = city
self.country = country
self.postal_code = postal_code
self.state = state
12 changes: 6 additions & 6 deletions azure-mgmt-web/azure/mgmt/web/models/address_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class AddressResponse(Model):
'vip_mappings': {'key': 'vipMappings', 'type': '[VirtualIPMapping]'},
}

def __init__(self, service_ip_address=None, internal_ip_address=None, outbound_ip_addresses=None, vip_mappings=None):
super(AddressResponse, self).__init__()
self.service_ip_address = service_ip_address
self.internal_ip_address = internal_ip_address
self.outbound_ip_addresses = outbound_ip_addresses
self.vip_mappings = vip_mappings
def __init__(self, **kwargs):
super(AddressResponse, self).__init__(**kwargs)
self.service_ip_address = kwargs.get('service_ip_address', None)
self.internal_ip_address = kwargs.get('internal_ip_address', None)
self.outbound_ip_addresses = kwargs.get('outbound_ip_addresses', None)
self.vip_mappings = kwargs.get('vip_mappings', None)
42 changes: 42 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/address_response_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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.serialization import Model


class AddressResponse(Model):
"""Describes main public IP address and any extra virtual IPs.

:param service_ip_address: Main public virtual IP.
:type service_ip_address: str
:param internal_ip_address: Virtual Network internal IP address of the App
Service Environment if it is in internal load-balancing mode.
:type internal_ip_address: str
:param outbound_ip_addresses: IP addresses appearing on outbound
connections.
:type outbound_ip_addresses: list[str]
:param vip_mappings: Additional virtual IPs.
:type vip_mappings: list[~azure.mgmt.web.models.VirtualIPMapping]
"""

_attribute_map = {
'service_ip_address': {'key': 'serviceIpAddress', 'type': 'str'},
'internal_ip_address': {'key': 'internalIpAddress', 'type': 'str'},
'outbound_ip_addresses': {'key': 'outboundIpAddresses', 'type': '[str]'},
'vip_mappings': {'key': 'vipMappings', 'type': '[VirtualIPMapping]'},
}

def __init__(self, *, service_ip_address: str=None, internal_ip_address: str=None, outbound_ip_addresses=None, vip_mappings=None, **kwargs) -> None:
super(AddressResponse, self).__init__(**kwargs)
self.service_ip_address = service_ip_address
self.internal_ip_address = internal_ip_address
self.outbound_ip_addresses = outbound_ip_addresses
self.vip_mappings = vip_mappings
14 changes: 7 additions & 7 deletions azure-mgmt-web/azure/mgmt/web/models/analysis_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ class AnalysisData(Model):
'detector_meta_data': {'key': 'detectorMetaData', 'type': 'ResponseMetaData'},
}

def __init__(self, source=None, detector_definition=None, metrics=None, data=None, detector_meta_data=None):
super(AnalysisData, self).__init__()
self.source = source
self.detector_definition = detector_definition
self.metrics = metrics
self.data = data
self.detector_meta_data = detector_meta_data
def __init__(self, **kwargs):
super(AnalysisData, self).__init__(**kwargs)
self.source = kwargs.get('source', None)
self.detector_definition = kwargs.get('detector_definition', None)
self.metrics = kwargs.get('metrics', None)
self.data = kwargs.get('data', None)
self.detector_meta_data = kwargs.get('detector_meta_data', None)
44 changes: 44 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/analysis_data_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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.serialization import Model


class AnalysisData(Model):
"""Class Representing Detector Evidence used for analysis.

:param source: Name of the Detector
:type source: str
:param detector_definition: Detector Definition
:type detector_definition: ~azure.mgmt.web.models.DetectorDefinition
:param metrics: Source Metrics
:type metrics: list[~azure.mgmt.web.models.DiagnosticMetricSet]
:param data: Additional Source Data
:type data: list[list[~azure.mgmt.web.models.NameValuePair]]
:param detector_meta_data: Detector Meta Data
:type detector_meta_data: ~azure.mgmt.web.models.ResponseMetaData
"""

_attribute_map = {
'source': {'key': 'source', 'type': 'str'},
'detector_definition': {'key': 'detectorDefinition', 'type': 'DetectorDefinition'},
'metrics': {'key': 'metrics', 'type': '[DiagnosticMetricSet]'},
'data': {'key': 'data', 'type': '[[NameValuePair]]'},
'detector_meta_data': {'key': 'detectorMetaData', 'type': 'ResponseMetaData'},
}

def __init__(self, *, source: str=None, detector_definition=None, metrics=None, data=None, detector_meta_data=None, **kwargs) -> None:
super(AnalysisData, self).__init__(**kwargs)
self.source = source
self.detector_definition = detector_definition
self.metrics = metrics
self.data = data
self.detector_meta_data = detector_meta_data
4 changes: 2 additions & 2 deletions azure-mgmt-web/azure/mgmt/web/models/analysis_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ class AnalysisDefinition(ProxyOnlyResource):
'description': {'key': 'properties.description', 'type': 'str'},
}

def __init__(self, kind=None):
super(AnalysisDefinition, self).__init__(kind=kind)
def __init__(self, **kwargs):
super(AnalysisDefinition, self).__init__(**kwargs)
self.description = None
50 changes: 50 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/analysis_definition_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 AnalysisDefinition(ProxyOnlyResource):
"""Definition of Analysis.

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 description: Description of the Analysis
:vartype description: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
}

def __init__(self, *, kind: str=None, **kwargs) -> None:
super(AnalysisDefinition, self).__init__(kind=kind, **kwargs)
self.description = None
6 changes: 3 additions & 3 deletions azure-mgmt-web/azure/mgmt/web/models/api_definition_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ class ApiDefinitionInfo(Model):
'url': {'key': 'url', 'type': 'str'},
}

def __init__(self, url=None):
super(ApiDefinitionInfo, self).__init__()
self.url = url
def __init__(self, **kwargs):
super(ApiDefinitionInfo, self).__init__(**kwargs)
self.url = kwargs.get('url', None)
28 changes: 28 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/api_definition_info_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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.serialization import Model


class ApiDefinitionInfo(Model):
"""Information about the formal API definition for the app.

:param url: The URL of the API definition.
:type url: str
"""

_attribute_map = {
'url': {'key': 'url', 'type': 'str'},
}

def __init__(self, *, url: str=None, **kwargs) -> None:
super(ApiDefinitionInfo, self).__init__(**kwargs)
self.url = url
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class AppServiceCertificate(Model):
'provisioning_state': {'key': 'provisioningState', 'type': 'KeyVaultSecretStatus'},
}

def __init__(self, key_vault_id=None, key_vault_secret_name=None):
super(AppServiceCertificate, self).__init__()
self.key_vault_id = key_vault_id
self.key_vault_secret_name = key_vault_secret_name
def __init__(self, **kwargs):
super(AppServiceCertificate, self).__init__(**kwargs)
self.key_vault_id = kwargs.get('key_vault_id', None)
self.key_vault_secret_name = kwargs.get('key_vault_secret_name', None)
self.provisioning_state = None
Loading