diff --git a/azure-mgmt-web/azure/mgmt/web/models/app_service_environment_patch_resource.py b/azure-mgmt-web/azure/mgmt/web/models/app_service_environment_patch_resource.py index 4a4f9b8a267d..2f8cb07faeaa 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/app_service_environment_patch_resource.py +++ b/azure-mgmt-web/azure/mgmt/web/models/app_service_environment_patch_resource.py @@ -13,7 +13,7 @@ class AppServiceEnvironmentPatchResource(ProxyOnlyResource): - """ARM resource for a app service enviroment. + """ARM resource for a app service environment. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-web/azure/mgmt/web/models/app_service_environment_patch_resource_py3.py b/azure-mgmt-web/azure/mgmt/web/models/app_service_environment_patch_resource_py3.py index f017aff5069e..35f2b72733b1 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/app_service_environment_patch_resource_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/app_service_environment_patch_resource_py3.py @@ -13,7 +13,7 @@ class AppServiceEnvironmentPatchResource(ProxyOnlyResource): - """ARM resource for a app service enviroment. + """ARM resource for a app service environment. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-web/azure/mgmt/web/models/certificate.py b/azure-mgmt-web/azure/mgmt/web/models/certificate.py index bd2c25e366d8..d05513dc8764 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/certificate.py +++ b/azure-mgmt-web/azure/mgmt/web/models/certificate.py @@ -48,7 +48,7 @@ class Certificate(Resource): :vartype issuer: str :ivar issue_date: Certificate issue Date. :vartype issue_date: datetime - :ivar expiration_date: Certificate expriration date. + :ivar expiration_date: Certificate expiration date. :vartype expiration_date: datetime :param password: Required. Certificate password. :type password: str diff --git a/azure-mgmt-web/azure/mgmt/web/models/certificate_patch_resource.py b/azure-mgmt-web/azure/mgmt/web/models/certificate_patch_resource.py index 00640f893069..2c8d4dd7b8d4 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/certificate_patch_resource.py +++ b/azure-mgmt-web/azure/mgmt/web/models/certificate_patch_resource.py @@ -44,7 +44,7 @@ class CertificatePatchResource(ProxyOnlyResource): :vartype issuer: str :ivar issue_date: Certificate issue Date. :vartype issue_date: datetime - :ivar expiration_date: Certificate expriration date. + :ivar expiration_date: Certificate expiration date. :vartype expiration_date: datetime :param password: Required. Certificate password. :type password: str diff --git a/azure-mgmt-web/azure/mgmt/web/models/certificate_patch_resource_py3.py b/azure-mgmt-web/azure/mgmt/web/models/certificate_patch_resource_py3.py index afe00d21362b..509a96b8f663 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/certificate_patch_resource_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/certificate_patch_resource_py3.py @@ -44,7 +44,7 @@ class CertificatePatchResource(ProxyOnlyResource): :vartype issuer: str :ivar issue_date: Certificate issue Date. :vartype issue_date: datetime - :ivar expiration_date: Certificate expriration date. + :ivar expiration_date: Certificate expiration date. :vartype expiration_date: datetime :param password: Required. Certificate password. :type password: str diff --git a/azure-mgmt-web/azure/mgmt/web/models/certificate_py3.py b/azure-mgmt-web/azure/mgmt/web/models/certificate_py3.py index e18577a8f98c..72c91584d182 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/certificate_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/certificate_py3.py @@ -48,7 +48,7 @@ class Certificate(Resource): :vartype issuer: str :ivar issue_date: Certificate issue Date. :vartype issue_date: datetime - :ivar expiration_date: Certificate expriration date. + :ivar expiration_date: Certificate expiration date. :vartype expiration_date: datetime :param password: Required. Certificate password. :type password: str diff --git a/azure-mgmt-web/azure/mgmt/web/models/csm_usage_quota.py b/azure-mgmt-web/azure/mgmt/web/models/csm_usage_quota.py index 6ec31a0dbbab..73a378492874 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/csm_usage_quota.py +++ b/azure-mgmt-web/azure/mgmt/web/models/csm_usage_quota.py @@ -15,7 +15,7 @@ class CsmUsageQuota(Model): """Usage of the quota resource. - :param unit: Units of measurement for the quota resourse. + :param unit: Units of measurement for the quota resource. :type unit: str :param next_reset_time: Next reset time for the resource counter. :type next_reset_time: datetime diff --git a/azure-mgmt-web/azure/mgmt/web/models/csm_usage_quota_py3.py b/azure-mgmt-web/azure/mgmt/web/models/csm_usage_quota_py3.py index ec46c5675a51..4145c0317284 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/csm_usage_quota_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/csm_usage_quota_py3.py @@ -15,7 +15,7 @@ class CsmUsageQuota(Model): """Usage of the quota resource. - :param unit: Units of measurement for the quota resourse. + :param unit: Units of measurement for the quota resource. :type unit: str :param next_reset_time: Next reset time for the resource counter. :type next_reset_time: datetime diff --git a/azure-mgmt-web/azure/mgmt/web/models/custom_hostname_analysis_result.py b/azure-mgmt-web/azure/mgmt/web/models/custom_hostname_analysis_result.py index caad9e011ea0..b94776a8625c 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/custom_hostname_analysis_result.py +++ b/azure-mgmt-web/azure/mgmt/web/models/custom_hostname_analysis_result.py @@ -40,7 +40,7 @@ class CustomHostnameAnalysisResult(ProxyOnlyResource): :ivar has_conflict_on_scale_unit: true if there is a conflict on a scale unit; otherwise, false. :vartype has_conflict_on_scale_unit: bool - :ivar has_conflict_across_subscription: true if htere is a + :ivar has_conflict_across_subscription: true if there is a conflict across subscriptions; otherwise, false. :vartype has_conflict_across_subscription: bool :ivar conflicting_app_resource_id: Name of the conflicting app on scale diff --git a/azure-mgmt-web/azure/mgmt/web/models/custom_hostname_analysis_result_py3.py b/azure-mgmt-web/azure/mgmt/web/models/custom_hostname_analysis_result_py3.py index 0646bccb298a..d8bbfe11a508 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/custom_hostname_analysis_result_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/custom_hostname_analysis_result_py3.py @@ -40,7 +40,7 @@ class CustomHostnameAnalysisResult(ProxyOnlyResource): :ivar has_conflict_on_scale_unit: true if there is a conflict on a scale unit; otherwise, false. :vartype has_conflict_on_scale_unit: bool - :ivar has_conflict_across_subscription: true if htere is a + :ivar has_conflict_across_subscription: true if there is a conflict across subscriptions; otherwise, false. :vartype has_conflict_across_subscription: bool :ivar conflicting_app_resource_id: Name of the conflicting app on scale diff --git a/azure-mgmt-web/azure/mgmt/web/models/data_source.py b/azure-mgmt-web/azure/mgmt/web/models/data_source.py index 7a2c50d6e370..a49bb6e1caf5 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/data_source.py +++ b/azure-mgmt-web/azure/mgmt/web/models/data_source.py @@ -15,7 +15,7 @@ class DataSource(Model): """Class representing data source used by the detectors. - :param instructions: Instrunctions if any for the data source + :param instructions: Instructions if any for the data source :type instructions: list[str] :param data_source_uri: Datasource Uri Links :type data_source_uri: list[~azure.mgmt.web.models.NameValuePair] diff --git a/azure-mgmt-web/azure/mgmt/web/models/data_source_py3.py b/azure-mgmt-web/azure/mgmt/web/models/data_source_py3.py index b6db5b64ff21..29079057ce34 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/data_source_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/data_source_py3.py @@ -15,7 +15,7 @@ class DataSource(Model): """Class representing data source used by the detectors. - :param instructions: Instrunctions if any for the data source + :param instructions: Instructions if any for the data source :type instructions: list[str] :param data_source_uri: Datasource Uri Links :type data_source_uri: list[~azure.mgmt.web.models.NameValuePair] diff --git a/azure-mgmt-web/azure/mgmt/web/models/deleted_app_restore_request.py b/azure-mgmt-web/azure/mgmt/web/models/deleted_app_restore_request.py index 0fe0f903f66d..42d5ae80a25e 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/deleted_app_restore_request.py +++ b/azure-mgmt-web/azure/mgmt/web/models/deleted_app_restore_request.py @@ -36,6 +36,9 @@ class DeletedAppRestoreRequest(ProxyOnlyResource): formatted as a DateTime string. If unspecified, default value is the time that the app was deleted. :type snapshot_time: str + :param use_dr_secondary: If true, the snapshot is retrieved from + DRSecondary endpoint. + :type use_dr_secondary: bool """ _validation = { @@ -52,6 +55,7 @@ class DeletedAppRestoreRequest(ProxyOnlyResource): 'deleted_site_id': {'key': 'properties.deletedSiteId', 'type': 'str'}, 'recover_configuration': {'key': 'properties.recoverConfiguration', 'type': 'bool'}, 'snapshot_time': {'key': 'properties.snapshotTime', 'type': 'str'}, + 'use_dr_secondary': {'key': 'properties.useDRSecondary', 'type': 'bool'}, } def __init__(self, **kwargs): @@ -59,3 +63,4 @@ def __init__(self, **kwargs): self.deleted_site_id = kwargs.get('deleted_site_id', None) self.recover_configuration = kwargs.get('recover_configuration', None) self.snapshot_time = kwargs.get('snapshot_time', None) + self.use_dr_secondary = kwargs.get('use_dr_secondary', None) diff --git a/azure-mgmt-web/azure/mgmt/web/models/deleted_app_restore_request_py3.py b/azure-mgmt-web/azure/mgmt/web/models/deleted_app_restore_request_py3.py index 69ca457e864b..3216b8c3056f 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/deleted_app_restore_request_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/deleted_app_restore_request_py3.py @@ -36,6 +36,9 @@ class DeletedAppRestoreRequest(ProxyOnlyResource): formatted as a DateTime string. If unspecified, default value is the time that the app was deleted. :type snapshot_time: str + :param use_dr_secondary: If true, the snapshot is retrieved from + DRSecondary endpoint. + :type use_dr_secondary: bool """ _validation = { @@ -52,10 +55,12 @@ class DeletedAppRestoreRequest(ProxyOnlyResource): 'deleted_site_id': {'key': 'properties.deletedSiteId', 'type': 'str'}, 'recover_configuration': {'key': 'properties.recoverConfiguration', 'type': 'bool'}, 'snapshot_time': {'key': 'properties.snapshotTime', 'type': 'str'}, + 'use_dr_secondary': {'key': 'properties.useDRSecondary', 'type': 'bool'}, } - def __init__(self, *, kind: str=None, deleted_site_id: str=None, recover_configuration: bool=None, snapshot_time: str=None, **kwargs) -> None: + def __init__(self, *, kind: str=None, deleted_site_id: str=None, recover_configuration: bool=None, snapshot_time: str=None, use_dr_secondary: bool=None, **kwargs) -> None: super(DeletedAppRestoreRequest, self).__init__(kind=kind, **kwargs) self.deleted_site_id = deleted_site_id self.recover_configuration = recover_configuration self.snapshot_time = snapshot_time + self.use_dr_secondary = use_dr_secondary diff --git a/azure-mgmt-web/azure/mgmt/web/models/deleted_site.py b/azure-mgmt-web/azure/mgmt/web/models/deleted_site.py index cab4d170ab91..988f07e40f40 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/deleted_site.py +++ b/azure-mgmt-web/azure/mgmt/web/models/deleted_site.py @@ -40,6 +40,8 @@ class DeletedSite(ProxyOnlyResource): :vartype slot: str :ivar deleted_site_kind: Kind of site that was deleted :vartype deleted_site_kind: str + :ivar geo_region_name: Geo Region of the deleted site + :vartype geo_region_name: str """ _validation = { @@ -53,6 +55,7 @@ class DeletedSite(ProxyOnlyResource): 'deleted_site_name': {'readonly': True}, 'slot': {'readonly': True}, 'deleted_site_kind': {'readonly': True}, + 'geo_region_name': {'readonly': True}, } _attribute_map = { @@ -67,6 +70,7 @@ class DeletedSite(ProxyOnlyResource): 'deleted_site_name': {'key': 'properties.deletedSiteName', 'type': 'str'}, 'slot': {'key': 'properties.slot', 'type': 'str'}, 'deleted_site_kind': {'key': 'properties.kind', 'type': 'str'}, + 'geo_region_name': {'key': 'properties.geoRegionName', 'type': 'str'}, } def __init__(self, **kwargs): @@ -78,3 +82,4 @@ def __init__(self, **kwargs): self.deleted_site_name = None self.slot = None self.deleted_site_kind = None + self.geo_region_name = None diff --git a/azure-mgmt-web/azure/mgmt/web/models/deleted_site_py3.py b/azure-mgmt-web/azure/mgmt/web/models/deleted_site_py3.py index 85152fdd18f8..91ceedb6c2cd 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/deleted_site_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/deleted_site_py3.py @@ -40,6 +40,8 @@ class DeletedSite(ProxyOnlyResource): :vartype slot: str :ivar deleted_site_kind: Kind of site that was deleted :vartype deleted_site_kind: str + :ivar geo_region_name: Geo Region of the deleted site + :vartype geo_region_name: str """ _validation = { @@ -53,6 +55,7 @@ class DeletedSite(ProxyOnlyResource): 'deleted_site_name': {'readonly': True}, 'slot': {'readonly': True}, 'deleted_site_kind': {'readonly': True}, + 'geo_region_name': {'readonly': True}, } _attribute_map = { @@ -67,6 +70,7 @@ class DeletedSite(ProxyOnlyResource): 'deleted_site_name': {'key': 'properties.deletedSiteName', 'type': 'str'}, 'slot': {'key': 'properties.slot', 'type': 'str'}, 'deleted_site_kind': {'key': 'properties.kind', 'type': 'str'}, + 'geo_region_name': {'key': 'properties.geoRegionName', 'type': 'str'}, } def __init__(self, *, kind: str=None, **kwargs) -> None: @@ -78,3 +82,4 @@ def __init__(self, *, kind: str=None, **kwargs) -> None: self.deleted_site_name = None self.slot = None self.deleted_site_kind = None + self.geo_region_name = None diff --git a/azure-mgmt-web/azure/mgmt/web/models/deployment.py b/azure-mgmt-web/azure/mgmt/web/models/deployment.py index 75a3a6e26b9e..e1edd8b35d22 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/deployment.py +++ b/azure-mgmt-web/azure/mgmt/web/models/deployment.py @@ -13,7 +13,7 @@ class Deployment(ProxyOnlyResource): - """User crendentials used for publishing activity. + """User credentials used for publishing activity. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-web/azure/mgmt/web/models/deployment_py3.py b/azure-mgmt-web/azure/mgmt/web/models/deployment_py3.py index abc4448dc021..31037b9858d8 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/deployment_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/deployment_py3.py @@ -13,7 +13,7 @@ class Deployment(ProxyOnlyResource): - """User crendentials used for publishing activity. + """User credentials used for publishing activity. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-web/azure/mgmt/web/models/detector_abnormal_time_period.py b/azure-mgmt-web/azure/mgmt/web/models/detector_abnormal_time_period.py index 79d6784e465e..f1b0e84468d5 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/detector_abnormal_time_period.py +++ b/azure-mgmt-web/azure/mgmt/web/models/detector_abnormal_time_period.py @@ -15,9 +15,9 @@ class DetectorAbnormalTimePeriod(Model): """Class representing Abnormal Time Period detected. - :param start_time: Start time of the corelated event + :param start_time: Start time of the correlated event :type start_time: datetime - :param end_time: End time of the corelated event + :param end_time: End time of the correlated event :type end_time: datetime :param message: Message describing the event :type message: str diff --git a/azure-mgmt-web/azure/mgmt/web/models/detector_abnormal_time_period_py3.py b/azure-mgmt-web/azure/mgmt/web/models/detector_abnormal_time_period_py3.py index 63507c374c07..6fc4258bef34 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/detector_abnormal_time_period_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/detector_abnormal_time_period_py3.py @@ -15,9 +15,9 @@ class DetectorAbnormalTimePeriod(Model): """Class representing Abnormal Time Period detected. - :param start_time: Start time of the corelated event + :param start_time: Start time of the correlated event :type start_time: datetime - :param end_time: End time of the corelated event + :param end_time: End time of the correlated event :type end_time: datetime :param message: Message describing the event :type message: str diff --git a/azure-mgmt-web/azure/mgmt/web/models/diagnostic_detector_response.py b/azure-mgmt-web/azure/mgmt/web/models/diagnostic_detector_response.py index 54efec97da7b..02cf6db30707 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/diagnostic_detector_response.py +++ b/azure-mgmt-web/azure/mgmt/web/models/diagnostic_detector_response.py @@ -13,7 +13,7 @@ class DiagnosticDetectorResponse(ProxyOnlyResource): - """Class representing Reponse from Diagnostic Detectors. + """Class representing Response from Diagnostic Detectors. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-web/azure/mgmt/web/models/diagnostic_detector_response_py3.py b/azure-mgmt-web/azure/mgmt/web/models/diagnostic_detector_response_py3.py index 165d011ecccc..a7fb46dbb467 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/diagnostic_detector_response_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/diagnostic_detector_response_py3.py @@ -13,7 +13,7 @@ class DiagnosticDetectorResponse(ProxyOnlyResource): - """Class representing Reponse from Diagnostic Detectors. + """Class representing Response from Diagnostic Detectors. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-web/azure/mgmt/web/models/domain_availablility_check_result.py b/azure-mgmt-web/azure/mgmt/web/models/domain_availablility_check_result.py index 45ea1738a52f..e56481b9dfeb 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/domain_availablility_check_result.py +++ b/azure-mgmt-web/azure/mgmt/web/models/domain_availablility_check_result.py @@ -13,7 +13,7 @@ class DomainAvailablilityCheckResult(Model): - """Domain availablility check result. + """Domain availability check result. :param name: Name of the domain. :type name: str diff --git a/azure-mgmt-web/azure/mgmt/web/models/domain_availablility_check_result_py3.py b/azure-mgmt-web/azure/mgmt/web/models/domain_availablility_check_result_py3.py index 58bc30851baf..605e13392d04 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/domain_availablility_check_result_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/domain_availablility_check_result_py3.py @@ -13,7 +13,7 @@ class DomainAvailablilityCheckResult(Model): - """Domain availablility check result. + """Domain availability check result. :param name: Name of the domain. :type name: str diff --git a/azure-mgmt-web/azure/mgmt/web/models/process_thread_info.py b/azure-mgmt-web/azure/mgmt/web/models/process_thread_info.py index fa19e32d621c..e846621c0160 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/process_thread_info.py +++ b/azure-mgmt-web/azure/mgmt/web/models/process_thread_info.py @@ -46,7 +46,7 @@ class ProcessThreadInfo(ProxyOnlyResource): :type total_processor_time: str :param user_processor_time: User processor time. :type user_processor_time: str - :param priviledged_processor_time: Priviledged processor time. + :param priviledged_processor_time: Privileged processor time. :type priviledged_processor_time: str :param state: Thread state. :type state: str diff --git a/azure-mgmt-web/azure/mgmt/web/models/process_thread_info_py3.py b/azure-mgmt-web/azure/mgmt/web/models/process_thread_info_py3.py index 573193cc1855..818613966ecd 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/process_thread_info_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/process_thread_info_py3.py @@ -46,7 +46,7 @@ class ProcessThreadInfo(ProxyOnlyResource): :type total_processor_time: str :param user_processor_time: User processor time. :type user_processor_time: str - :param priviledged_processor_time: Priviledged processor time. + :param priviledged_processor_time: Privileged processor time. :type priviledged_processor_time: str :param state: Thread state. :type state: str diff --git a/azure-mgmt-web/azure/mgmt/web/models/ramp_up_rule.py b/azure-mgmt-web/azure/mgmt/web/models/ramp_up_rule.py index beac73be59d5..084ce8052951 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/ramp_up_rule.py +++ b/azure-mgmt-web/azure/mgmt/web/models/ramp_up_rule.py @@ -22,15 +22,15 @@ class RampUpRule(Model): :param reroute_percentage: Percentage of the traffic which will be redirected to ActionHostName. :type reroute_percentage: float - :param change_step: In auto ramp up scenario this is the step to to + :param change_step: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches MinReroutePercentage or MaxReroutePercentage. - Site metrics are checked every N minutes specificed in + Site metrics are checked every N minutes specified in ChangeIntervalInMinutes. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. :type change_step: float - :param change_interval_in_minutes: Specifies interval in mimuntes to + :param change_interval_in_minutes: Specifies interval in minutes to reevaluate ReroutePercentage. :type change_interval_in_minutes: int :param min_reroute_percentage: Specifies lower boundary above which diff --git a/azure-mgmt-web/azure/mgmt/web/models/ramp_up_rule_py3.py b/azure-mgmt-web/azure/mgmt/web/models/ramp_up_rule_py3.py index 224fea9b4023..ccc3f0224724 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/ramp_up_rule_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/ramp_up_rule_py3.py @@ -22,15 +22,15 @@ class RampUpRule(Model): :param reroute_percentage: Percentage of the traffic which will be redirected to ActionHostName. :type reroute_percentage: float - :param change_step: In auto ramp up scenario this is the step to to + :param change_step: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches MinReroutePercentage or MaxReroutePercentage. - Site metrics are checked every N minutes specificed in + Site metrics are checked every N minutes specified in ChangeIntervalInMinutes. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. :type change_step: float - :param change_interval_in_minutes: Specifies interval in mimuntes to + :param change_interval_in_minutes: Specifies interval in minutes to reevaluate ReroutePercentage. :type change_interval_in_minutes: int :param min_reroute_percentage: Specifies lower boundary above which diff --git a/azure-mgmt-web/azure/mgmt/web/models/recommendation.py b/azure-mgmt-web/azure/mgmt/web/models/recommendation.py index 05e942d4c9dc..2871f19fb3ce 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/recommendation.py +++ b/azure-mgmt-web/azure/mgmt/web/models/recommendation.py @@ -60,7 +60,7 @@ class Recommendation(ProxyOnlyResource): "actionable"). False if it is invalid. :type enabled: int :param states: The list of states of this recommendation. If it's null - then it shoud be considered "Active". + then it should be considered "Active". :type states: list[str] :param start_time: The beginning time in UTC of a range that the recommendation refers to. diff --git a/azure-mgmt-web/azure/mgmt/web/models/recommendation_py3.py b/azure-mgmt-web/azure/mgmt/web/models/recommendation_py3.py index 02241485d2d1..ead4f7d4852d 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/recommendation_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/recommendation_py3.py @@ -60,7 +60,7 @@ class Recommendation(ProxyOnlyResource): "actionable"). False if it is invalid. :type enabled: int :param states: The list of states of this recommendation. If it's null - then it shoud be considered "Active". + then it should be considered "Active". :type states: list[str] :param start_time: The beginning time in UTC of a range that the recommendation refers to. diff --git a/azure-mgmt-web/azure/mgmt/web/models/resource_name_availability.py b/azure-mgmt-web/azure/mgmt/web/models/resource_name_availability.py index 00e19a02dfe2..f24b6def4e5b 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/resource_name_availability.py +++ b/azure-mgmt-web/azure/mgmt/web/models/resource_name_availability.py @@ -13,7 +13,7 @@ class ResourceNameAvailability(Model): - """Information regarding availbility of a resource name. + """Information regarding availability of a resource name. :param name_available: true indicates name is valid and available. false indicates the name is invalid, unavailable, diff --git a/azure-mgmt-web/azure/mgmt/web/models/resource_name_availability_py3.py b/azure-mgmt-web/azure/mgmt/web/models/resource_name_availability_py3.py index 29684bed5cd3..a468f894cde5 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/resource_name_availability_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/resource_name_availability_py3.py @@ -13,7 +13,7 @@ class ResourceNameAvailability(Model): - """Information regarding availbility of a resource name. + """Information regarding availability of a resource name. :param name_available: true indicates name is valid and available. false indicates the name is invalid, unavailable, diff --git a/azure-mgmt-web/azure/mgmt/web/models/site_config.py b/azure-mgmt-web/azure/mgmt/web/models/site_config.py index 759ff0876aaa..f2d5d911eb46 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/site_config.py +++ b/azure-mgmt-web/azure/mgmt/web/models/site_config.py @@ -100,7 +100,7 @@ class SiteConfig(Model): 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash' :type load_balancing: str or ~azure.mgmt.web.models.SiteLoadBalancing - :param experiments: This is work around for polymophic types. + :param experiments: This is work around for polymorphic types. :type experiments: ~azure.mgmt.web.models.Experiments :param limits: Site limits. :type limits: ~azure.mgmt.web.models.SiteLimits diff --git a/azure-mgmt-web/azure/mgmt/web/models/site_config_py3.py b/azure-mgmt-web/azure/mgmt/web/models/site_config_py3.py index a8534e4686b4..82d1f3d2dd9c 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/site_config_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/site_config_py3.py @@ -100,7 +100,7 @@ class SiteConfig(Model): 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash' :type load_balancing: str or ~azure.mgmt.web.models.SiteLoadBalancing - :param experiments: This is work around for polymophic types. + :param experiments: This is work around for polymorphic types. :type experiments: ~azure.mgmt.web.models.Experiments :param limits: Site limits. :type limits: ~azure.mgmt.web.models.SiteLimits diff --git a/azure-mgmt-web/azure/mgmt/web/models/site_config_resource.py b/azure-mgmt-web/azure/mgmt/web/models/site_config_resource.py index 1c4b3bc66086..c3c7856839e4 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/site_config_resource.py +++ b/azure-mgmt-web/azure/mgmt/web/models/site_config_resource.py @@ -108,7 +108,7 @@ class SiteConfigResource(ProxyOnlyResource): 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash' :type load_balancing: str or ~azure.mgmt.web.models.SiteLoadBalancing - :param experiments: This is work around for polymophic types. + :param experiments: This is work around for polymorphic types. :type experiments: ~azure.mgmt.web.models.Experiments :param limits: Site limits. :type limits: ~azure.mgmt.web.models.SiteLimits diff --git a/azure-mgmt-web/azure/mgmt/web/models/site_config_resource_py3.py b/azure-mgmt-web/azure/mgmt/web/models/site_config_resource_py3.py index e766a1a891b2..0889ecb7e577 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/site_config_resource_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/site_config_resource_py3.py @@ -108,7 +108,7 @@ class SiteConfigResource(ProxyOnlyResource): 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash' :type load_balancing: str or ~azure.mgmt.web.models.SiteLoadBalancing - :param experiments: This is work around for polymophic types. + :param experiments: This is work around for polymorphic types. :type experiments: ~azure.mgmt.web.models.Experiments :param limits: Site limits. :type limits: ~azure.mgmt.web.models.SiteLimits diff --git a/azure-mgmt-web/azure/mgmt/web/models/slot_swap_status.py b/azure-mgmt-web/azure/mgmt/web/models/slot_swap_status.py index 73c238d3fd5b..ec53d53176b3 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/slot_swap_status.py +++ b/azure-mgmt-web/azure/mgmt/web/models/slot_swap_status.py @@ -13,7 +13,7 @@ class SlotSwapStatus(Model): - """The status of the last successfull slot swap operation. + """The status of the last successful slot swap operation. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-web/azure/mgmt/web/models/slot_swap_status_py3.py b/azure-mgmt-web/azure/mgmt/web/models/slot_swap_status_py3.py index 9d555a5fe6f2..3b761bdd0f62 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/slot_swap_status_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/slot_swap_status_py3.py @@ -13,7 +13,7 @@ class SlotSwapStatus(Model): - """The status of the last successfull slot swap operation. + """The status of the last successful slot swap operation. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-web/azure/mgmt/web/models/snapshot_restore_request.py b/azure-mgmt-web/azure/mgmt/web/models/snapshot_restore_request.py index ef65405d81ab..7924152d75a8 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/snapshot_restore_request.py +++ b/azure-mgmt-web/azure/mgmt/web/models/snapshot_restore_request.py @@ -45,6 +45,9 @@ class SnapshotRestoreRequest(ProxyOnlyResource): will be ignored when recovering to a target web app. This setting is only necessary when RecoverConfiguration is enabled. :type ignore_conflicting_host_names: bool + :param use_dr_secondary: If true, the snapshot is retrieved from + DRSecondary endpoint. + :type use_dr_secondary: bool """ _validation = { @@ -64,6 +67,7 @@ class SnapshotRestoreRequest(ProxyOnlyResource): 'overwrite': {'key': 'properties.overwrite', 'type': 'bool'}, 'recover_configuration': {'key': 'properties.recoverConfiguration', 'type': 'bool'}, 'ignore_conflicting_host_names': {'key': 'properties.ignoreConflictingHostNames', 'type': 'bool'}, + 'use_dr_secondary': {'key': 'properties.useDRSecondary', 'type': 'bool'}, } def __init__(self, **kwargs): @@ -73,3 +77,4 @@ def __init__(self, **kwargs): self.overwrite = kwargs.get('overwrite', None) self.recover_configuration = kwargs.get('recover_configuration', None) self.ignore_conflicting_host_names = kwargs.get('ignore_conflicting_host_names', None) + self.use_dr_secondary = kwargs.get('use_dr_secondary', None) diff --git a/azure-mgmt-web/azure/mgmt/web/models/snapshot_restore_request_py3.py b/azure-mgmt-web/azure/mgmt/web/models/snapshot_restore_request_py3.py index e32f278bc028..2d6c5ca1dcd5 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/snapshot_restore_request_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/snapshot_restore_request_py3.py @@ -45,6 +45,9 @@ class SnapshotRestoreRequest(ProxyOnlyResource): will be ignored when recovering to a target web app. This setting is only necessary when RecoverConfiguration is enabled. :type ignore_conflicting_host_names: bool + :param use_dr_secondary: If true, the snapshot is retrieved from + DRSecondary endpoint. + :type use_dr_secondary: bool """ _validation = { @@ -64,12 +67,14 @@ class SnapshotRestoreRequest(ProxyOnlyResource): 'overwrite': {'key': 'properties.overwrite', 'type': 'bool'}, 'recover_configuration': {'key': 'properties.recoverConfiguration', 'type': 'bool'}, 'ignore_conflicting_host_names': {'key': 'properties.ignoreConflictingHostNames', 'type': 'bool'}, + 'use_dr_secondary': {'key': 'properties.useDRSecondary', 'type': 'bool'}, } - def __init__(self, *, overwrite: bool, kind: str=None, snapshot_time: str=None, recovery_source=None, recover_configuration: bool=None, ignore_conflicting_host_names: bool=None, **kwargs) -> None: + def __init__(self, *, overwrite: bool, kind: str=None, snapshot_time: str=None, recovery_source=None, recover_configuration: bool=None, ignore_conflicting_host_names: bool=None, use_dr_secondary: bool=None, **kwargs) -> None: super(SnapshotRestoreRequest, self).__init__(kind=kind, **kwargs) self.snapshot_time = snapshot_time self.recovery_source = recovery_source self.overwrite = overwrite self.recover_configuration = recover_configuration self.ignore_conflicting_host_names = ignore_conflicting_host_names + self.use_dr_secondary = use_dr_secondary diff --git a/azure-mgmt-web/azure/mgmt/web/models/user.py b/azure-mgmt-web/azure/mgmt/web/models/user.py index 548b51584a9e..09fa23dbe8f0 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/user.py +++ b/azure-mgmt-web/azure/mgmt/web/models/user.py @@ -13,7 +13,7 @@ class User(ProxyOnlyResource): - """User crendentials used for publishing activity. + """User credentials used for publishing activity. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-web/azure/mgmt/web/models/user_py3.py b/azure-mgmt-web/azure/mgmt/web/models/user_py3.py index 6f57069f740b..b6b6d210a0a6 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/user_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/user_py3.py @@ -13,7 +13,7 @@ class User(ProxyOnlyResource): - """User crendentials used for publishing activity. + """User credentials used for publishing activity. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-web/azure/mgmt/web/models/validate_request.py b/azure-mgmt-web/azure/mgmt/web/models/validate_request.py index 6d1deca2bc5e..dd69fc30ccb5 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/validate_request.py +++ b/azure-mgmt-web/azure/mgmt/web/models/validate_request.py @@ -35,7 +35,7 @@ class ValidateRequest(Model): :param is_spot: true if App Service plan is for Spot instances; otherwise, false. :type is_spot: bool - :param capacity: Target capacity of the App Service plan (number of VM's). + :param capacity: Target capacity of the App Service plan (number of VMs). :type capacity: int :param hosting_environment: Name of App Service Environment where app or App Service plan should be created. diff --git a/azure-mgmt-web/azure/mgmt/web/models/validate_request_py3.py b/azure-mgmt-web/azure/mgmt/web/models/validate_request_py3.py index 848236c53bd2..864ec706c9c7 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/validate_request_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/validate_request_py3.py @@ -35,7 +35,7 @@ class ValidateRequest(Model): :param is_spot: true if App Service plan is for Spot instances; otherwise, false. :type is_spot: bool - :param capacity: Target capacity of the App Service plan (number of VM's). + :param capacity: Target capacity of the App Service plan (number of VMs). :type capacity: int :param hosting_environment: Name of App Service Environment where app or App Service plan should be created. diff --git a/azure-mgmt-web/azure/mgmt/web/operations/app_service_certificate_orders_operations.py b/azure-mgmt-web/azure/mgmt/web/operations/app_service_certificate_orders_operations.py index a9e97191b87f..c4ad927b1b5b 100644 --- a/azure-mgmt-web/azure/mgmt/web/operations/app_service_certificate_orders_operations.py +++ b/azure-mgmt-web/azure/mgmt/web/operations/app_service_certificate_orders_operations.py @@ -355,8 +355,8 @@ def create_or_update( :type resource_group_name: str :param certificate_order_name: Name of the certificate order. :type certificate_order_name: str - :param certificate_distinguished_name: Distinguished name to to use - for the certificate order. + :param certificate_distinguished_name: Distinguished name to use for + the certificate order. :type certificate_distinguished_name: ~azure.mgmt.web.models.AppServiceCertificateOrder :param dict custom_headers: headers that will be added to the request @@ -468,8 +468,8 @@ def update( :type resource_group_name: str :param certificate_order_name: Name of the certificate order. :type certificate_order_name: str - :param certificate_distinguished_name: Distinguished name to to use - for the certificate order. + :param certificate_distinguished_name: Distinguished name to use for + the certificate order. :type certificate_distinguished_name: ~azure.mgmt.web.models.AppServiceCertificateOrderPatchResource :param dict custom_headers: headers that will be added to the request diff --git a/azure-mgmt-web/azure/mgmt/web/operations/app_service_plans_operations.py b/azure-mgmt-web/azure/mgmt/web/operations/app_service_plans_operations.py index e9089ba1c008..564ef92378f1 100644 --- a/azure-mgmt-web/azure/mgmt/web/operations/app_service_plans_operations.py +++ b/azure-mgmt-web/azure/mgmt/web/operations/app_service_plans_operations.py @@ -41,9 +41,9 @@ def __init__(self, client, config, serializer, deserializer): def list( self, detailed=None, custom_headers=None, raw=False, **operation_config): - """Get all App Service plans for a subcription. + """Get all App Service plans for a subscription. - Get all App Service plans for a subcription. + Get all App Service plans for a subscription. :param detailed: Specify true to return all App Service plan properties. The default is false, which returns a @@ -279,13 +279,15 @@ def _create_or_update_initial( request = self._client.put(url, query_parameters, header_parameters, body_content) response = self._client.send(request, stream=False, **operation_config) - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201, 202]: raise models.DefaultErrorResponseException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('AppServicePlan', response) + if response.status_code == 201: + deserialized = self._deserialize('AppServicePlan', response) if response.status_code == 202: deserialized = self._deserialize('AppServicePlan', response) @@ -1035,9 +1037,9 @@ def internal_paging(next_link=None, raw=False): def list_metrics( self, resource_group_name, name, details=None, filter=None, custom_headers=None, raw=False, **operation_config): - """Get metrics for an App Serice plan. + """Get metrics for an App Service plan. - Get metrics for an App Serice plan. + Get metrics for an App Service plan. :param resource_group_name: Name of the resource group to which the resource belongs. @@ -1129,7 +1131,7 @@ def restart_web_apps( :type resource_group_name: str :param name: Name of the App Service plan. :type name: str - :param soft_restart: Specify true to performa a soft + :param soft_restart: Specify true to perform a soft restart, applies the configuration settings and restarts the apps if necessary. The default is false, which always restarts and reprovisions the apps @@ -1270,9 +1272,9 @@ def internal_paging(next_link=None, raw=False): def get_server_farm_skus( self, resource_group_name, name, custom_headers=None, raw=False, **operation_config): - """Gets all selectable sku's for a given App Service Plan. + """Gets all selectable SKUs for a given App Service Plan. - Gets all selectable sku's for a given App Service Plan. + Gets all selectable SKUs for a given App Service Plan. :param resource_group_name: Name of the resource group to which the resource belongs. diff --git a/azure-mgmt-web/azure/mgmt/web/operations/recommendations_operations.py b/azure-mgmt-web/azure/mgmt/web/operations/recommendations_operations.py index b9a3f4e147d2..1fcc954dfe96 100644 --- a/azure-mgmt-web/azure/mgmt/web/operations/recommendations_operations.py +++ b/azure-mgmt-web/azure/mgmt/web/operations/recommendations_operations.py @@ -517,7 +517,7 @@ def get_rule_details_by_web_app( :param update_seen: Specify true to update the last-seen timestamp of the recommendation object. :type update_seen: bool - :param recommendation_id: The GUID of the recommedation object if you + :param recommendation_id: The GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry. :type recommendation_id: str diff --git a/azure-mgmt-web/azure/mgmt/web/operations/web_apps_operations.py b/azure-mgmt-web/azure/mgmt/web/operations/web_apps_operations.py index 4ac5aa2211a3..cb0f9881730f 100644 --- a/azure-mgmt-web/azure/mgmt/web/operations/web_apps_operations.py +++ b/azure-mgmt-web/azure/mgmt/web/operations/web_apps_operations.py @@ -7751,8 +7751,9 @@ def get_network_trace_operation( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: object or ClientRawResponse if raw=true - :rtype: object or ~msrest.pipeline.ClientRawResponse + :return: list or ClientRawResponse if raw=true + :rtype: list[~azure.mgmt.web.models.NetworkTrace] or + ~msrest.pipeline.ClientRawResponse :raises: :class:`DefaultErrorResponseException` """ @@ -7792,7 +7793,7 @@ def get_network_trace_operation( if response.status_code == 200: deserialized = self._deserialize('[NetworkTrace]', response) if response.status_code == 202: - deserialized = self._deserialize('Operation', response) + deserialized = self._deserialize('[NetworkTrace]', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -7920,7 +7921,7 @@ def _start_web_site_network_trace_operation_initial( if response.status_code == 200: deserialized = self._deserialize('[NetworkTrace]', response) if response.status_code == 202: - deserialized = self._deserialize('Operation', response) + deserialized = self._deserialize('[NetworkTrace]', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -7950,10 +7951,12 @@ def start_web_site_network_trace_operation( direct response alongside the deserialized response :param polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns object or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[object] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[object]] + :return: An instance of LROPoller that returns list or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[list[~azure.mgmt.web.models.NetworkTrace]] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[list[~azure.mgmt.web.models.NetworkTrace]]] :raises: :class:`DefaultErrorResponseException` """ @@ -7969,7 +7972,7 @@ def start_web_site_network_trace_operation( ) def get_long_running_output(response): - deserialized = self._deserialize('object', response) + deserialized = self._deserialize('[NetworkTrace]', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -8131,8 +8134,9 @@ def get_network_trace_operation_v2( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: object or ClientRawResponse if raw=true - :rtype: object or ~msrest.pipeline.ClientRawResponse + :return: list or ClientRawResponse if raw=true + :rtype: list[~azure.mgmt.web.models.NetworkTrace] or + ~msrest.pipeline.ClientRawResponse :raises: :class:`DefaultErrorResponseException` """ @@ -8172,7 +8176,7 @@ def get_network_trace_operation_v2( if response.status_code == 200: deserialized = self._deserialize('[NetworkTrace]', response) if response.status_code == 202: - deserialized = self._deserialize('Operation', response) + deserialized = self._deserialize('[NetworkTrace]', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -18270,8 +18274,9 @@ def get_network_trace_operation_slot( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: object or ClientRawResponse if raw=true - :rtype: object or ~msrest.pipeline.ClientRawResponse + :return: list or ClientRawResponse if raw=true + :rtype: list[~azure.mgmt.web.models.NetworkTrace] or + ~msrest.pipeline.ClientRawResponse :raises: :class:`DefaultErrorResponseException` """ @@ -18312,7 +18317,7 @@ def get_network_trace_operation_slot( if response.status_code == 200: deserialized = self._deserialize('[NetworkTrace]', response) if response.status_code == 202: - deserialized = self._deserialize('Operation', response) + deserialized = self._deserialize('[NetworkTrace]', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -18444,7 +18449,7 @@ def _start_web_site_network_trace_operation_slot_initial( if response.status_code == 200: deserialized = self._deserialize('[NetworkTrace]', response) if response.status_code == 202: - deserialized = self._deserialize('Operation', response) + deserialized = self._deserialize('[NetworkTrace]', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -18476,10 +18481,12 @@ def start_web_site_network_trace_operation_slot( direct response alongside the deserialized response :param polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns object or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[object] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[object]] + :return: An instance of LROPoller that returns list or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[list[~azure.mgmt.web.models.NetworkTrace]] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[list[~azure.mgmt.web.models.NetworkTrace]]] :raises: :class:`DefaultErrorResponseException` """ @@ -18496,7 +18503,7 @@ def start_web_site_network_trace_operation_slot( ) def get_long_running_output(response): - deserialized = self._deserialize('object', response) + deserialized = self._deserialize('[NetworkTrace]', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -18668,8 +18675,9 @@ def get_network_trace_operation_slot_v2( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: object or ClientRawResponse if raw=true - :rtype: object or ~msrest.pipeline.ClientRawResponse + :return: list or ClientRawResponse if raw=true + :rtype: list[~azure.mgmt.web.models.NetworkTrace] or + ~msrest.pipeline.ClientRawResponse :raises: :class:`DefaultErrorResponseException` """ @@ -18710,7 +18718,7 @@ def get_network_trace_operation_slot_v2( if response.status_code == 200: deserialized = self._deserialize('[NetworkTrace]', response) if response.status_code == 202: - deserialized = self._deserialize('Operation', response) + deserialized = self._deserialize('[NetworkTrace]', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -21500,6 +21508,81 @@ def internal_paging(next_link=None, raw=False): return deserialized list_snapshots_slot.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/snapshots'} + def list_snapshots_from_dr_secondary_slot( + self, resource_group_name, name, slot, custom_headers=None, raw=False, **operation_config): + """Returns all Snapshots to the user from DRSecondary endpoint. + + Returns all Snapshots to the user from DRSecondary endpoint. + + :param resource_group_name: Name of the resource group to which the + resource belongs. + :type resource_group_name: str + :param name: Website Name. + :type name: str + :param slot: Website Slot. + :type slot: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Snapshot + :rtype: + ~azure.mgmt.web.models.SnapshotPaged[~azure.mgmt.web.models.Snapshot] + :raises: + :class:`DefaultErrorResponseException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_snapshots_from_dr_secondary_slot.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'), + 'name': self._serialize.url("name", name, 'str'), + 'slot': self._serialize.url("slot", slot, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.DefaultErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.SnapshotPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SnapshotPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_snapshots_from_dr_secondary_slot.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/snapshotsdr'} + def get_source_control_slot( self, resource_group_name, name, slot, custom_headers=None, raw=False, **operation_config): """Gets the source control configuration of an app. @@ -21932,7 +22015,7 @@ def _start_network_trace_slot_initial( if response.status_code == 200: deserialized = self._deserialize('[NetworkTrace]', response) if response.status_code == 202: - deserialized = self._deserialize('Operation', response) + deserialized = self._deserialize('[NetworkTrace]', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -21964,10 +22047,12 @@ def start_network_trace_slot( direct response alongside the deserialized response :param polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns object or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[object] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[object]] + :return: An instance of LROPoller that returns list or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[list[~azure.mgmt.web.models.NetworkTrace]] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[list[~azure.mgmt.web.models.NetworkTrace]]] :raises: :class:`DefaultErrorResponseException` """ @@ -21984,7 +22069,7 @@ def start_network_trace_slot( ) def get_long_running_output(response): - deserialized = self._deserialize('object', response) + deserialized = self._deserialize('[NetworkTrace]', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -23766,6 +23851,78 @@ def internal_paging(next_link=None, raw=False): return deserialized list_snapshots.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/snapshots'} + def list_snapshots_from_dr_secondary( + self, resource_group_name, name, custom_headers=None, raw=False, **operation_config): + """Returns all Snapshots to the user from DRSecondary endpoint. + + Returns all Snapshots to the user from DRSecondary endpoint. + + :param resource_group_name: Name of the resource group to which the + resource belongs. + :type resource_group_name: str + :param name: Website Name. + :type name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Snapshot + :rtype: + ~azure.mgmt.web.models.SnapshotPaged[~azure.mgmt.web.models.Snapshot] + :raises: + :class:`DefaultErrorResponseException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_snapshots_from_dr_secondary.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'), + 'name': self._serialize.url("name", name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.DefaultErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.SnapshotPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SnapshotPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_snapshots_from_dr_secondary.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/snapshotsdr'} + def get_source_control( self, resource_group_name, name, custom_headers=None, raw=False, **operation_config): """Gets the source control configuration of an app. @@ -24172,7 +24329,7 @@ def _start_network_trace_initial( if response.status_code == 200: deserialized = self._deserialize('[NetworkTrace]', response) if response.status_code == 202: - deserialized = self._deserialize('Operation', response) + deserialized = self._deserialize('[NetworkTrace]', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -24202,10 +24359,12 @@ def start_network_trace( direct response alongside the deserialized response :param polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns object or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[object] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[object]] + :return: An instance of LROPoller that returns list or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[list[~azure.mgmt.web.models.NetworkTrace]] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[list[~azure.mgmt.web.models.NetworkTrace]]] :raises: :class:`DefaultErrorResponseException` """ @@ -24221,7 +24380,7 @@ def start_network_trace( ) def get_long_running_output(response): - deserialized = self._deserialize('object', response) + deserialized = self._deserialize('[NetworkTrace]', response) if raw: client_raw_response = ClientRawResponse(deserialized, response)