From 0cab13765164c5d0c3fb40531e5ff14c2a0b2d70 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 15 Oct 2018 14:18:53 -0700 Subject: [PATCH 1/7] [AutoPR network/resource-manager] Remove error code from swagger (#3507) * Generated from 82c4e9010292ed02c88fd64f6d3b7e17bd417eb9 Remove error code from swagger * Packaging update of azure-mgmt-network --- azure-mgmt-network/MANIFEST.in | 1 - azure-mgmt-network/azure/__init__.py | 2 +- azure-mgmt-network/azure/mgmt/__init__.py | 2 +- .../express_route_gateways_operations.py | 2 +- azure-mgmt-network/azure_bdist_wheel.py | 54 ------------------- azure-mgmt-network/setup.cfg | 1 - azure-mgmt-network/setup.py | 17 +++--- 7 files changed, 12 insertions(+), 67 deletions(-) delete mode 100644 azure-mgmt-network/azure_bdist_wheel.py diff --git a/azure-mgmt-network/MANIFEST.in b/azure-mgmt-network/MANIFEST.in index 9ecaeb15de50..bb37a2723dae 100644 --- a/azure-mgmt-network/MANIFEST.in +++ b/azure-mgmt-network/MANIFEST.in @@ -1,2 +1 @@ include *.rst -include azure_bdist_wheel.py \ No newline at end of file diff --git a/azure-mgmt-network/azure/__init__.py b/azure-mgmt-network/azure/__init__.py index 849489fca33c..0260537a02bb 100644 --- a/azure-mgmt-network/azure/__init__.py +++ b/azure-mgmt-network/azure/__init__.py @@ -1 +1 @@ -__import__('pkg_resources').declare_namespace(__name__) +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/__init__.py b/azure-mgmt-network/azure/mgmt/__init__.py index 849489fca33c..0260537a02bb 100644 --- a/azure-mgmt-network/azure/mgmt/__init__.py +++ b/azure-mgmt-network/azure/mgmt/__init__.py @@ -1 +1 @@ -__import__('pkg_resources').declare_namespace(__name__) +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_gateways_operations.py index a8d5c40f9e03..28544395dff0 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_gateways_operations.py @@ -306,7 +306,7 @@ def get( 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, 404]: + if response.status_code not in [200]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp diff --git a/azure-mgmt-network/azure_bdist_wheel.py b/azure-mgmt-network/azure_bdist_wheel.py deleted file mode 100644 index 8a81d1b61775..000000000000 --- a/azure-mgmt-network/azure_bdist_wheel.py +++ /dev/null @@ -1,54 +0,0 @@ -#------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -#-------------------------------------------------------------------------- - -from distutils import log as logger -import os.path - -from wheel.bdist_wheel import bdist_wheel -class azure_bdist_wheel(bdist_wheel): - """The purpose of this class is to build wheel a little differently than the sdist, - without requiring to build the wheel from the sdist (i.e. you can build the wheel - directly from source). - """ - - description = "Create an Azure wheel distribution" - - user_options = bdist_wheel.user_options + \ - [('azure-namespace-package=', None, - "Name of the deepest nspkg used")] - - def initialize_options(self): - bdist_wheel.initialize_options(self) - self.azure_namespace_package = None - - def finalize_options(self): - bdist_wheel.finalize_options(self) - if self.azure_namespace_package and not self.azure_namespace_package.endswith("-nspkg"): - raise ValueError("azure_namespace_package must finish by -nspkg") - - def run(self): - if not self.distribution.install_requires: - self.distribution.install_requires = [] - self.distribution.install_requires.append( - "{}>=2.0.0".format(self.azure_namespace_package)) - bdist_wheel.run(self) - - def write_record(self, bdist_dir, distinfo_dir): - if self.azure_namespace_package: - # Split and remove last part, assuming it's "nspkg" - subparts = self.azure_namespace_package.split('-')[0:-1] - folder_with_init = [os.path.join(*subparts[0:i+1]) for i in range(len(subparts))] - for azure_sub_package in folder_with_init: - init_file = os.path.join(bdist_dir, azure_sub_package, '__init__.py') - if os.path.isfile(init_file): - logger.info("manually remove {} while building the wheel".format(init_file)) - os.remove(init_file) - else: - raise ValueError("Unable to find {}. Are you sure of your namespace package?".format(init_file)) - bdist_wheel.write_record(self, bdist_dir, distinfo_dir) -cmdclass = { - 'bdist_wheel': azure_bdist_wheel, -} diff --git a/azure-mgmt-network/setup.cfg b/azure-mgmt-network/setup.cfg index 856f4164982c..3c6e79cf31da 100644 --- a/azure-mgmt-network/setup.cfg +++ b/azure-mgmt-network/setup.cfg @@ -1,3 +1,2 @@ [bdist_wheel] universal=1 -azure-namespace-package=azure-mgmt-nspkg \ No newline at end of file diff --git a/azure-mgmt-network/setup.py b/azure-mgmt-network/setup.py index 6148dcdc0212..90b9416272f1 100644 --- a/azure-mgmt-network/setup.py +++ b/azure-mgmt-network/setup.py @@ -10,12 +10,6 @@ import os.path from io import open from setuptools import find_packages, setup -try: - from azure_bdist_wheel import cmdclass -except ImportError: - from distutils import log as logger - logger.warn("Wheel is not available, disabling bdist_wheel hook") - cmdclass = {} # Change the PACKAGE_NAME only to change folder and different name PACKAGE_NAME = "azure-mgmt-network" @@ -76,11 +70,18 @@ 'License :: OSI Approved :: MIT License', ], zip_safe=False, - packages=find_packages(exclude=["tests"]), + packages=find_packages(exclude=[ + 'tests', + # Exclude packages that will be covered by PEP420 or nspkg + 'azure', + 'azure.mgmt', + ]), install_requires=[ 'msrest>=0.5.0', 'msrestazure>=0.4.32,<2.0.0', 'azure-common~=1.1', ], - cmdclass=cmdclass + extras_require={ + ":python_version<'3.0'": ['azure-mgmt-nspkg'], + } ) From c54b9a35abf7818d827ede23b36e3e462d4126c4 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 1 Nov 2018 09:58:21 -0700 Subject: [PATCH 2/7] [AutoPR network/resource-manager] Move parameter to keep order in SDK (#3731) * Generated from 911ebf46a4a178cdcc6aaa9695f6792f4c64ab89 Move parameter to keep order in SDK * Packaging update of azure-mgmt-network --- azure-mgmt-network/MANIFEST.in | 3 + .../mgmt/network/network_management_client.py | 52 ++ .../network/v2018_08_01/models/__init__.py | 42 +- .../v2018_08_01/models/application_gateway.py | 6 + .../application_gateway_custom_error.py | 35 ++ .../application_gateway_custom_error_py3.py | 35 ++ .../application_gateway_firewall_exclusion.py | 48 ++ ...lication_gateway_firewall_exclusion_py3.py | 48 ++ .../application_gateway_http_listener.py | 6 + .../application_gateway_http_listener_py3.py | 8 +- .../models/application_gateway_py3.py | 8 +- ..._web_application_firewall_configuration.py | 16 + ..._application_firewall_configuration_py3.py | 18 +- .../evaluated_network_security_group.py | 5 + .../evaluated_network_security_group_py3.py | 7 +- .../models/express_route_circuit.py | 17 + .../models/express_route_circuit_py3.py | 19 +- .../models/express_route_circuit_sku.py | 5 +- .../models/express_route_circuit_sku_py3.py | 5 +- .../v2018_08_01/models/express_route_link.py | 86 +++ .../models/express_route_link_paged.py | 27 + .../models/express_route_link_py3.py | 86 +++ .../v2018_08_01/models/express_route_port.py | 116 ++++ .../models/express_route_port_paged.py | 27 + .../models/express_route_port_py3.py | 116 ++++ .../models/express_route_ports_location.py | 72 +++ ...express_route_ports_location_bandwidths.py | 42 ++ ...ess_route_ports_location_bandwidths_py3.py | 42 ++ .../express_route_ports_location_paged.py | 27 + .../express_route_ports_location_py3.py | 72 +++ ...ork_configuration_diagnostic_parameters.py | 18 +- ...configuration_diagnostic_parameters_py3.py | 20 +- ...twork_configuration_diagnostic_profile.py} | 4 +- ...k_configuration_diagnostic_profile_py3.py} | 4 +- ...network_configuration_diagnostic_result.py | 9 +- ...ork_configuration_diagnostic_result_py3.py | 11 +- .../models/network_management_client_enums.py | 33 ++ .../v2018_08_01/models/outbound_rule_paged.py | 27 + .../v2018_08_01/network_management_client.py | 20 + .../v2018_08_01/operations/__init__.py | 8 + .../express_route_links_operations.py | 176 ++++++ ...xpress_route_ports_locations_operations.py | 166 ++++++ .../express_route_ports_operations.py | 522 ++++++++++++++++++ ...load_balancer_outbound_rules_operations.py | 173 ++++++ .../operations/network_watchers_operations.py | 19 +- .../operations/virtual_networks_operations.py | 5 +- 46 files changed, 2259 insertions(+), 52 deletions(-) create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_custom_error.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_custom_error_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_firewall_exclusion.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_firewall_exclusion_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_link.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_link_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_link_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_port.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_port_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_port_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_bandwidths.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_bandwidths_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_py3.py rename azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/{traffic_query.py => network_configuration_diagnostic_profile.py} (94%) rename azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/{traffic_query_py3.py => network_configuration_diagnostic_profile_py3.py} (94%) create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/outbound_rule_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_links_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_ports_locations_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_ports_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/load_balancer_outbound_rules_operations.py diff --git a/azure-mgmt-network/MANIFEST.in b/azure-mgmt-network/MANIFEST.in index bb37a2723dae..6ceb27f7a96e 100644 --- a/azure-mgmt-network/MANIFEST.in +++ b/azure-mgmt-network/MANIFEST.in @@ -1 +1,4 @@ include *.rst +include azure/__init__.py +include azure/mgmt/__init__.py + diff --git a/azure-mgmt-network/azure/mgmt/network/network_management_client.py b/azure-mgmt-network/azure/mgmt/network/network_management_client.py index 1d13d18293f8..4693a070b758 100644 --- a/azure-mgmt-network/azure/mgmt/network/network_management_client.py +++ b/azure-mgmt-network/azure/mgmt/network/network_management_client.py @@ -848,6 +848,45 @@ def express_route_gateways(self): raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + @property + def express_route_links(self): + """Instance depends on the API version: + + * 2018-08-01: :class:`ExpressRouteLinksOperations` + """ + api_version = self._get_api_version('express_route_links') + if api_version == '2018-08-01': + from .v2018_08_01.operations import ExpressRouteLinksOperations as OperationClass + else: + raise NotImplementedError("APIVersion {} is not available".format(api_version)) + return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def express_route_ports(self): + """Instance depends on the API version: + + * 2018-08-01: :class:`ExpressRoutePortsOperations` + """ + api_version = self._get_api_version('express_route_ports') + if api_version == '2018-08-01': + from .v2018_08_01.operations import ExpressRoutePortsOperations as OperationClass + else: + raise NotImplementedError("APIVersion {} is not available".format(api_version)) + return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def express_route_ports_locations(self): + """Instance depends on the API version: + + * 2018-08-01: :class:`ExpressRoutePortsLocationsOperations` + """ + api_version = self._get_api_version('express_route_ports_locations') + if api_version == '2018-08-01': + from .v2018_08_01.operations import ExpressRoutePortsLocationsOperations as OperationClass + else: + raise NotImplementedError("APIVersion {} is not available".format(api_version)) + return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + @property def express_route_service_providers(self): """Instance depends on the API version: @@ -1153,6 +1192,19 @@ def load_balancer_network_interfaces(self): raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + @property + def load_balancer_outbound_rules(self): + """Instance depends on the API version: + + * 2018-08-01: :class:`LoadBalancerOutboundRulesOperations` + """ + api_version = self._get_api_version('load_balancer_outbound_rules') + if api_version == '2018-08-01': + from .v2018_08_01.operations import LoadBalancerOutboundRulesOperations as OperationClass + else: + raise NotImplementedError("APIVersion {} is not available".format(api_version)) + return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + @property def load_balancer_probes(self): """Instance depends on the API version: diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/__init__.py index 4c5a7e5cb869..7686c7a4d438 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/__init__.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/__init__.py @@ -55,6 +55,7 @@ from .application_gateway_ssl_certificate_py3 import ApplicationGatewaySslCertificate from .application_gateway_frontend_ip_configuration_py3 import ApplicationGatewayFrontendIPConfiguration from .application_gateway_frontend_port_py3 import ApplicationGatewayFrontendPort + from .application_gateway_custom_error_py3 import ApplicationGatewayCustomError from .application_gateway_http_listener_py3 import ApplicationGatewayHttpListener from .application_gateway_path_rule_py3 import ApplicationGatewayPathRule from .application_gateway_probe_health_response_match_py3 import ApplicationGatewayProbeHealthResponseMatch @@ -63,6 +64,7 @@ from .application_gateway_redirect_configuration_py3 import ApplicationGatewayRedirectConfiguration from .application_gateway_url_path_map_py3 import ApplicationGatewayUrlPathMap from .application_gateway_firewall_disabled_rule_group_py3 import ApplicationGatewayFirewallDisabledRuleGroup + from .application_gateway_firewall_exclusion_py3 import ApplicationGatewayFirewallExclusion from .application_gateway_web_application_firewall_configuration_py3 import ApplicationGatewayWebApplicationFirewallConfiguration from .application_gateway_autoscale_configuration_py3 import ApplicationGatewayAutoscaleConfiguration from .application_gateway_py3 import ApplicationGateway @@ -123,6 +125,10 @@ from .express_route_gateway_py3 import ExpressRouteGateway from .express_route_gateway_list_py3 import ExpressRouteGatewayList from .express_route_connection_list_py3 import ExpressRouteConnectionList + from .express_route_ports_location_bandwidths_py3 import ExpressRoutePortsLocationBandwidths + from .express_route_ports_location_py3 import ExpressRoutePortsLocation + from .express_route_link_py3 import ExpressRouteLink + from .express_route_port_py3 import ExpressRoutePort from .load_balancer_sku_py3 import LoadBalancerSku from .load_balancing_rule_py3 import LoadBalancingRule from .probe_py3 import Probe @@ -201,7 +207,7 @@ from .connection_monitor_result_py3 import ConnectionMonitorResult from .connection_state_snapshot_py3 import ConnectionStateSnapshot from .connection_monitor_query_result_py3 import ConnectionMonitorQueryResult - from .traffic_query_py3 import TrafficQuery + from .network_configuration_diagnostic_profile_py3 import NetworkConfigurationDiagnosticProfile from .network_configuration_diagnostic_parameters_py3 import NetworkConfigurationDiagnosticParameters from .matched_rule_py3 import MatchedRule from .network_security_rules_evaluation_result_py3 import NetworkSecurityRulesEvaluationResult @@ -322,6 +328,7 @@ from .application_gateway_ssl_certificate import ApplicationGatewaySslCertificate from .application_gateway_frontend_ip_configuration import ApplicationGatewayFrontendIPConfiguration from .application_gateway_frontend_port import ApplicationGatewayFrontendPort + from .application_gateway_custom_error import ApplicationGatewayCustomError from .application_gateway_http_listener import ApplicationGatewayHttpListener from .application_gateway_path_rule import ApplicationGatewayPathRule from .application_gateway_probe_health_response_match import ApplicationGatewayProbeHealthResponseMatch @@ -330,6 +337,7 @@ from .application_gateway_redirect_configuration import ApplicationGatewayRedirectConfiguration from .application_gateway_url_path_map import ApplicationGatewayUrlPathMap from .application_gateway_firewall_disabled_rule_group import ApplicationGatewayFirewallDisabledRuleGroup + from .application_gateway_firewall_exclusion import ApplicationGatewayFirewallExclusion from .application_gateway_web_application_firewall_configuration import ApplicationGatewayWebApplicationFirewallConfiguration from .application_gateway_autoscale_configuration import ApplicationGatewayAutoscaleConfiguration from .application_gateway import ApplicationGateway @@ -390,6 +398,10 @@ from .express_route_gateway import ExpressRouteGateway from .express_route_gateway_list import ExpressRouteGatewayList from .express_route_connection_list import ExpressRouteConnectionList + from .express_route_ports_location_bandwidths import ExpressRoutePortsLocationBandwidths + from .express_route_ports_location import ExpressRoutePortsLocation + from .express_route_link import ExpressRouteLink + from .express_route_port import ExpressRoutePort from .load_balancer_sku import LoadBalancerSku from .load_balancing_rule import LoadBalancingRule from .probe import Probe @@ -468,7 +480,7 @@ from .connection_monitor_result import ConnectionMonitorResult from .connection_state_snapshot import ConnectionStateSnapshot from .connection_monitor_query_result import ConnectionMonitorQueryResult - from .traffic_query import TrafficQuery + from .network_configuration_diagnostic_profile import NetworkConfigurationDiagnosticProfile from .network_configuration_diagnostic_parameters import NetworkConfigurationDiagnosticParameters from .matched_rule import MatchedRule from .network_security_rules_evaluation_result import NetworkSecurityRulesEvaluationResult @@ -557,12 +569,16 @@ from .express_route_service_provider_paged import ExpressRouteServiceProviderPaged from .express_route_cross_connection_paged import ExpressRouteCrossConnectionPaged from .express_route_cross_connection_peering_paged import ExpressRouteCrossConnectionPeeringPaged +from .express_route_ports_location_paged import ExpressRoutePortsLocationPaged +from .express_route_port_paged import ExpressRoutePortPaged +from .express_route_link_paged import ExpressRouteLinkPaged from .interface_endpoint_paged import InterfaceEndpointPaged from .load_balancer_paged import LoadBalancerPaged from .backend_address_pool_paged import BackendAddressPoolPaged from .frontend_ip_configuration_paged import FrontendIPConfigurationPaged from .inbound_nat_rule_paged import InboundNatRulePaged from .load_balancing_rule_paged import LoadBalancingRulePaged +from .outbound_rule_paged import OutboundRulePaged from .network_interface_paged import NetworkInterfacePaged from .probe_paged import ProbePaged from .network_interface_ip_configuration_paged import NetworkInterfaceIPConfigurationPaged @@ -619,6 +635,7 @@ ApplicationGatewaySslPolicyType, ApplicationGatewaySslPolicyName, ApplicationGatewaySslCipherSuite, + ApplicationGatewayCustomErrorStatusCode, ApplicationGatewayRequestRoutingRuleType, ApplicationGatewayRedirectType, ApplicationGatewayOperationalState, @@ -638,6 +655,9 @@ ExpressRouteCircuitSkuTier, ExpressRouteCircuitSkuFamily, ServiceProviderProvisioningState, + ExpressRouteLinkConnectorType, + ExpressRouteLinkAdminState, + ExpressRoutePortsEncapsulation, LoadBalancerSkuName, LoadDistribution, ProbeProtocol, @@ -661,6 +681,7 @@ ConnectionMonitorSourceStatus, ConnectionState, EvaluationState, + VerbosityLevel, PublicIPPrefixSkuName, VirtualNetworkPeeringState, VirtualNetworkGatewayType, @@ -734,6 +755,7 @@ 'ApplicationGatewaySslCertificate', 'ApplicationGatewayFrontendIPConfiguration', 'ApplicationGatewayFrontendPort', + 'ApplicationGatewayCustomError', 'ApplicationGatewayHttpListener', 'ApplicationGatewayPathRule', 'ApplicationGatewayProbeHealthResponseMatch', @@ -742,6 +764,7 @@ 'ApplicationGatewayRedirectConfiguration', 'ApplicationGatewayUrlPathMap', 'ApplicationGatewayFirewallDisabledRuleGroup', + 'ApplicationGatewayFirewallExclusion', 'ApplicationGatewayWebApplicationFirewallConfiguration', 'ApplicationGatewayAutoscaleConfiguration', 'ApplicationGateway', @@ -802,6 +825,10 @@ 'ExpressRouteGateway', 'ExpressRouteGatewayList', 'ExpressRouteConnectionList', + 'ExpressRoutePortsLocationBandwidths', + 'ExpressRoutePortsLocation', + 'ExpressRouteLink', + 'ExpressRoutePort', 'LoadBalancerSku', 'LoadBalancingRule', 'Probe', @@ -880,7 +907,7 @@ 'ConnectionMonitorResult', 'ConnectionStateSnapshot', 'ConnectionMonitorQueryResult', - 'TrafficQuery', + 'NetworkConfigurationDiagnosticProfile', 'NetworkConfigurationDiagnosticParameters', 'MatchedRule', 'NetworkSecurityRulesEvaluationResult', @@ -969,12 +996,16 @@ 'ExpressRouteServiceProviderPaged', 'ExpressRouteCrossConnectionPaged', 'ExpressRouteCrossConnectionPeeringPaged', + 'ExpressRoutePortsLocationPaged', + 'ExpressRoutePortPaged', + 'ExpressRouteLinkPaged', 'InterfaceEndpointPaged', 'LoadBalancerPaged', 'BackendAddressPoolPaged', 'FrontendIPConfigurationPaged', 'InboundNatRulePaged', 'LoadBalancingRulePaged', + 'OutboundRulePaged', 'NetworkInterfacePaged', 'ProbePaged', 'NetworkInterfaceIPConfigurationPaged', @@ -1030,6 +1061,7 @@ 'ApplicationGatewaySslPolicyType', 'ApplicationGatewaySslPolicyName', 'ApplicationGatewaySslCipherSuite', + 'ApplicationGatewayCustomErrorStatusCode', 'ApplicationGatewayRequestRoutingRuleType', 'ApplicationGatewayRedirectType', 'ApplicationGatewayOperationalState', @@ -1049,6 +1081,9 @@ 'ExpressRouteCircuitSkuTier', 'ExpressRouteCircuitSkuFamily', 'ServiceProviderProvisioningState', + 'ExpressRouteLinkConnectorType', + 'ExpressRouteLinkAdminState', + 'ExpressRoutePortsEncapsulation', 'LoadBalancerSkuName', 'LoadDistribution', 'ProbeProtocol', @@ -1072,6 +1107,7 @@ 'ConnectionMonitorSourceStatus', 'ConnectionState', 'EvaluationState', + 'VerbosityLevel', 'PublicIPPrefixSkuName', 'VirtualNetworkPeeringState', 'VirtualNetworkGatewayType', diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway.py index b0e63598a14d..4f104e2e4f1f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway.py @@ -105,6 +105,10 @@ class ApplicationGateway(Resource): :param provisioning_state: Provisioning state of the application gateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. :type provisioning_state: str + :param custom_error_configurations: Custom error configurations of the + application gateway resource. + :type custom_error_configurations: + list[~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayCustomError] :param etag: A unique read-only string that changes whenever the resource is updated. :type etag: str @@ -147,6 +151,7 @@ class ApplicationGateway(Resource): 'autoscale_configuration': {'key': 'properties.autoscaleConfiguration', 'type': 'ApplicationGatewayAutoscaleConfiguration'}, 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'custom_error_configurations': {'key': 'properties.customErrorConfigurations', 'type': '[ApplicationGatewayCustomError]'}, 'etag': {'key': 'etag', 'type': 'str'}, 'zones': {'key': 'zones', 'type': '[str]'}, } @@ -175,5 +180,6 @@ def __init__(self, **kwargs): self.autoscale_configuration = kwargs.get('autoscale_configuration', None) self.resource_guid = kwargs.get('resource_guid', None) self.provisioning_state = kwargs.get('provisioning_state', None) + self.custom_error_configurations = kwargs.get('custom_error_configurations', None) self.etag = kwargs.get('etag', None) self.zones = kwargs.get('zones', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_custom_error.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_custom_error.py new file mode 100644 index 000000000000..da1da7a67bef --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_custom_error.py @@ -0,0 +1,35 @@ +# 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 ApplicationGatewayCustomError(Model): + """Customer error of an application gateway. + + :param status_code: Status code of the application gateway customer error. + Possible values include: 'HttpStatus403', 'HttpStatus502' + :type status_code: str or + ~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayCustomErrorStatusCode + :param custom_error_page_url: Error page URL of the application gateway + customer error. + :type custom_error_page_url: str + """ + + _attribute_map = { + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'custom_error_page_url': {'key': 'customErrorPageUrl', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayCustomError, self).__init__(**kwargs) + self.status_code = kwargs.get('status_code', None) + self.custom_error_page_url = kwargs.get('custom_error_page_url', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_custom_error_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_custom_error_py3.py new file mode 100644 index 000000000000..adc214f5265c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_custom_error_py3.py @@ -0,0 +1,35 @@ +# 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 ApplicationGatewayCustomError(Model): + """Customer error of an application gateway. + + :param status_code: Status code of the application gateway customer error. + Possible values include: 'HttpStatus403', 'HttpStatus502' + :type status_code: str or + ~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayCustomErrorStatusCode + :param custom_error_page_url: Error page URL of the application gateway + customer error. + :type custom_error_page_url: str + """ + + _attribute_map = { + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'custom_error_page_url': {'key': 'customErrorPageUrl', 'type': 'str'}, + } + + def __init__(self, *, status_code=None, custom_error_page_url: str=None, **kwargs) -> None: + super(ApplicationGatewayCustomError, self).__init__(**kwargs) + self.status_code = status_code + self.custom_error_page_url = custom_error_page_url diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_firewall_exclusion.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_firewall_exclusion.py new file mode 100644 index 000000000000..93de07754023 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_firewall_exclusion.py @@ -0,0 +1,48 @@ +# 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 ApplicationGatewayFirewallExclusion(Model): + """Allow to exclude some variable satisfy the condition for the WAF check. + + All required parameters must be populated in order to send to Azure. + + :param match_variable: Required. The variable to be excluded. + :type match_variable: str + :param selector_match_operator: Required. When matchVariable is a + collection, operate on the selector to specify which elements in the + collection this exclusion applies to. + :type selector_match_operator: str + :param selector: Required. When matchVariable is a collection, operator + used to specify which elements in the collection this exclusion applies + to. + :type selector: str + """ + + _validation = { + 'match_variable': {'required': True}, + 'selector_match_operator': {'required': True}, + 'selector': {'required': True}, + } + + _attribute_map = { + 'match_variable': {'key': 'matchVariable', 'type': 'str'}, + 'selector_match_operator': {'key': 'selectorMatchOperator', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayFirewallExclusion, self).__init__(**kwargs) + self.match_variable = kwargs.get('match_variable', None) + self.selector_match_operator = kwargs.get('selector_match_operator', None) + self.selector = kwargs.get('selector', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_firewall_exclusion_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_firewall_exclusion_py3.py new file mode 100644 index 000000000000..75fa2cdbcf29 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_firewall_exclusion_py3.py @@ -0,0 +1,48 @@ +# 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 ApplicationGatewayFirewallExclusion(Model): + """Allow to exclude some variable satisfy the condition for the WAF check. + + All required parameters must be populated in order to send to Azure. + + :param match_variable: Required. The variable to be excluded. + :type match_variable: str + :param selector_match_operator: Required. When matchVariable is a + collection, operate on the selector to specify which elements in the + collection this exclusion applies to. + :type selector_match_operator: str + :param selector: Required. When matchVariable is a collection, operator + used to specify which elements in the collection this exclusion applies + to. + :type selector: str + """ + + _validation = { + 'match_variable': {'required': True}, + 'selector_match_operator': {'required': True}, + 'selector': {'required': True}, + } + + _attribute_map = { + 'match_variable': {'key': 'matchVariable', 'type': 'str'}, + 'selector_match_operator': {'key': 'selectorMatchOperator', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + } + + def __init__(self, *, match_variable: str, selector_match_operator: str, selector: str, **kwargs) -> None: + super(ApplicationGatewayFirewallExclusion, self).__init__(**kwargs) + self.match_variable = match_variable + self.selector_match_operator = selector_match_operator + self.selector = selector diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_http_listener.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_http_listener.py index 76292850ac5b..7169600bb488 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_http_listener.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_http_listener.py @@ -38,6 +38,10 @@ class ApplicationGatewayHttpListener(SubResource): :param provisioning_state: Provisioning state of the HTTP listener resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. :type provisioning_state: str + :param custom_error_configurations: Custom error configurations of the + HTTP listener. + :type custom_error_configurations: + list[~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayCustomError] :param name: Name of the HTTP listener that is unique within an Application Gateway. :type name: str @@ -57,6 +61,7 @@ class ApplicationGatewayHttpListener(SubResource): 'ssl_certificate': {'key': 'properties.sslCertificate', 'type': 'SubResource'}, 'require_server_name_indication': {'key': 'properties.requireServerNameIndication', 'type': 'bool'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'custom_error_configurations': {'key': 'properties.customErrorConfigurations', 'type': '[ApplicationGatewayCustomError]'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, @@ -71,6 +76,7 @@ def __init__(self, **kwargs): self.ssl_certificate = kwargs.get('ssl_certificate', None) self.require_server_name_indication = kwargs.get('require_server_name_indication', None) self.provisioning_state = kwargs.get('provisioning_state', None) + self.custom_error_configurations = kwargs.get('custom_error_configurations', None) self.name = kwargs.get('name', None) self.etag = kwargs.get('etag', None) self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_http_listener_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_http_listener_py3.py index 3961fb7637d7..683d784d5f82 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_http_listener_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_http_listener_py3.py @@ -38,6 +38,10 @@ class ApplicationGatewayHttpListener(SubResource): :param provisioning_state: Provisioning state of the HTTP listener resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. :type provisioning_state: str + :param custom_error_configurations: Custom error configurations of the + HTTP listener. + :type custom_error_configurations: + list[~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayCustomError] :param name: Name of the HTTP listener that is unique within an Application Gateway. :type name: str @@ -57,12 +61,13 @@ class ApplicationGatewayHttpListener(SubResource): 'ssl_certificate': {'key': 'properties.sslCertificate', 'type': 'SubResource'}, 'require_server_name_indication': {'key': 'properties.requireServerNameIndication', 'type': 'bool'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'custom_error_configurations': {'key': 'properties.customErrorConfigurations', 'type': '[ApplicationGatewayCustomError]'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, id: str=None, frontend_ip_configuration=None, frontend_port=None, protocol=None, host_name: str=None, ssl_certificate=None, require_server_name_indication: bool=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + def __init__(self, *, id: str=None, frontend_ip_configuration=None, frontend_port=None, protocol=None, host_name: str=None, ssl_certificate=None, require_server_name_indication: bool=None, provisioning_state: str=None, custom_error_configurations=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: super(ApplicationGatewayHttpListener, self).__init__(id=id, **kwargs) self.frontend_ip_configuration = frontend_ip_configuration self.frontend_port = frontend_port @@ -71,6 +76,7 @@ def __init__(self, *, id: str=None, frontend_ip_configuration=None, frontend_por self.ssl_certificate = ssl_certificate self.require_server_name_indication = require_server_name_indication self.provisioning_state = provisioning_state + self.custom_error_configurations = custom_error_configurations self.name = name self.etag = etag self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_py3.py index 894aae564b12..767732d47c70 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_py3.py @@ -105,6 +105,10 @@ class ApplicationGateway(Resource): :param provisioning_state: Provisioning state of the application gateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. :type provisioning_state: str + :param custom_error_configurations: Custom error configurations of the + application gateway resource. + :type custom_error_configurations: + list[~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayCustomError] :param etag: A unique read-only string that changes whenever the resource is updated. :type etag: str @@ -147,11 +151,12 @@ class ApplicationGateway(Resource): 'autoscale_configuration': {'key': 'properties.autoscaleConfiguration', 'type': 'ApplicationGatewayAutoscaleConfiguration'}, 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'custom_error_configurations': {'key': 'properties.customErrorConfigurations', 'type': '[ApplicationGatewayCustomError]'}, 'etag': {'key': 'etag', 'type': 'str'}, 'zones': {'key': 'zones', 'type': '[str]'}, } - def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, ssl_policy=None, gateway_ip_configurations=None, authentication_certificates=None, trusted_root_certificates=None, ssl_certificates=None, frontend_ip_configurations=None, frontend_ports=None, probes=None, backend_address_pools=None, backend_http_settings_collection=None, http_listeners=None, url_path_maps=None, request_routing_rules=None, redirect_configurations=None, web_application_firewall_configuration=None, enable_http2: bool=None, enable_fips: bool=None, autoscale_configuration=None, resource_guid: str=None, provisioning_state: str=None, etag: str=None, zones=None, **kwargs) -> None: + def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, ssl_policy=None, gateway_ip_configurations=None, authentication_certificates=None, trusted_root_certificates=None, ssl_certificates=None, frontend_ip_configurations=None, frontend_ports=None, probes=None, backend_address_pools=None, backend_http_settings_collection=None, http_listeners=None, url_path_maps=None, request_routing_rules=None, redirect_configurations=None, web_application_firewall_configuration=None, enable_http2: bool=None, enable_fips: bool=None, autoscale_configuration=None, resource_guid: str=None, provisioning_state: str=None, custom_error_configurations=None, etag: str=None, zones=None, **kwargs) -> None: super(ApplicationGateway, self).__init__(id=id, location=location, tags=tags, **kwargs) self.sku = sku self.ssl_policy = ssl_policy @@ -175,5 +180,6 @@ def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, ssl self.autoscale_configuration = autoscale_configuration self.resource_guid = resource_guid self.provisioning_state = provisioning_state + self.custom_error_configurations = custom_error_configurations self.etag = etag self.zones = zones diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_web_application_firewall_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_web_application_firewall_configuration.py index 4658d15fc1cb..155dc452de99 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_web_application_firewall_configuration.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_web_application_firewall_configuration.py @@ -36,6 +36,14 @@ class ApplicationGatewayWebApplicationFirewallConfiguration(Model): :type request_body_check: bool :param max_request_body_size: Maxium request body size for WAF. :type max_request_body_size: int + :param max_request_body_size_in_kb: Maxium request body size in Kb for + WAF. + :type max_request_body_size_in_kb: int + :param file_upload_limit_in_mb: Maxium file upload size in Mb for WAF. + :type file_upload_limit_in_mb: int + :param exclusions: The exclusion list. + :type exclusions: + list[~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayFirewallExclusion] """ _validation = { @@ -44,6 +52,8 @@ class ApplicationGatewayWebApplicationFirewallConfiguration(Model): 'rule_set_type': {'required': True}, 'rule_set_version': {'required': True}, 'max_request_body_size': {'maximum': 128, 'minimum': 8}, + 'max_request_body_size_in_kb': {'maximum': 128, 'minimum': 8}, + 'file_upload_limit_in_mb': {'maximum': 500, 'minimum': 0}, } _attribute_map = { @@ -54,6 +64,9 @@ class ApplicationGatewayWebApplicationFirewallConfiguration(Model): 'disabled_rule_groups': {'key': 'disabledRuleGroups', 'type': '[ApplicationGatewayFirewallDisabledRuleGroup]'}, 'request_body_check': {'key': 'requestBodyCheck', 'type': 'bool'}, 'max_request_body_size': {'key': 'maxRequestBodySize', 'type': 'int'}, + 'max_request_body_size_in_kb': {'key': 'maxRequestBodySizeInKb', 'type': 'int'}, + 'file_upload_limit_in_mb': {'key': 'fileUploadLimitInMb', 'type': 'int'}, + 'exclusions': {'key': 'exclusions', 'type': '[ApplicationGatewayFirewallExclusion]'}, } def __init__(self, **kwargs): @@ -65,3 +78,6 @@ def __init__(self, **kwargs): self.disabled_rule_groups = kwargs.get('disabled_rule_groups', None) self.request_body_check = kwargs.get('request_body_check', None) self.max_request_body_size = kwargs.get('max_request_body_size', None) + self.max_request_body_size_in_kb = kwargs.get('max_request_body_size_in_kb', None) + self.file_upload_limit_in_mb = kwargs.get('file_upload_limit_in_mb', None) + self.exclusions = kwargs.get('exclusions', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_web_application_firewall_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_web_application_firewall_configuration_py3.py index 55cd31b00be4..fd26aa3a5b01 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_web_application_firewall_configuration_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_web_application_firewall_configuration_py3.py @@ -36,6 +36,14 @@ class ApplicationGatewayWebApplicationFirewallConfiguration(Model): :type request_body_check: bool :param max_request_body_size: Maxium request body size for WAF. :type max_request_body_size: int + :param max_request_body_size_in_kb: Maxium request body size in Kb for + WAF. + :type max_request_body_size_in_kb: int + :param file_upload_limit_in_mb: Maxium file upload size in Mb for WAF. + :type file_upload_limit_in_mb: int + :param exclusions: The exclusion list. + :type exclusions: + list[~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayFirewallExclusion] """ _validation = { @@ -44,6 +52,8 @@ class ApplicationGatewayWebApplicationFirewallConfiguration(Model): 'rule_set_type': {'required': True}, 'rule_set_version': {'required': True}, 'max_request_body_size': {'maximum': 128, 'minimum': 8}, + 'max_request_body_size_in_kb': {'maximum': 128, 'minimum': 8}, + 'file_upload_limit_in_mb': {'maximum': 500, 'minimum': 0}, } _attribute_map = { @@ -54,9 +64,12 @@ class ApplicationGatewayWebApplicationFirewallConfiguration(Model): 'disabled_rule_groups': {'key': 'disabledRuleGroups', 'type': '[ApplicationGatewayFirewallDisabledRuleGroup]'}, 'request_body_check': {'key': 'requestBodyCheck', 'type': 'bool'}, 'max_request_body_size': {'key': 'maxRequestBodySize', 'type': 'int'}, + 'max_request_body_size_in_kb': {'key': 'maxRequestBodySizeInKb', 'type': 'int'}, + 'file_upload_limit_in_mb': {'key': 'fileUploadLimitInMb', 'type': 'int'}, + 'exclusions': {'key': 'exclusions', 'type': '[ApplicationGatewayFirewallExclusion]'}, } - def __init__(self, *, enabled: bool, firewall_mode, rule_set_type: str, rule_set_version: str, disabled_rule_groups=None, request_body_check: bool=None, max_request_body_size: int=None, **kwargs) -> None: + def __init__(self, *, enabled: bool, firewall_mode, rule_set_type: str, rule_set_version: str, disabled_rule_groups=None, request_body_check: bool=None, max_request_body_size: int=None, max_request_body_size_in_kb: int=None, file_upload_limit_in_mb: int=None, exclusions=None, **kwargs) -> None: super(ApplicationGatewayWebApplicationFirewallConfiguration, self).__init__(**kwargs) self.enabled = enabled self.firewall_mode = firewall_mode @@ -65,3 +78,6 @@ def __init__(self, *, enabled: bool, firewall_mode, rule_set_type: str, rule_set self.disabled_rule_groups = disabled_rule_groups self.request_body_check = request_body_check self.max_request_body_size = max_request_body_size + self.max_request_body_size_in_kb = max_request_body_size_in_kb + self.file_upload_limit_in_mb = file_upload_limit_in_mb + self.exclusions = exclusions diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/evaluated_network_security_group.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/evaluated_network_security_group.py index 22d13bc85570..2cd91bf6a876 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/evaluated_network_security_group.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/evaluated_network_security_group.py @@ -20,6 +20,9 @@ class EvaluatedNetworkSecurityGroup(Model): :param network_security_group_id: Network security group ID. :type network_security_group_id: str + :param applied_to: Resource ID of nic or subnet to which network security + group is applied. + :type applied_to: str :param matched_rule: :type matched_rule: ~azure.mgmt.network.v2018_08_01.models.MatchedRule :ivar rules_evaluation_result: List of network security rules evaluation @@ -34,6 +37,7 @@ class EvaluatedNetworkSecurityGroup(Model): _attribute_map = { 'network_security_group_id': {'key': 'networkSecurityGroupId', 'type': 'str'}, + 'applied_to': {'key': 'appliedTo', 'type': 'str'}, 'matched_rule': {'key': 'matchedRule', 'type': 'MatchedRule'}, 'rules_evaluation_result': {'key': 'rulesEvaluationResult', 'type': '[NetworkSecurityRulesEvaluationResult]'}, } @@ -41,5 +45,6 @@ class EvaluatedNetworkSecurityGroup(Model): def __init__(self, **kwargs): super(EvaluatedNetworkSecurityGroup, self).__init__(**kwargs) self.network_security_group_id = kwargs.get('network_security_group_id', None) + self.applied_to = kwargs.get('applied_to', None) self.matched_rule = kwargs.get('matched_rule', None) self.rules_evaluation_result = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/evaluated_network_security_group_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/evaluated_network_security_group_py3.py index b29d2c935adb..d2cdb31df3b6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/evaluated_network_security_group_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/evaluated_network_security_group_py3.py @@ -20,6 +20,9 @@ class EvaluatedNetworkSecurityGroup(Model): :param network_security_group_id: Network security group ID. :type network_security_group_id: str + :param applied_to: Resource ID of nic or subnet to which network security + group is applied. + :type applied_to: str :param matched_rule: :type matched_rule: ~azure.mgmt.network.v2018_08_01.models.MatchedRule :ivar rules_evaluation_result: List of network security rules evaluation @@ -34,12 +37,14 @@ class EvaluatedNetworkSecurityGroup(Model): _attribute_map = { 'network_security_group_id': {'key': 'networkSecurityGroupId', 'type': 'str'}, + 'applied_to': {'key': 'appliedTo', 'type': 'str'}, 'matched_rule': {'key': 'matchedRule', 'type': 'MatchedRule'}, 'rules_evaluation_result': {'key': 'rulesEvaluationResult', 'type': '[NetworkSecurityRulesEvaluationResult]'}, } - def __init__(self, *, network_security_group_id: str=None, matched_rule=None, **kwargs) -> None: + def __init__(self, *, network_security_group_id: str=None, applied_to: str=None, matched_rule=None, **kwargs) -> None: super(EvaluatedNetworkSecurityGroup, self).__init__(**kwargs) self.network_security_group_id = network_security_group_id + self.applied_to = applied_to self.matched_rule = matched_rule self.rules_evaluation_result = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit.py index 3a8423be9f1a..0cfbafe84926 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit.py @@ -55,6 +55,16 @@ class ExpressRouteCircuit(Resource): :param service_provider_properties: The ServiceProviderProperties. :type service_provider_properties: ~azure.mgmt.network.v2018_08_01.models.ExpressRouteCircuitServiceProviderProperties + :param express_route_port: The reference to the ExpressRoutePort resource + when the circuit is provisioned on an ExpressRoutePort resource. + :type express_route_port: + ~azure.mgmt.network.v2018_08_01.models.SubResource + :param bandwidth_in_gbps: The bandwidth of the circuit when the circuit is + provisioned on an ExpressRoutePort resource. + :type bandwidth_in_gbps: float + :ivar stag: The identifier of the circuit traffic. Outer tag for QinQ + encapsulation. + :vartype stag: int :param provisioning_state: Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. :type provisioning_state: str @@ -70,6 +80,7 @@ class ExpressRouteCircuit(Resource): _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, + 'stag': {'readonly': True}, 'etag': {'readonly': True}, } @@ -88,6 +99,9 @@ class ExpressRouteCircuit(Resource): 'service_key': {'key': 'properties.serviceKey', 'type': 'str'}, 'service_provider_notes': {'key': 'properties.serviceProviderNotes', 'type': 'str'}, 'service_provider_properties': {'key': 'properties.serviceProviderProperties', 'type': 'ExpressRouteCircuitServiceProviderProperties'}, + 'express_route_port': {'key': 'properties.expressRoutePort', 'type': 'SubResource'}, + 'bandwidth_in_gbps': {'key': 'properties.bandwidthInGbps', 'type': 'float'}, + 'stag': {'key': 'properties.stag', 'type': 'int'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'gateway_manager_etag': {'key': 'properties.gatewayManagerEtag', 'type': 'str'}, 'allow_global_reach': {'key': 'properties.allowGlobalReach', 'type': 'bool'}, @@ -105,6 +119,9 @@ def __init__(self, **kwargs): self.service_key = kwargs.get('service_key', None) self.service_provider_notes = kwargs.get('service_provider_notes', None) self.service_provider_properties = kwargs.get('service_provider_properties', None) + self.express_route_port = kwargs.get('express_route_port', None) + self.bandwidth_in_gbps = kwargs.get('bandwidth_in_gbps', None) + self.stag = None self.provisioning_state = kwargs.get('provisioning_state', None) self.gateway_manager_etag = kwargs.get('gateway_manager_etag', None) self.allow_global_reach = kwargs.get('allow_global_reach', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_py3.py index 06a104c8b458..73b55cbf7b5f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_py3.py @@ -55,6 +55,16 @@ class ExpressRouteCircuit(Resource): :param service_provider_properties: The ServiceProviderProperties. :type service_provider_properties: ~azure.mgmt.network.v2018_08_01.models.ExpressRouteCircuitServiceProviderProperties + :param express_route_port: The reference to the ExpressRoutePort resource + when the circuit is provisioned on an ExpressRoutePort resource. + :type express_route_port: + ~azure.mgmt.network.v2018_08_01.models.SubResource + :param bandwidth_in_gbps: The bandwidth of the circuit when the circuit is + provisioned on an ExpressRoutePort resource. + :type bandwidth_in_gbps: float + :ivar stag: The identifier of the circuit traffic. Outer tag for QinQ + encapsulation. + :vartype stag: int :param provisioning_state: Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. :type provisioning_state: str @@ -70,6 +80,7 @@ class ExpressRouteCircuit(Resource): _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, + 'stag': {'readonly': True}, 'etag': {'readonly': True}, } @@ -88,13 +99,16 @@ class ExpressRouteCircuit(Resource): 'service_key': {'key': 'properties.serviceKey', 'type': 'str'}, 'service_provider_notes': {'key': 'properties.serviceProviderNotes', 'type': 'str'}, 'service_provider_properties': {'key': 'properties.serviceProviderProperties', 'type': 'ExpressRouteCircuitServiceProviderProperties'}, + 'express_route_port': {'key': 'properties.expressRoutePort', 'type': 'SubResource'}, + 'bandwidth_in_gbps': {'key': 'properties.bandwidthInGbps', 'type': 'float'}, + 'stag': {'key': 'properties.stag', 'type': 'int'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'gateway_manager_etag': {'key': 'properties.gatewayManagerEtag', 'type': 'str'}, 'allow_global_reach': {'key': 'properties.allowGlobalReach', 'type': 'bool'}, 'etag': {'key': 'etag', 'type': 'str'}, } - def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, allow_classic_operations: bool=None, circuit_provisioning_state: str=None, service_provider_provisioning_state=None, authorizations=None, peerings=None, service_key: str=None, service_provider_notes: str=None, service_provider_properties=None, provisioning_state: str=None, gateway_manager_etag: str=None, allow_global_reach: bool=None, **kwargs) -> None: + def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, allow_classic_operations: bool=None, circuit_provisioning_state: str=None, service_provider_provisioning_state=None, authorizations=None, peerings=None, service_key: str=None, service_provider_notes: str=None, service_provider_properties=None, express_route_port=None, bandwidth_in_gbps: float=None, provisioning_state: str=None, gateway_manager_etag: str=None, allow_global_reach: bool=None, **kwargs) -> None: super(ExpressRouteCircuit, self).__init__(id=id, location=location, tags=tags, **kwargs) self.sku = sku self.allow_classic_operations = allow_classic_operations @@ -105,6 +119,9 @@ def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, all self.service_key = service_key self.service_provider_notes = service_provider_notes self.service_provider_properties = service_provider_properties + self.express_route_port = express_route_port + self.bandwidth_in_gbps = bandwidth_in_gbps + self.stag = None self.provisioning_state = provisioning_state self.gateway_manager_etag = gateway_manager_etag self.allow_global_reach = allow_global_reach diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_sku.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_sku.py index 27d030efe05b..60d04104cc0a 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_sku.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_sku.py @@ -17,8 +17,9 @@ class ExpressRouteCircuitSku(Model): :param name: The name of the SKU. :type name: str - :param tier: The tier of the SKU. Possible values are 'Standard' and - 'Premium'. Possible values include: 'Standard', 'Premium' + :param tier: The tier of the SKU. Possible values are 'Standard', + 'Premium' or 'Basic'. Possible values include: 'Standard', 'Premium', + 'Basic' :type tier: str or ~azure.mgmt.network.v2018_08_01.models.ExpressRouteCircuitSkuTier :param family: The family of the SKU. Possible values are: 'UnlimitedData' diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_sku_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_sku_py3.py index 565fc298dd06..418166cc80f9 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_sku_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_sku_py3.py @@ -17,8 +17,9 @@ class ExpressRouteCircuitSku(Model): :param name: The name of the SKU. :type name: str - :param tier: The tier of the SKU. Possible values are 'Standard' and - 'Premium'. Possible values include: 'Standard', 'Premium' + :param tier: The tier of the SKU. Possible values are 'Standard', + 'Premium' or 'Basic'. Possible values include: 'Standard', 'Premium', + 'Basic' :type tier: str or ~azure.mgmt.network.v2018_08_01.models.ExpressRouteCircuitSkuTier :param family: The family of the SKU. Possible values are: 'UnlimitedData' diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_link.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_link.py new file mode 100644 index 000000000000..2c8c300fd9f0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_link.py @@ -0,0 +1,86 @@ +# 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 .sub_resource import SubResource + + +class ExpressRouteLink(SubResource): + """ExpressRouteLink. + + ExpressRouteLink child resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar router_name: Name of Azure router associated with physical port. + :vartype router_name: str + :ivar interface_name: Name of Azure router interface. + :vartype interface_name: str + :ivar patch_panel_id: Mapping between physical port to patch panel port. + :vartype patch_panel_id: str + :ivar rack_id: Mapping of physical patch panel to rack. + :vartype rack_id: str + :ivar connector_type: Physical fiber port type. Possible values include: + 'LC', 'SC' + :vartype connector_type: str or + ~azure.mgmt.network.v2018_08_01.models.ExpressRouteLinkConnectorType + :param admin_state: Administrative state of the physical port. Possible + values include: 'Enabled', 'Disabled' + :type admin_state: str or + ~azure.mgmt.network.v2018_08_01.models.ExpressRouteLinkAdminState + :ivar provisioning_state: The provisioning state of the ExpressRouteLink + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: Name of child port resource that is unique among child port + resources of the parent. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'router_name': {'readonly': True}, + 'interface_name': {'readonly': True}, + 'patch_panel_id': {'readonly': True}, + 'rack_id': {'readonly': True}, + 'connector_type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'router_name': {'key': 'properties.routerName', 'type': 'str'}, + 'interface_name': {'key': 'properties.interfaceName', 'type': 'str'}, + 'patch_panel_id': {'key': 'properties.patchPanelId', 'type': 'str'}, + 'rack_id': {'key': 'properties.rackId', 'type': 'str'}, + 'connector_type': {'key': 'properties.connectorType', 'type': 'str'}, + 'admin_state': {'key': 'properties.adminState', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteLink, self).__init__(**kwargs) + self.router_name = None + self.interface_name = None + self.patch_panel_id = None + self.rack_id = None + self.connector_type = None + self.admin_state = kwargs.get('admin_state', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_link_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_link_paged.py new file mode 100644 index 000000000000..91074370bccc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_link_paged.py @@ -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 ExpressRouteLinkPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteLink ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteLink]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteLinkPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_link_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_link_py3.py new file mode 100644 index 000000000000..74d44c0f9b7c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_link_py3.py @@ -0,0 +1,86 @@ +# 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 .sub_resource_py3 import SubResource + + +class ExpressRouteLink(SubResource): + """ExpressRouteLink. + + ExpressRouteLink child resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar router_name: Name of Azure router associated with physical port. + :vartype router_name: str + :ivar interface_name: Name of Azure router interface. + :vartype interface_name: str + :ivar patch_panel_id: Mapping between physical port to patch panel port. + :vartype patch_panel_id: str + :ivar rack_id: Mapping of physical patch panel to rack. + :vartype rack_id: str + :ivar connector_type: Physical fiber port type. Possible values include: + 'LC', 'SC' + :vartype connector_type: str or + ~azure.mgmt.network.v2018_08_01.models.ExpressRouteLinkConnectorType + :param admin_state: Administrative state of the physical port. Possible + values include: 'Enabled', 'Disabled' + :type admin_state: str or + ~azure.mgmt.network.v2018_08_01.models.ExpressRouteLinkAdminState + :ivar provisioning_state: The provisioning state of the ExpressRouteLink + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: Name of child port resource that is unique among child port + resources of the parent. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'router_name': {'readonly': True}, + 'interface_name': {'readonly': True}, + 'patch_panel_id': {'readonly': True}, + 'rack_id': {'readonly': True}, + 'connector_type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'router_name': {'key': 'properties.routerName', 'type': 'str'}, + 'interface_name': {'key': 'properties.interfaceName', 'type': 'str'}, + 'patch_panel_id': {'key': 'properties.patchPanelId', 'type': 'str'}, + 'rack_id': {'key': 'properties.rackId', 'type': 'str'}, + 'connector_type': {'key': 'properties.connectorType', 'type': 'str'}, + 'admin_state': {'key': 'properties.adminState', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, admin_state=None, name: str=None, **kwargs) -> None: + super(ExpressRouteLink, self).__init__(id=id, **kwargs) + self.router_name = None + self.interface_name = None + self.patch_panel_id = None + self.rack_id = None + self.connector_type = None + self.admin_state = admin_state + self.provisioning_state = None + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_port.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_port.py new file mode 100644 index 000000000000..c63ba29998ef --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_port.py @@ -0,0 +1,116 @@ +# 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 .resource import Resource + + +class ExpressRoutePort(Resource): + """ExpressRoute Port. + + ExpressRoutePort resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param peering_location: The name of the peering location that the + ExpressRoutePort is mapped to physically. + :type peering_location: str + :param bandwidth_in_gbps: Bandwidth of procured ports in Gbps + :type bandwidth_in_gbps: int + :ivar provisioned_bandwidth_in_gbps: Aggregate Gbps of associated circuit + bandwidths. + :vartype provisioned_bandwidth_in_gbps: float + :ivar mtu: Maximum transmission unit of the physical port pair(s) + :vartype mtu: str + :param encapsulation: Encapsulation method on physical ports. Possible + values include: 'Dot1Q', 'QinQ' + :type encapsulation: str or + ~azure.mgmt.network.v2018_08_01.models.ExpressRoutePortsEncapsulation + :ivar ether_type: Ethertype of the physical port. + :vartype ether_type: str + :ivar allocation_date: Date of the physical port allocation to be used in + Letter of Authorization. + :vartype allocation_date: str + :param links: ExpressRouteLink Sub-Resources. The set of physical links of + the ExpressRoutePort resource + :type links: list[~azure.mgmt.network.v2018_08_01.models.ExpressRouteLink] + :ivar circuits: Reference the ExpressRoute circuit(s) that are provisioned + on this ExpressRoutePort resource. + :vartype circuits: + list[~azure.mgmt.network.v2018_08_01.models.SubResource] + :ivar provisioning_state: The provisioning state of the ExpressRoutePort + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param resource_guid: The resource GUID property of the ExpressRoutePort + resource. + :type resource_guid: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioned_bandwidth_in_gbps': {'readonly': True}, + 'mtu': {'readonly': True}, + 'ether_type': {'readonly': True}, + 'allocation_date': {'readonly': True}, + 'circuits': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'peering_location': {'key': 'properties.peeringLocation', 'type': 'str'}, + 'bandwidth_in_gbps': {'key': 'properties.bandwidthInGbps', 'type': 'int'}, + 'provisioned_bandwidth_in_gbps': {'key': 'properties.provisionedBandwidthInGbps', 'type': 'float'}, + 'mtu': {'key': 'properties.mtu', 'type': 'str'}, + 'encapsulation': {'key': 'properties.encapsulation', 'type': 'str'}, + 'ether_type': {'key': 'properties.etherType', 'type': 'str'}, + 'allocation_date': {'key': 'properties.allocationDate', 'type': 'str'}, + 'links': {'key': 'properties.links', 'type': '[ExpressRouteLink]'}, + 'circuits': {'key': 'properties.circuits', 'type': '[SubResource]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRoutePort, self).__init__(**kwargs) + self.peering_location = kwargs.get('peering_location', None) + self.bandwidth_in_gbps = kwargs.get('bandwidth_in_gbps', None) + self.provisioned_bandwidth_in_gbps = None + self.mtu = None + self.encapsulation = kwargs.get('encapsulation', None) + self.ether_type = None + self.allocation_date = None + self.links = kwargs.get('links', None) + self.circuits = None + self.provisioning_state = None + self.resource_guid = kwargs.get('resource_guid', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_port_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_port_paged.py new file mode 100644 index 000000000000..3ff97b46881e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_port_paged.py @@ -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 ExpressRoutePortPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRoutePort ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRoutePort]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRoutePortPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_port_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_port_py3.py new file mode 100644 index 000000000000..7d15edef88c2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_port_py3.py @@ -0,0 +1,116 @@ +# 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 .resource_py3 import Resource + + +class ExpressRoutePort(Resource): + """ExpressRoute Port. + + ExpressRoutePort resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param peering_location: The name of the peering location that the + ExpressRoutePort is mapped to physically. + :type peering_location: str + :param bandwidth_in_gbps: Bandwidth of procured ports in Gbps + :type bandwidth_in_gbps: int + :ivar provisioned_bandwidth_in_gbps: Aggregate Gbps of associated circuit + bandwidths. + :vartype provisioned_bandwidth_in_gbps: float + :ivar mtu: Maximum transmission unit of the physical port pair(s) + :vartype mtu: str + :param encapsulation: Encapsulation method on physical ports. Possible + values include: 'Dot1Q', 'QinQ' + :type encapsulation: str or + ~azure.mgmt.network.v2018_08_01.models.ExpressRoutePortsEncapsulation + :ivar ether_type: Ethertype of the physical port. + :vartype ether_type: str + :ivar allocation_date: Date of the physical port allocation to be used in + Letter of Authorization. + :vartype allocation_date: str + :param links: ExpressRouteLink Sub-Resources. The set of physical links of + the ExpressRoutePort resource + :type links: list[~azure.mgmt.network.v2018_08_01.models.ExpressRouteLink] + :ivar circuits: Reference the ExpressRoute circuit(s) that are provisioned + on this ExpressRoutePort resource. + :vartype circuits: + list[~azure.mgmt.network.v2018_08_01.models.SubResource] + :ivar provisioning_state: The provisioning state of the ExpressRoutePort + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param resource_guid: The resource GUID property of the ExpressRoutePort + resource. + :type resource_guid: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioned_bandwidth_in_gbps': {'readonly': True}, + 'mtu': {'readonly': True}, + 'ether_type': {'readonly': True}, + 'allocation_date': {'readonly': True}, + 'circuits': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'peering_location': {'key': 'properties.peeringLocation', 'type': 'str'}, + 'bandwidth_in_gbps': {'key': 'properties.bandwidthInGbps', 'type': 'int'}, + 'provisioned_bandwidth_in_gbps': {'key': 'properties.provisionedBandwidthInGbps', 'type': 'float'}, + 'mtu': {'key': 'properties.mtu', 'type': 'str'}, + 'encapsulation': {'key': 'properties.encapsulation', 'type': 'str'}, + 'ether_type': {'key': 'properties.etherType', 'type': 'str'}, + 'allocation_date': {'key': 'properties.allocationDate', 'type': 'str'}, + 'links': {'key': 'properties.links', 'type': '[ExpressRouteLink]'}, + 'circuits': {'key': 'properties.circuits', 'type': '[SubResource]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, peering_location: str=None, bandwidth_in_gbps: int=None, encapsulation=None, links=None, resource_guid: str=None, **kwargs) -> None: + super(ExpressRoutePort, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.peering_location = peering_location + self.bandwidth_in_gbps = bandwidth_in_gbps + self.provisioned_bandwidth_in_gbps = None + self.mtu = None + self.encapsulation = encapsulation + self.ether_type = None + self.allocation_date = None + self.links = links + self.circuits = None + self.provisioning_state = None + self.resource_guid = resource_guid + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location.py new file mode 100644 index 000000000000..9ff640a90fe1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location.py @@ -0,0 +1,72 @@ +# 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 .resource import Resource + + +class ExpressRoutePortsLocation(Resource): + """ExpressRoutePorts Peering Location. + + Definition of the ExpressRoutePorts peering location resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar address: Address of peering location. + :vartype address: str + :ivar contact: Contact details of peering locations. + :vartype contact: str + :param available_bandwidths: The inventory of available ExpressRoutePort + bandwidths. + :type available_bandwidths: + list[~azure.mgmt.network.v2018_08_01.models.ExpressRoutePortsLocationBandwidths] + :ivar provisioning_state: The provisioning state of the + ExpressRoutePortLocation resource. Possible values are: 'Succeeded', + 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'address': {'readonly': True}, + 'contact': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'address': {'key': 'properties.address', 'type': 'str'}, + 'contact': {'key': 'properties.contact', 'type': 'str'}, + 'available_bandwidths': {'key': 'properties.availableBandwidths', 'type': '[ExpressRoutePortsLocationBandwidths]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRoutePortsLocation, self).__init__(**kwargs) + self.address = None + self.contact = None + self.available_bandwidths = kwargs.get('available_bandwidths', None) + self.provisioning_state = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_bandwidths.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_bandwidths.py new file mode 100644 index 000000000000..1087c7a3c792 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_bandwidths.py @@ -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 ExpressRoutePortsLocationBandwidths(Model): + """ExpressRoutePorts Location Bandwidths. + + Real-time inventory of available ExpressRoute port bandwidths. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar offer_name: Bandwidth descriptive name + :vartype offer_name: str + :ivar value_in_gbps: Bandwidth value in Gbps + :vartype value_in_gbps: int + """ + + _validation = { + 'offer_name': {'readonly': True}, + 'value_in_gbps': {'readonly': True}, + } + + _attribute_map = { + 'offer_name': {'key': 'offerName', 'type': 'str'}, + 'value_in_gbps': {'key': 'valueInGbps', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ExpressRoutePortsLocationBandwidths, self).__init__(**kwargs) + self.offer_name = None + self.value_in_gbps = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_bandwidths_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_bandwidths_py3.py new file mode 100644 index 000000000000..cba89b52bc09 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_bandwidths_py3.py @@ -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 ExpressRoutePortsLocationBandwidths(Model): + """ExpressRoutePorts Location Bandwidths. + + Real-time inventory of available ExpressRoute port bandwidths. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar offer_name: Bandwidth descriptive name + :vartype offer_name: str + :ivar value_in_gbps: Bandwidth value in Gbps + :vartype value_in_gbps: int + """ + + _validation = { + 'offer_name': {'readonly': True}, + 'value_in_gbps': {'readonly': True}, + } + + _attribute_map = { + 'offer_name': {'key': 'offerName', 'type': 'str'}, + 'value_in_gbps': {'key': 'valueInGbps', 'type': 'int'}, + } + + def __init__(self, **kwargs) -> None: + super(ExpressRoutePortsLocationBandwidths, self).__init__(**kwargs) + self.offer_name = None + self.value_in_gbps = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_paged.py new file mode 100644 index 000000000000..8fc99d45be75 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_paged.py @@ -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 ExpressRoutePortsLocationPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRoutePortsLocation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRoutePortsLocation]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRoutePortsLocationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_py3.py new file mode 100644 index 000000000000..56e304c69cfb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_ports_location_py3.py @@ -0,0 +1,72 @@ +# 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 .resource_py3 import Resource + + +class ExpressRoutePortsLocation(Resource): + """ExpressRoutePorts Peering Location. + + Definition of the ExpressRoutePorts peering location resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar address: Address of peering location. + :vartype address: str + :ivar contact: Contact details of peering locations. + :vartype contact: str + :param available_bandwidths: The inventory of available ExpressRoutePort + bandwidths. + :type available_bandwidths: + list[~azure.mgmt.network.v2018_08_01.models.ExpressRoutePortsLocationBandwidths] + :ivar provisioning_state: The provisioning state of the + ExpressRoutePortLocation resource. Possible values are: 'Succeeded', + 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'address': {'readonly': True}, + 'contact': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'address': {'key': 'properties.address', 'type': 'str'}, + 'contact': {'key': 'properties.contact', 'type': 'str'}, + 'available_bandwidths': {'key': 'properties.availableBandwidths', 'type': '[ExpressRoutePortsLocationBandwidths]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, available_bandwidths=None, **kwargs) -> None: + super(ExpressRoutePortsLocation, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.address = None + self.contact = None + self.available_bandwidths = available_bandwidths + self.provisioning_state = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_parameters.py index 6e10c5624a31..6412f93cc83f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_parameters.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_parameters.py @@ -21,21 +21,29 @@ class NetworkConfigurationDiagnosticParameters(Model): perform network configuration diagnostic. Valid options are VM, NetworkInterface, VMSS/NetworkInterface and Application Gateway. :type target_resource_id: str - :param queries: Required. List of traffic queries. - :type queries: list[~azure.mgmt.network.v2018_08_01.models.TrafficQuery] + :param verbosity_level: Verbosity level. Accepted values are 'Normal', + 'Minimum', 'Full'. Possible values include: 'Normal', 'Minimum', 'Full' + :type verbosity_level: str or + ~azure.mgmt.network.v2018_08_01.models.VerbosityLevel + :param profiles: Required. List of network configuration diagnostic + profiles. + :type profiles: + list[~azure.mgmt.network.v2018_08_01.models.NetworkConfigurationDiagnosticProfile] """ _validation = { 'target_resource_id': {'required': True}, - 'queries': {'required': True}, + 'profiles': {'required': True}, } _attribute_map = { 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, - 'queries': {'key': 'queries', 'type': '[TrafficQuery]'}, + 'verbosity_level': {'key': 'verbosityLevel', 'type': 'str'}, + 'profiles': {'key': 'profiles', 'type': '[NetworkConfigurationDiagnosticProfile]'}, } def __init__(self, **kwargs): super(NetworkConfigurationDiagnosticParameters, self).__init__(**kwargs) self.target_resource_id = kwargs.get('target_resource_id', None) - self.queries = kwargs.get('queries', None) + self.verbosity_level = kwargs.get('verbosity_level', None) + self.profiles = kwargs.get('profiles', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_parameters_py3.py index 222296e26b94..cbaeb2f460ed 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_parameters_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_parameters_py3.py @@ -21,21 +21,29 @@ class NetworkConfigurationDiagnosticParameters(Model): perform network configuration diagnostic. Valid options are VM, NetworkInterface, VMSS/NetworkInterface and Application Gateway. :type target_resource_id: str - :param queries: Required. List of traffic queries. - :type queries: list[~azure.mgmt.network.v2018_08_01.models.TrafficQuery] + :param verbosity_level: Verbosity level. Accepted values are 'Normal', + 'Minimum', 'Full'. Possible values include: 'Normal', 'Minimum', 'Full' + :type verbosity_level: str or + ~azure.mgmt.network.v2018_08_01.models.VerbosityLevel + :param profiles: Required. List of network configuration diagnostic + profiles. + :type profiles: + list[~azure.mgmt.network.v2018_08_01.models.NetworkConfigurationDiagnosticProfile] """ _validation = { 'target_resource_id': {'required': True}, - 'queries': {'required': True}, + 'profiles': {'required': True}, } _attribute_map = { 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, - 'queries': {'key': 'queries', 'type': '[TrafficQuery]'}, + 'verbosity_level': {'key': 'verbosityLevel', 'type': 'str'}, + 'profiles': {'key': 'profiles', 'type': '[NetworkConfigurationDiagnosticProfile]'}, } - def __init__(self, *, target_resource_id: str, queries, **kwargs) -> None: + def __init__(self, *, target_resource_id: str, profiles, verbosity_level=None, **kwargs) -> None: super(NetworkConfigurationDiagnosticParameters, self).__init__(**kwargs) self.target_resource_id = target_resource_id - self.queries = queries + self.verbosity_level = verbosity_level + self.profiles = profiles diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/traffic_query.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_profile.py similarity index 94% rename from azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/traffic_query.py rename to azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_profile.py index 1ba916ade144..55497a3781ab 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/traffic_query.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_profile.py @@ -12,7 +12,7 @@ from msrest.serialization import Model -class TrafficQuery(Model): +class NetworkConfigurationDiagnosticProfile(Model): """Parameters to compare with network configuration. All required parameters must be populated in order to send to Azure. @@ -53,7 +53,7 @@ class TrafficQuery(Model): } def __init__(self, **kwargs): - super(TrafficQuery, self).__init__(**kwargs) + super(NetworkConfigurationDiagnosticProfile, self).__init__(**kwargs) self.direction = kwargs.get('direction', None) self.protocol = kwargs.get('protocol', None) self.source = kwargs.get('source', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/traffic_query_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_profile_py3.py similarity index 94% rename from azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/traffic_query_py3.py rename to azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_profile_py3.py index 1251b1d00794..9e208e0f73d1 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/traffic_query_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_profile_py3.py @@ -12,7 +12,7 @@ from msrest.serialization import Model -class TrafficQuery(Model): +class NetworkConfigurationDiagnosticProfile(Model): """Parameters to compare with network configuration. All required parameters must be populated in order to send to Azure. @@ -53,7 +53,7 @@ class TrafficQuery(Model): } def __init__(self, *, direction, protocol: str, source: str, destination: str, destination_port: str, **kwargs) -> None: - super(TrafficQuery, self).__init__(**kwargs) + super(NetworkConfigurationDiagnosticProfile, self).__init__(**kwargs) self.direction = direction self.protocol = protocol self.source = source diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_result.py index 7b8bc0ac12db..e606c618a08e 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_result.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_result.py @@ -16,19 +16,20 @@ class NetworkConfigurationDiagnosticResult(Model): """Network configuration diagnostic result corresponded to provided traffic query. - :param traffic_query: - :type traffic_query: ~azure.mgmt.network.v2018_08_01.models.TrafficQuery + :param profile: + :type profile: + ~azure.mgmt.network.v2018_08_01.models.NetworkConfigurationDiagnosticProfile :param network_security_group_result: :type network_security_group_result: ~azure.mgmt.network.v2018_08_01.models.NetworkSecurityGroupResult """ _attribute_map = { - 'traffic_query': {'key': 'trafficQuery', 'type': 'TrafficQuery'}, + 'profile': {'key': 'profile', 'type': 'NetworkConfigurationDiagnosticProfile'}, 'network_security_group_result': {'key': 'networkSecurityGroupResult', 'type': 'NetworkSecurityGroupResult'}, } def __init__(self, **kwargs): super(NetworkConfigurationDiagnosticResult, self).__init__(**kwargs) - self.traffic_query = kwargs.get('traffic_query', None) + self.profile = kwargs.get('profile', None) self.network_security_group_result = kwargs.get('network_security_group_result', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_result_py3.py index e88307a490e3..1b3365d9067e 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_result_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_configuration_diagnostic_result_py3.py @@ -16,19 +16,20 @@ class NetworkConfigurationDiagnosticResult(Model): """Network configuration diagnostic result corresponded to provided traffic query. - :param traffic_query: - :type traffic_query: ~azure.mgmt.network.v2018_08_01.models.TrafficQuery + :param profile: + :type profile: + ~azure.mgmt.network.v2018_08_01.models.NetworkConfigurationDiagnosticProfile :param network_security_group_result: :type network_security_group_result: ~azure.mgmt.network.v2018_08_01.models.NetworkSecurityGroupResult """ _attribute_map = { - 'traffic_query': {'key': 'trafficQuery', 'type': 'TrafficQuery'}, + 'profile': {'key': 'profile', 'type': 'NetworkConfigurationDiagnosticProfile'}, 'network_security_group_result': {'key': 'networkSecurityGroupResult', 'type': 'NetworkSecurityGroupResult'}, } - def __init__(self, *, traffic_query=None, network_security_group_result=None, **kwargs) -> None: + def __init__(self, *, profile=None, network_security_group_result=None, **kwargs) -> None: super(NetworkConfigurationDiagnosticResult, self).__init__(**kwargs) - self.traffic_query = traffic_query + self.profile = profile self.network_security_group_result = network_security_group_result diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_management_client_enums.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_management_client_enums.py index e443490e1126..aa6eb3bef0ee 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_management_client_enums.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_management_client_enums.py @@ -154,6 +154,12 @@ class ApplicationGatewaySslCipherSuite(str, Enum): tls_rsa_with_3_des_ede_cbc_sha = "TLS_RSA_WITH_3DES_EDE_CBC_SHA" +class ApplicationGatewayCustomErrorStatusCode(str, Enum): + + http_status403 = "HttpStatus403" + http_status502 = "HttpStatus502" + + class ApplicationGatewayRequestRoutingRuleType(str, Enum): basic = "Basic" @@ -213,6 +219,7 @@ class AzureFirewallNetworkRuleProtocol(str, Enum): tcp = "TCP" udp = "UDP" any = "Any" + icmp = "ICMP" class AuthorizationUseStatus(str, Enum): @@ -265,6 +272,7 @@ class ExpressRouteCircuitSkuTier(str, Enum): standard = "Standard" premium = "Premium" + basic = "Basic" class ExpressRouteCircuitSkuFamily(str, Enum): @@ -281,6 +289,24 @@ class ServiceProviderProvisioningState(str, Enum): deprovisioning = "Deprovisioning" +class ExpressRouteLinkConnectorType(str, Enum): + + lc = "LC" + sc = "SC" + + +class ExpressRouteLinkAdminState(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + +class ExpressRoutePortsEncapsulation(str, Enum): + + dot1_q = "Dot1Q" + qin_q = "QinQ" + + class LoadBalancerSkuName(str, Enum): basic = "Basic" @@ -450,6 +476,13 @@ class EvaluationState(str, Enum): completed = "Completed" +class VerbosityLevel(str, Enum): + + normal = "Normal" + minimum = "Minimum" + full = "Full" + + class PublicIPPrefixSkuName(str, Enum): standard = "Standard" diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/outbound_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/outbound_rule_paged.py new file mode 100644 index 000000000000..44d15dc58177 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/outbound_rule_paged.py @@ -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 OutboundRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`OutboundRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[OutboundRule]'} + } + + def __init__(self, *args, **kwargs): + + super(OutboundRulePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/network_management_client.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/network_management_client.py index 5864009fbd7c..833340481451 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/network_management_client.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/network_management_client.py @@ -35,12 +35,16 @@ from .operations.express_route_cross_connection_peerings_operations import ExpressRouteCrossConnectionPeeringsOperations from .operations.express_route_gateways_operations import ExpressRouteGatewaysOperations from .operations.express_route_connections_operations import ExpressRouteConnectionsOperations +from .operations.express_route_ports_locations_operations import ExpressRoutePortsLocationsOperations +from .operations.express_route_ports_operations import ExpressRoutePortsOperations +from .operations.express_route_links_operations import ExpressRouteLinksOperations from .operations.interface_endpoints_operations import InterfaceEndpointsOperations from .operations.load_balancers_operations import LoadBalancersOperations from .operations.load_balancer_backend_address_pools_operations import LoadBalancerBackendAddressPoolsOperations from .operations.load_balancer_frontend_ip_configurations_operations import LoadBalancerFrontendIPConfigurationsOperations from .operations.inbound_nat_rules_operations import InboundNatRulesOperations from .operations.load_balancer_load_balancing_rules_operations import LoadBalancerLoadBalancingRulesOperations +from .operations.load_balancer_outbound_rules_operations import LoadBalancerOutboundRulesOperations from .operations.load_balancer_network_interfaces_operations import LoadBalancerNetworkInterfacesOperations from .operations.load_balancer_probes_operations import LoadBalancerProbesOperations from .operations.network_interfaces_operations import NetworkInterfacesOperations @@ -158,6 +162,12 @@ class NetworkManagementClient(SDKClient): :vartype express_route_gateways: azure.mgmt.network.v2018_08_01.operations.ExpressRouteGatewaysOperations :ivar express_route_connections: ExpressRouteConnections operations :vartype express_route_connections: azure.mgmt.network.v2018_08_01.operations.ExpressRouteConnectionsOperations + :ivar express_route_ports_locations: ExpressRoutePortsLocations operations + :vartype express_route_ports_locations: azure.mgmt.network.v2018_08_01.operations.ExpressRoutePortsLocationsOperations + :ivar express_route_ports: ExpressRoutePorts operations + :vartype express_route_ports: azure.mgmt.network.v2018_08_01.operations.ExpressRoutePortsOperations + :ivar express_route_links: ExpressRouteLinks operations + :vartype express_route_links: azure.mgmt.network.v2018_08_01.operations.ExpressRouteLinksOperations :ivar interface_endpoints: InterfaceEndpoints operations :vartype interface_endpoints: azure.mgmt.network.v2018_08_01.operations.InterfaceEndpointsOperations :ivar load_balancers: LoadBalancers operations @@ -170,6 +180,8 @@ class NetworkManagementClient(SDKClient): :vartype inbound_nat_rules: azure.mgmt.network.v2018_08_01.operations.InboundNatRulesOperations :ivar load_balancer_load_balancing_rules: LoadBalancerLoadBalancingRules operations :vartype load_balancer_load_balancing_rules: azure.mgmt.network.v2018_08_01.operations.LoadBalancerLoadBalancingRulesOperations + :ivar load_balancer_outbound_rules: LoadBalancerOutboundRules operations + :vartype load_balancer_outbound_rules: azure.mgmt.network.v2018_08_01.operations.LoadBalancerOutboundRulesOperations :ivar load_balancer_network_interfaces: LoadBalancerNetworkInterfaces operations :vartype load_balancer_network_interfaces: azure.mgmt.network.v2018_08_01.operations.LoadBalancerNetworkInterfacesOperations :ivar load_balancer_probes: LoadBalancerProbes operations @@ -305,6 +317,12 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.express_route_connections = ExpressRouteConnectionsOperations( self._client, self.config, self._serialize, self._deserialize) + self.express_route_ports_locations = ExpressRoutePortsLocationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_ports = ExpressRoutePortsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_links = ExpressRouteLinksOperations( + self._client, self.config, self._serialize, self._deserialize) self.interface_endpoints = InterfaceEndpointsOperations( self._client, self.config, self._serialize, self._deserialize) self.load_balancers = LoadBalancersOperations( @@ -317,6 +335,8 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.load_balancer_load_balancing_rules = LoadBalancerLoadBalancingRulesOperations( self._client, self.config, self._serialize, self._deserialize) + self.load_balancer_outbound_rules = LoadBalancerOutboundRulesOperations( + self._client, self.config, self._serialize, self._deserialize) self.load_balancer_network_interfaces = LoadBalancerNetworkInterfacesOperations( self._client, self.config, self._serialize, self._deserialize) self.load_balancer_probes = LoadBalancerProbesOperations( diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/__init__.py index 809521775aba..711912551ef0 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/__init__.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/__init__.py @@ -26,12 +26,16 @@ from .express_route_cross_connection_peerings_operations import ExpressRouteCrossConnectionPeeringsOperations from .express_route_gateways_operations import ExpressRouteGatewaysOperations from .express_route_connections_operations import ExpressRouteConnectionsOperations +from .express_route_ports_locations_operations import ExpressRoutePortsLocationsOperations +from .express_route_ports_operations import ExpressRoutePortsOperations +from .express_route_links_operations import ExpressRouteLinksOperations from .interface_endpoints_operations import InterfaceEndpointsOperations from .load_balancers_operations import LoadBalancersOperations from .load_balancer_backend_address_pools_operations import LoadBalancerBackendAddressPoolsOperations from .load_balancer_frontend_ip_configurations_operations import LoadBalancerFrontendIPConfigurationsOperations from .inbound_nat_rules_operations import InboundNatRulesOperations from .load_balancer_load_balancing_rules_operations import LoadBalancerLoadBalancingRulesOperations +from .load_balancer_outbound_rules_operations import LoadBalancerOutboundRulesOperations from .load_balancer_network_interfaces_operations import LoadBalancerNetworkInterfacesOperations from .load_balancer_probes_operations import LoadBalancerProbesOperations from .network_interfaces_operations import NetworkInterfacesOperations @@ -91,12 +95,16 @@ 'ExpressRouteCrossConnectionPeeringsOperations', 'ExpressRouteGatewaysOperations', 'ExpressRouteConnectionsOperations', + 'ExpressRoutePortsLocationsOperations', + 'ExpressRoutePortsOperations', + 'ExpressRouteLinksOperations', 'InterfaceEndpointsOperations', 'LoadBalancersOperations', 'LoadBalancerBackendAddressPoolsOperations', 'LoadBalancerFrontendIPConfigurationsOperations', 'InboundNatRulesOperations', 'LoadBalancerLoadBalancingRulesOperations', + 'LoadBalancerOutboundRulesOperations', 'LoadBalancerNetworkInterfacesOperations', 'LoadBalancerProbesOperations', 'NetworkInterfacesOperations', diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_links_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_links_operations.py new file mode 100644 index 000000000000..1300e68b8685 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_links_operations.py @@ -0,0 +1,176 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ExpressRouteLinksOperations(object): + """ExpressRouteLinksOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-08-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-08-01" + + self.config = config + + def get( + self, resource_group_name, express_route_port_name, link_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the specified ExpressRouteLink resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_port_name: The name of the ExpressRoutePort + resource. + :type express_route_port_name: str + :param link_name: The name of the ExpressRouteLink resource. + :type link_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: ExpressRouteLink or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_08_01.models.ExpressRouteLink or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, 'str'), + 'linkName': self._serialize.url("link_name", link_name, '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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteLink', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links/{linkName}'} + + def list( + self, resource_group_name, express_route_port_name, custom_headers=None, raw=False, **operation_config): + """Retrieve the ExpressRouteLink sub-resources of the specified + ExpressRoutePort resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_port_name: The name of the ExpressRoutePort + resource. + :type express_route_port_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 ExpressRouteLink + :rtype: + ~azure.mgmt.network.v2018_08_01.models.ExpressRouteLinkPaged[~azure.mgmt.network.v2018_08_01.models.ExpressRouteLink] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteLinkPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteLinkPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_ports_locations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_ports_locations_operations.py new file mode 100644 index 000000000000..2f5f85577108 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_ports_locations_operations.py @@ -0,0 +1,166 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ExpressRoutePortsLocationsOperations(object): + """ExpressRoutePortsLocationsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-08-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-08-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Retrieves all ExpressRoutePort peering locations. Does not return + available bandwidths for each location. Available bandwidths can only + be obtained when retriving a specific peering location. + + :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 ExpressRoutePortsLocation + :rtype: + ~azure.mgmt.network.v2018_08_01.models.ExpressRoutePortsLocationPaged[~azure.mgmt.network.v2018_08_01.models.ExpressRoutePortsLocation] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRoutePortsLocationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRoutePortsLocationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations'} + + def get( + self, location_name, custom_headers=None, raw=False, **operation_config): + """Retrieves a single ExpressRoutePort peering location, including the + list of available bandwidths available at said peering location. + + :param location_name: Name of the requested ExpressRoutePort peering + location. + :type location_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: ExpressRoutePortsLocation or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_08_01.models.ExpressRoutePortsLocation or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'locationName': self._serialize.url("location_name", location_name, '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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRoutePortsLocation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_ports_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_ports_operations.py new file mode 100644 index 000000000000..41883528c48e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_ports_operations.py @@ -0,0 +1,522 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ExpressRoutePortsOperations(object): + """ExpressRoutePortsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-08-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-08-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, express_route_port_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, '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') + + # Construct headers + header_parameters = {} + 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.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, express_route_port_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified ExpressRoutePort resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_port_name: The name of the ExpressRoutePort + resource. + :type express_route_port_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + 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 None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + express_route_port_name=express_route_port_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}'} + + def get( + self, resource_group_name, express_route_port_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the requested ExpressRoutePort resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_port_name: The name of ExpressRoutePort. + :type express_route_port_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: ExpressRoutePort or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_08_01.models.ExpressRoutePort or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, '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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRoutePort', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}'} + + + def _create_or_update_initial( + self, resource_group_name, express_route_port_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, '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') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(parameters, 'ExpressRoutePort') + + # Construct and send request + 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, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRoutePort', response) + if response.status_code == 201: + deserialized = self._deserialize('ExpressRoutePort', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, express_route_port_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates the specified ExpressRoutePort resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_port_name: The name of the ExpressRoutePort + resource. + :type express_route_port_name: str + :param parameters: Parameters supplied to the create ExpressRoutePort + operation. + :type parameters: + ~azure.mgmt.network.v2018_08_01.models.ExpressRoutePort + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + 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 ExpressRoutePort or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_08_01.models.ExpressRoutePort] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_08_01.models.ExpressRoutePort]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + express_route_port_name=express_route_port_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRoutePort', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}'} + + + def _update_tags_initial( + self, resource_group_name, express_route_port_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, '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') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRoutePort', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, express_route_port_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Update ExpressRoutePort tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_port_name: The name of the ExpressRoutePort + resource. + :type express_route_port_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + 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 ExpressRoutePort or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_08_01.models.ExpressRoutePort] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_08_01.models.ExpressRoutePort]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + express_route_port_name=express_route_port_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRoutePort', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """List all the ExpressRoutePort resources in the specified resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_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 ExpressRoutePort + :rtype: + ~azure.mgmt.network.v2018_08_01.models.ExpressRoutePortPaged[~azure.mgmt.network.v2018_08_01.models.ExpressRoutePort] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRoutePortPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRoutePortPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """List all the ExpressRoutePort resources in the specified subscription. + + :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 ExpressRoutePort + :rtype: + ~azure.mgmt.network.v2018_08_01.models.ExpressRoutePortPaged[~azure.mgmt.network.v2018_08_01.models.ExpressRoutePort] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRoutePortPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRoutePortPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePorts'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/load_balancer_outbound_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/load_balancer_outbound_rules_operations.py new file mode 100644 index 000000000000..e6b9090c5181 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/load_balancer_outbound_rules_operations.py @@ -0,0 +1,173 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class LoadBalancerOutboundRulesOperations(object): + """LoadBalancerOutboundRulesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-08-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-08-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets all the outbound rules in a load balancer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_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 OutboundRule + :rtype: + ~azure.mgmt.network.v2018_08_01.models.OutboundRulePaged[~azure.mgmt.network.v2018_08_01.models.OutboundRule] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.OutboundRulePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.OutboundRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules'} + + def get( + self, resource_group_name, load_balancer_name, outbound_rule_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified load balancer outbound rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param outbound_rule_name: The name of the outbound rule. + :type outbound_rule_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: OutboundRule or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_08_01.models.OutboundRule or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'outboundRuleName': self._serialize.url("outbound_rule_name", outbound_rule_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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('OutboundRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/network_watchers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/network_watchers_operations.py index 8e36dcf8d031..6443e4c1412f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/network_watchers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/network_watchers_operations.py @@ -1562,9 +1562,7 @@ def get_long_running_output(response): def _get_network_configuration_diagnostic_initial( - self, resource_group_name, network_watcher_name, target_resource_id, queries, custom_headers=None, raw=False, **operation_config): - parameters = models.NetworkConfigurationDiagnosticParameters(target_resource_id=target_resource_id, queries=queries) - + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.get_network_configuration_diagnostic.metadata['url'] path_format_arguments = { @@ -1613,20 +1611,16 @@ def _get_network_configuration_diagnostic_initial( return deserialized def get_network_configuration_diagnostic( - self, resource_group_name, network_watcher_name, target_resource_id, queries, custom_headers=None, raw=False, polling=True, **operation_config): + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): """Get network configuration diagnostic. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. :type network_watcher_name: str - :param target_resource_id: The ID of the target resource to perform - network configuration diagnostic. Valid options are VM, - NetworkInterface, VMSS/NetworkInterface and Application Gateway. - :type target_resource_id: str - :param queries: List of traffic queries. - :type queries: - list[~azure.mgmt.network.v2018_08_01.models.TrafficQuery] + :param parameters: Parameters to get network configuration diagnostic. + :type parameters: + ~azure.mgmt.network.v2018_08_01.models.NetworkConfigurationDiagnosticParameters :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -1645,8 +1639,7 @@ def get_network_configuration_diagnostic( raw_result = self._get_network_configuration_diagnostic_initial( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, - target_resource_id=target_resource_id, - queries=queries, + parameters=parameters, custom_headers=custom_headers, raw=True, **operation_config diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/virtual_networks_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/virtual_networks_operations.py index 01a8ef3d9852..b153a6796482 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/virtual_networks_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/virtual_networks_operations.py @@ -522,7 +522,7 @@ def internal_paging(next_link=None, raw=False): list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks'} def check_ip_address_availability( - self, resource_group_name, virtual_network_name, ip_address=None, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, virtual_network_name, ip_address, custom_headers=None, raw=False, **operation_config): """Checks whether a private IP address is available for use. :param resource_group_name: The name of the resource group. @@ -553,8 +553,7 @@ def check_ip_address_availability( # Construct parameters query_parameters = {} - if ip_address is not None: - query_parameters['ipAddress'] = self._serialize.query("ip_address", ip_address, 'str') + query_parameters['ipAddress'] = self._serialize.query("ip_address", ip_address, 'str') query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers From 54d5eb581d34932c439b82b06f44f6f713a68159 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 6 Nov 2018 09:41:26 -0800 Subject: [PATCH 3/7] [AutoPR network/resource-manager] Network october release (#3463) * Generated from bd2aca046b487c2ae2f13cc91d26c5f8aae93571 Update ADHybridHealthService.json (#3874) * Generated from 4b3ae81daaddc6079ec4a6a8ebeebccc019703e6 Updated NetworkConfigurationDiagnostic API + example (#3905) * Generated from c90c5d14e7b0b169a8cde763860d15aa48a0d37c (#3395) address the comments * Generated from 26fc76cf7c2ed2ae5289bd4946513351880d32ff add customer error spec for Application Gateway (#3985) * add customer error spec for Application Gateway * fix property name issue * [AutoPR network/resource-manager] add customer error spec for Application Gateway (#3409) * Generated from d9a3af34891cc703ecc3ba298fc737d6cc3e0fc0 add customer error spec for Application Gateway * Generated from 26299b453a6b2f99683899a78c4c302d39b7de03 fix property name issue * Generated from 19e41e2e7bb38120b813ad2314dc7c4f422b48c4 (#3417) Add ICMP to the list of supported protocols * Generated from ef5d8181e1a9f148a35d1b4467af2427a0afa29d Merge remote-tracking branch 'origin/master' into network-october-release * Packaging update of azure-mgmt-network * Packaging update of azure-mgmt-adhybridhealthservice * Generated from 7d9b9a991b92bfdbc31be3bf5fd2bd16bbb742a1 (#3478) change appgw custom error status code enum and fix a typo of customErrorConfiguration * Generated from 758c143eae019925ae9e021fbcd6821af918d000 Add ExpressRoutePort swagger (#4104) * Add ExpressRoutePort details to readme.md * ExpressRoutePort swagger * Refer SubscriptionIdParameter and ApiVersionParameter from network.json * Generated from b232daf214b1a03e32b14427be20bbca4ac805ac (#3509) ExpressRoutePort swagger * Generated from 6c4312edb758be23c2bdd7f8c2da0b8b76541187 Cherry pick NRP's changes from master to October branch (#4251) * Remove error code from swagger (#4103) * Modifying example templates : enabling Ipv6 support for Private Peering (#4232) * Modifying example templates : enabling Ipv6 support for Private Peering * Resolving oav validation error * [AutoPR network/resource-manager] Cherry pick NRP's changes from master to October branch (#3632) * Generated from 9ef9c433f66560956a610961c0e2a5ec70360064 Modifying example templates : enabling Ipv6 support for Private Peering (#4232) * Modifying example templates : enabling Ipv6 support for Private Peering * Resolving oav validation error * Packaging update of azure-mgmt-network * Packaging update of azure-mgmt-adhybridhealthservice * Generated from e8f2b491e5b1732d9e57cdf9ddd16907ba04920e Changes to add operation id for outbound rules (#4320) * Changes to add operation id for outbound rules * Changes to make outbound rule similar to load balancing rule * fix failures - add example json files * fix failures * Fixed line endings, specs, examples * [AutoPR network/resource-manager] Changes to add operation id for outbound rules (#3687) * Generated from fb767531a15f75017f43f44004a2aa75c1b13b9f fix failures * Generated from a9023fbd65049681b0ccc49d42a1c4276b0cd159 Merge pull request #1 from EvgenyAgafonchikov/fix-lb Fixed line endings, specs, examples * [AutoPR network/resource-manager] Change one parameter (#3700) * Generated from 9392c40ae5bf6575a8fdf47d0609226fdd8da689 Change one parameter * Generated from 084957762078dc07cce7c40e0d5358081f090e2a Change parameter in most recent version * Generated from 1f46c7babbbcc3379f21c6f5e3d16f693fe23111 Fix example * Generated from d0417082c41cfae8f0234ee02fe32b506bf4e605 New SKU for ER (#4342) --- azure-mgmt-adhybridhealthservice/HISTORY.rst | 9 + azure-mgmt-adhybridhealthservice/MANIFEST.in | 4 + azure-mgmt-adhybridhealthservice/README.rst | 49 + .../azure/__init__.py | 1 + .../azure/mgmt/__init__.py | 1 + .../mgmt/adhybridhealthservice/__init__.py | 18 + .../ad_hybrid_health_service.py | 144 ++ .../adhybridhealthservice/models/__init__.py | 269 +++ .../models/ad_hybrid_health_service_enums.py | 115 ++ .../models/additional_information.py | 41 + .../models/additional_information_py3.py | 41 + .../models/adds_service_member.py | 181 ++ .../models/adds_service_member_paged.py | 27 + .../models/adds_service_member_py3.py | 181 ++ .../adhybridhealthservice/models/agent.py | 53 + .../adhybridhealthservice/models/agent_py3.py | 53 + .../adhybridhealthservice/models/alert.py | 114 ++ .../models/alert_feedback.py | 59 + .../models/alert_feedback_paged.py | 27 + .../models/alert_feedback_py3.py | 59 + .../models/alert_paged.py | 27 + .../adhybridhealthservice/models/alert_py3.py | 114 ++ .../models/associated_object.py | 72 + .../models/associated_object_py3.py | 72 + .../models/attribute_delta.py | 49 + .../models/attribute_delta_py3.py | 49 + .../models/attribute_mapping.py | 43 + .../models/attribute_mapping_py3.py | 43 + .../models/attribute_mpping_source.py | 40 + .../models/attribute_mpping_source_py3.py | 40 + .../models/change_not_reimported.py | 34 + .../models/change_not_reimported_delta.py | 45 + .../models/change_not_reimported_delta_py3.py | 45 + .../models/change_not_reimported_entry.py | 54 + .../models/change_not_reimported_entry_py3.py | 54 + .../models/change_not_reimported_py3.py | 34 + .../adhybridhealthservice/models/connector.py | 88 + .../models/connector_connection_error.py | 56 + .../models/connector_connection_error_py3.py | 56 + .../models/connector_connection_errors.py | 29 + .../models/connector_connection_errors_py3.py | 29 + .../models/connector_object_error.py | 80 + .../models/connector_object_error_py3.py | 80 + .../models/connector_object_errors.py | 29 + .../models/connector_object_errors_py3.py | 29 + .../models/connector_paged.py | 27 + .../models/connector_py3.py | 88 + .../models/credential.py | 36 + .../models/credential_paged.py | 27 + .../models/credential_py3.py | 36 + .../adhybridhealthservice/models/dimension.py | 69 + .../models/dimension_paged.py | 27 + .../models/dimension_py3.py | 69 + .../adhybridhealthservice/models/display.py | 37 + .../models/display_py3.py | 37 + .../models/error_count.py | 36 + .../models/error_count_paged.py | 27 + .../models/error_count_py3.py | 36 + .../models/error_detail.py | 47 + .../models/error_detail_py3.py | 47 + .../models/error_report_users_entry.py | 45 + .../models/error_report_users_entry_paged.py | 27 + .../models/error_report_users_entry_py3.py | 45 + .../models/export_error.py | 177 ++ .../models/export_error_py3.py | 177 ++ .../models/export_errors.py | 28 + .../models/export_errors_py3.py | 28 + .../models/export_status.py | 42 + .../models/export_status_paged.py | 27 + .../models/export_status_py3.py | 42 + .../models/extension_error_info.py | 36 + .../models/extension_error_info_py3.py | 36 + .../models/forest_summary.py | 53 + .../models/forest_summary_py3.py | 53 + .../models/global_configuration.py | 45 + .../models/global_configuration_paged.py | 27 + .../models/global_configuration_py3.py | 45 + .../adhybridhealthservice/models/help_link.py | 32 + .../models/help_link_py3.py | 32 + .../adhybridhealthservice/models/hotfix.py | 37 + .../models/hotfix_py3.py | 37 + .../adhybridhealthservice/models/hotfixes.py | 28 + .../models/hotfixes_py3.py | 28 + .../models/import_error.py | 84 + .../models/import_error_py3.py | 84 + .../models/import_errors.py | 28 + .../models/import_errors_py3.py | 28 + .../models/inbound_replication_neighbor.py | 79 + .../inbound_replication_neighbor_py3.py | 79 + .../models/inbound_replication_neighbors.py | 29 + .../inbound_replication_neighbors_py3.py | 29 + .../mgmt/adhybridhealthservice/models/item.py | 32 + .../models/item_paged.py | 27 + .../adhybridhealthservice/models/item_py3.py | 32 + .../models/merged_export_error.py | 116 ++ .../models/merged_export_error_paged.py | 27 + .../models/merged_export_error_py3.py | 116 ++ .../models/metric_group.py | 37 + .../models/metric_group_py3.py | 37 + .../models/metric_metadata.py | 73 + .../models/metric_metadata_paged.py | 27 + .../models/metric_metadata_py3.py | 73 + .../models/metric_set.py | 33 + .../models/metric_set_py3.py | 33 + .../models/metric_sets.py | 33 + .../models/metric_sets_py3.py | 33 + .../models/module_configuration.py | 38 + .../models/module_configuration_py3.py | 38 + .../models/module_configurations.py | 29 + .../models/module_configurations_py3.py | 29 + .../models/object_with_sync_error.py | 89 + .../models/object_with_sync_error_py3.py | 89 + .../adhybridhealthservice/models/operation.py | 32 + .../models/operation_paged.py | 27 + .../models/operation_py3.py | 32 + .../adhybridhealthservice/models/partition.py | 62 + .../models/partition_py3.py | 62 + .../models/partition_scope.py | 40 + .../models/partition_scope_py3.py | 40 + .../password_hash_sync_configuration.py | 33 + .../password_hash_sync_configuration_py3.py | 33 + .../models/password_management_settings.py | 69 + .../password_management_settings_py3.py | 69 + .../models/replication_status.py | 38 + .../models/replication_status_py3.py | 38 + .../models/replication_summary.py | 56 + .../models/replication_summary_paged.py | 27 + .../models/replication_summary_py3.py | 56 + .../adhybridhealthservice/models/result.py | 28 + .../models/result_py3.py | 28 + .../models/rule_error_info.py | 45 + .../models/rule_error_info_py3.py | 45 + .../models/run_profile.py | 36 + .../models/run_profile_py3.py | 36 + .../models/run_profiles.py | 28 + .../models/run_profiles_py3.py | 28 + .../adhybridhealthservice/models/run_step.py | 53 + .../models/run_step_py3.py | 53 + .../models/service_configuration.py | 60 + .../models/service_configuration_py3.py | 60 + .../models/service_member.py | 143 ++ .../models/service_member_paged.py | 27 + .../models/service_member_py3.py | 143 ++ .../models/service_properties.py | 140 ++ .../models/service_properties_paged.py | 27 + .../models/service_properties_py3.py | 140 ++ .../models/tabular_export_error.py | 40 + .../models/tabular_export_error_py3.py | 40 + .../adhybridhealthservice/models/tenant.py | 126 ++ .../models/tenant_onboarding_details.py | 35 + .../models/tenant_onboarding_details_py3.py | 35 + .../models/tenant_py3.py | 126 ++ .../models/user_preference.py | 28 + .../models/user_preference_py3.py | 28 + .../models/value_delta.py | 34 + .../models/value_delta_py3.py | 34 + .../operations/__init__.py | 44 + .../ad_domain_service_members_operations.py | 128 ++ .../adds_service_members_operations.py | 307 ++++ .../operations/adds_service_operations.py | 115 ++ .../operations/adds_services_operations.py | 1122 ++++++++++++ ..._services_replication_status_operations.py | 97 ++ ...dds_services_service_members_operations.py | 185 ++ ...dds_services_user_preference_operations.py | 211 +++ .../operations/alerts_operations.py | 120 ++ .../operations/configuration_operations.py | 272 +++ .../operations/dimensions_operations.py | 107 ++ .../operations/operations.py | 98 ++ .../operations/reports_operations.py | 90 + .../operations/service_members_operations.py | 938 ++++++++++ .../operations/service_operations.py | 115 ++ .../operations/services_operations.py | 1542 +++++++++++++++++ .../mgmt/adhybridhealthservice/version.py | 13 + .../sdk_packaging.toml | 7 + azure-mgmt-adhybridhealthservice/setup.cfg | 2 + azure-mgmt-adhybridhealthservice/setup.py | 87 + .../operations/virtual_networks_operations.py | 6 +- 177 files changed, 13954 insertions(+), 3 deletions(-) create mode 100644 azure-mgmt-adhybridhealthservice/HISTORY.rst create mode 100644 azure-mgmt-adhybridhealthservice/MANIFEST.in create mode 100644 azure-mgmt-adhybridhealthservice/README.rst create mode 100644 azure-mgmt-adhybridhealthservice/azure/__init__.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/__init__.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/__init__.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/ad_hybrid_health_service_enums.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_paged.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/ad_domain_service_members_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_members_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_replication_status_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_service_members_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_user_preference_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/alerts_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/dimensions_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/reports_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/version.py create mode 100644 azure-mgmt-adhybridhealthservice/sdk_packaging.toml create mode 100644 azure-mgmt-adhybridhealthservice/setup.cfg create mode 100644 azure-mgmt-adhybridhealthservice/setup.py diff --git a/azure-mgmt-adhybridhealthservice/HISTORY.rst b/azure-mgmt-adhybridhealthservice/HISTORY.rst new file mode 100644 index 000000000000..8924d5d6c445 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/HISTORY.rst @@ -0,0 +1,9 @@ +.. :changelog: + +Release History +=============== + +0.1.0 (1970-01-01) +++++++++++++++++++ + +* Initial Release diff --git a/azure-mgmt-adhybridhealthservice/MANIFEST.in b/azure-mgmt-adhybridhealthservice/MANIFEST.in new file mode 100644 index 000000000000..6ceb27f7a96e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/MANIFEST.in @@ -0,0 +1,4 @@ +include *.rst +include azure/__init__.py +include azure/mgmt/__init__.py + diff --git a/azure-mgmt-adhybridhealthservice/README.rst b/azure-mgmt-adhybridhealthservice/README.rst new file mode 100644 index 000000000000..45de4e6b43dd --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/README.rst @@ -0,0 +1,49 @@ +Microsoft Azure SDK for Python +============================== + +This is the Microsoft Azure MyService Management Client Library. + +Azure Resource Manager (ARM) is the next generation of management APIs that +replace the old Azure Service Management (ASM). + +This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. + +For the older Azure Service Management (ASM) libraries, see +`azure-servicemanagement-legacy `__ library. + +For a more complete set of Azure libraries, see the `azure `__ bundle package. + + +Compatibility +============= + +**IMPORTANT**: If you have an earlier version of the azure package +(version < 1.0), you should uninstall it before installing this package. + +You can check the version using pip: + +.. code:: shell + + pip freeze + +If you see azure==0.11.0 (or any version below 1.0), uninstall it first: + +.. code:: shell + + pip uninstall azure + + +Usage +===== + +For code examples, see `MyService Management +`__ +on docs.microsoft.com. + + +Provide Feedback +================ + +If you encounter any bugs or have suggestions, please file an issue in the +`Issues `__ +section of the project. diff --git a/azure-mgmt-adhybridhealthservice/azure/__init__.py b/azure-mgmt-adhybridhealthservice/azure/__init__.py new file mode 100644 index 000000000000..0260537a02bb --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/__init__.py new file mode 100644 index 000000000000..0260537a02bb --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/__init__.py new file mode 100644 index 000000000000..480bcde84789 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/__init__.py @@ -0,0 +1,18 @@ +# 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 .ad_hybrid_health_service import ADHybridHealthService +from .version import VERSION + +__all__ = ['ADHybridHealthService'] + +__version__ = VERSION + diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py new file mode 100644 index 000000000000..ae2fa156c1b3 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py @@ -0,0 +1,144 @@ +# 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.service_client import SDKClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.adds_services_operations import AddsServicesOperations +from .operations.alerts_operations import AlertsOperations +from .operations.configuration_operations import ConfigurationOperations +from .operations.dimensions_operations import DimensionsOperations +from .operations.adds_service_members_operations import AddsServiceMembersOperations +from .operations.ad_domain_service_members_operations import AdDomainServiceMembersOperations +from .operations.adds_services_user_preference_operations import AddsServicesUserPreferenceOperations +from .operations.adds_service_operations import AddsServiceOperations +from .operations.adds_services_replication_status_operations import AddsServicesReplicationStatusOperations +from .operations.adds_services_service_members_operations import AddsServicesServiceMembersOperations +from .operations.operations import Operations +from .operations.reports_operations import ReportsOperations +from .operations.services_operations import ServicesOperations +from .operations.service_operations import ServiceOperations +from .operations.service_members_operations import ServiceMembersOperations +from . import models + + +class ADHybridHealthServiceConfiguration(AzureConfiguration): + """Configuration for ADHybridHealthService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param str base_url: Service URL + """ + + def __init__( + self, credentials, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ADHybridHealthServiceConfiguration, self).__init__(base_url) + + self.add_user_agent('azure-mgmt-adhybridhealthservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + + +class ADHybridHealthService(SDKClient): + """REST APIs for Azure Active Drectory Connect Health + + :ivar config: Configuration for client. + :vartype config: ADHybridHealthServiceConfiguration + + :ivar adds_services: AddsServices operations + :vartype adds_services: azure.mgmt.adhybridhealthservice.operations.AddsServicesOperations + :ivar alerts: Alerts operations + :vartype alerts: azure.mgmt.adhybridhealthservice.operations.AlertsOperations + :ivar configuration: Configuration operations + :vartype configuration: azure.mgmt.adhybridhealthservice.operations.ConfigurationOperations + :ivar dimensions: Dimensions operations + :vartype dimensions: azure.mgmt.adhybridhealthservice.operations.DimensionsOperations + :ivar adds_service_members: AddsServiceMembers operations + :vartype adds_service_members: azure.mgmt.adhybridhealthservice.operations.AddsServiceMembersOperations + :ivar ad_domain_service_members: AdDomainServiceMembers operations + :vartype ad_domain_service_members: azure.mgmt.adhybridhealthservice.operations.AdDomainServiceMembersOperations + :ivar adds_services_user_preference: AddsServicesUserPreference operations + :vartype adds_services_user_preference: azure.mgmt.adhybridhealthservice.operations.AddsServicesUserPreferenceOperations + :ivar adds_service: AddsService operations + :vartype adds_service: azure.mgmt.adhybridhealthservice.operations.AddsServiceOperations + :ivar adds_services_replication_status: AddsServicesReplicationStatus operations + :vartype adds_services_replication_status: azure.mgmt.adhybridhealthservice.operations.AddsServicesReplicationStatusOperations + :ivar adds_services_service_members: AddsServicesServiceMembers operations + :vartype adds_services_service_members: azure.mgmt.adhybridhealthservice.operations.AddsServicesServiceMembersOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.adhybridhealthservice.operations.Operations + :ivar reports: Reports operations + :vartype reports: azure.mgmt.adhybridhealthservice.operations.ReportsOperations + :ivar services: Services operations + :vartype services: azure.mgmt.adhybridhealthservice.operations.ServicesOperations + :ivar service: Service operations + :vartype service: azure.mgmt.adhybridhealthservice.operations.ServiceOperations + :ivar service_members: ServiceMembers operations + :vartype service_members: azure.mgmt.adhybridhealthservice.operations.ServiceMembersOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param str base_url: Service URL + """ + + def __init__( + self, credentials, base_url=None): + + self.config = ADHybridHealthServiceConfiguration(credentials, base_url) + super(ADHybridHealthService, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2014-01-01' + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.adds_services = AddsServicesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.alerts = AlertsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.configuration = ConfigurationOperations( + self._client, self.config, self._serialize, self._deserialize) + self.dimensions = DimensionsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.adds_service_members = AddsServiceMembersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.ad_domain_service_members = AdDomainServiceMembersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.adds_services_user_preference = AddsServicesUserPreferenceOperations( + self._client, self.config, self._serialize, self._deserialize) + self.adds_service = AddsServiceOperations( + self._client, self.config, self._serialize, self._deserialize) + self.adds_services_replication_status = AddsServicesReplicationStatusOperations( + self._client, self.config, self._serialize, self._deserialize) + self.adds_services_service_members = AddsServicesServiceMembersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self.config, self._serialize, self._deserialize) + self.reports = ReportsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.services = ServicesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.service = ServiceOperations( + self._client, self.config, self._serialize, self._deserialize) + self.service_members = ServiceMembersOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py new file mode 100644 index 000000000000..1c1d06898c38 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -0,0 +1,269 @@ +# 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. +# -------------------------------------------------------------------------- + +try: + from .item_py3 import Item + from .additional_information_py3 import AdditionalInformation + from .hotfix_py3 import Hotfix + from .adds_service_member_py3 import AddsServiceMember + from .agent_py3 import Agent + from .help_link_py3 import HelpLink + from .alert_py3 import Alert + from .alert_feedback_py3 import AlertFeedback + from .associated_object_py3 import AssociatedObject + from .value_delta_py3 import ValueDelta + from .attribute_delta_py3 import AttributeDelta + from .attribute_mpping_source_py3 import AttributeMppingSource + from .attribute_mapping_py3 import AttributeMapping + from .change_not_reimported_delta_py3 import ChangeNotReimportedDelta + from .change_not_reimported_entry_py3 import ChangeNotReimportedEntry + from .change_not_reimported_py3 import ChangeNotReimported + from .partition_scope_py3 import PartitionScope + from .partition_py3 import Partition + from .run_step_py3 import RunStep + from .run_profile_py3 import RunProfile + from .connector_py3 import Connector + from .connector_connection_error_py3 import ConnectorConnectionError + from .connector_connection_errors_py3 import ConnectorConnectionErrors + from .connector_object_error_py3 import ConnectorObjectError + from .connector_object_errors_py3 import ConnectorObjectErrors + from .credential_py3 import Credential + from .dimension_py3 import Dimension + from .display_py3 import Display + from .error_count_py3 import ErrorCount + from .object_with_sync_error_py3 import ObjectWithSyncError + from .merged_export_error_py3 import MergedExportError + from .error_detail_py3 import ErrorDetail + from .export_error_py3 import ExportError + from .export_errors_py3 import ExportErrors + from .error_report_users_entry_py3 import ErrorReportUsersEntry + from .export_status_py3 import ExportStatus + from .extension_error_info_py3 import ExtensionErrorInfo + from .forest_summary_py3 import ForestSummary + from .global_configuration_py3 import GlobalConfiguration + from .hotfixes_py3 import Hotfixes + from .rule_error_info_py3 import RuleErrorInfo + from .import_error_py3 import ImportError + from .import_errors_py3 import ImportErrors + from .inbound_replication_neighbor_py3 import InboundReplicationNeighbor + from .inbound_replication_neighbors_py3 import InboundReplicationNeighbors + from .metric_group_py3 import MetricGroup + from .metric_metadata_py3 import MetricMetadata + from .metric_set_py3 import MetricSet + from .metric_sets_py3 import MetricSets + from .module_configuration_py3 import ModuleConfiguration + from .module_configurations_py3 import ModuleConfigurations + from .operation_py3 import Operation + from .password_management_settings_py3 import PasswordManagementSettings + from .password_hash_sync_configuration_py3 import PasswordHashSyncConfiguration + from .replication_summary_py3 import ReplicationSummary + from .replication_status_py3 import ReplicationStatus + from .result_py3 import Result + from .run_profiles_py3 import RunProfiles + from .service_configuration_py3 import ServiceConfiguration + from .service_properties_py3 import ServiceProperties + from .service_member_py3 import ServiceMember + from .tabular_export_error_py3 import TabularExportError + from .tenant_py3 import Tenant + from .tenant_onboarding_details_py3 import TenantOnboardingDetails + from .user_preference_py3 import UserPreference +except (SyntaxError, ImportError): + from .item import Item + from .additional_information import AdditionalInformation + from .hotfix import Hotfix + from .adds_service_member import AddsServiceMember + from .agent import Agent + from .help_link import HelpLink + from .alert import Alert + from .alert_feedback import AlertFeedback + from .associated_object import AssociatedObject + from .value_delta import ValueDelta + from .attribute_delta import AttributeDelta + from .attribute_mpping_source import AttributeMppingSource + from .attribute_mapping import AttributeMapping + from .change_not_reimported_delta import ChangeNotReimportedDelta + from .change_not_reimported_entry import ChangeNotReimportedEntry + from .change_not_reimported import ChangeNotReimported + from .partition_scope import PartitionScope + from .partition import Partition + from .run_step import RunStep + from .run_profile import RunProfile + from .connector import Connector + from .connector_connection_error import ConnectorConnectionError + from .connector_connection_errors import ConnectorConnectionErrors + from .connector_object_error import ConnectorObjectError + from .connector_object_errors import ConnectorObjectErrors + from .credential import Credential + from .dimension import Dimension + from .display import Display + from .error_count import ErrorCount + from .object_with_sync_error import ObjectWithSyncError + from .merged_export_error import MergedExportError + from .error_detail import ErrorDetail + from .export_error import ExportError + from .export_errors import ExportErrors + from .error_report_users_entry import ErrorReportUsersEntry + from .export_status import ExportStatus + from .extension_error_info import ExtensionErrorInfo + from .forest_summary import ForestSummary + from .global_configuration import GlobalConfiguration + from .hotfixes import Hotfixes + from .rule_error_info import RuleErrorInfo + from .import_error import ImportError + from .import_errors import ImportErrors + from .inbound_replication_neighbor import InboundReplicationNeighbor + from .inbound_replication_neighbors import InboundReplicationNeighbors + from .metric_group import MetricGroup + from .metric_metadata import MetricMetadata + from .metric_set import MetricSet + from .metric_sets import MetricSets + from .module_configuration import ModuleConfiguration + from .module_configurations import ModuleConfigurations + from .operation import Operation + from .password_management_settings import PasswordManagementSettings + from .password_hash_sync_configuration import PasswordHashSyncConfiguration + from .replication_summary import ReplicationSummary + from .replication_status import ReplicationStatus + from .result import Result + from .run_profiles import RunProfiles + from .service_configuration import ServiceConfiguration + from .service_properties import ServiceProperties + from .service_member import ServiceMember + from .tabular_export_error import TabularExportError + from .tenant import Tenant + from .tenant_onboarding_details import TenantOnboardingDetails + from .user_preference import UserPreference +from .service_properties_paged import ServicePropertiesPaged +from .item_paged import ItemPaged +from .metric_metadata_paged import MetricMetadataPaged +from .replication_summary_paged import ReplicationSummaryPaged +from .alert_paged import AlertPaged +from .dimension_paged import DimensionPaged +from .adds_service_member_paged import AddsServiceMemberPaged +from .credential_paged import CredentialPaged +from .service_member_paged import ServiceMemberPaged +from .operation_paged import OperationPaged +from .error_count_paged import ErrorCountPaged +from .merged_export_error_paged import MergedExportErrorPaged +from .export_status_paged import ExportStatusPaged +from .alert_feedback_paged import AlertFeedbackPaged +from .error_report_users_entry_paged import ErrorReportUsersEntryPaged +from .connector_paged import ConnectorPaged +from .global_configuration_paged import GlobalConfigurationPaged +from .ad_hybrid_health_service_enums import ( + MonitoringLevel, + Level, + State, + ValueDeltaOperationType, + AttributeDeltaOperationType, + ValueType, + AttributeMappingType, + DeltaOperationType, + HealthStatus, + AlgorithmStepType, + PasswordOperationTypes, +) + +__all__ = [ + 'Item', + 'AdditionalInformation', + 'Hotfix', + 'AddsServiceMember', + 'Agent', + 'HelpLink', + 'Alert', + 'AlertFeedback', + 'AssociatedObject', + 'ValueDelta', + 'AttributeDelta', + 'AttributeMppingSource', + 'AttributeMapping', + 'ChangeNotReimportedDelta', + 'ChangeNotReimportedEntry', + 'ChangeNotReimported', + 'PartitionScope', + 'Partition', + 'RunStep', + 'RunProfile', + 'Connector', + 'ConnectorConnectionError', + 'ConnectorConnectionErrors', + 'ConnectorObjectError', + 'ConnectorObjectErrors', + 'Credential', + 'Dimension', + 'Display', + 'ErrorCount', + 'ObjectWithSyncError', + 'MergedExportError', + 'ErrorDetail', + 'ExportError', + 'ExportErrors', + 'ErrorReportUsersEntry', + 'ExportStatus', + 'ExtensionErrorInfo', + 'ForestSummary', + 'GlobalConfiguration', + 'Hotfixes', + 'RuleErrorInfo', + 'ImportError', + 'ImportErrors', + 'InboundReplicationNeighbor', + 'InboundReplicationNeighbors', + 'MetricGroup', + 'MetricMetadata', + 'MetricSet', + 'MetricSets', + 'ModuleConfiguration', + 'ModuleConfigurations', + 'Operation', + 'PasswordManagementSettings', + 'PasswordHashSyncConfiguration', + 'ReplicationSummary', + 'ReplicationStatus', + 'Result', + 'RunProfiles', + 'ServiceConfiguration', + 'ServiceProperties', + 'ServiceMember', + 'TabularExportError', + 'Tenant', + 'TenantOnboardingDetails', + 'UserPreference', + 'ServicePropertiesPaged', + 'ItemPaged', + 'MetricMetadataPaged', + 'ReplicationSummaryPaged', + 'AlertPaged', + 'DimensionPaged', + 'AddsServiceMemberPaged', + 'CredentialPaged', + 'ServiceMemberPaged', + 'OperationPaged', + 'ErrorCountPaged', + 'MergedExportErrorPaged', + 'ExportStatusPaged', + 'AlertFeedbackPaged', + 'ErrorReportUsersEntryPaged', + 'ConnectorPaged', + 'GlobalConfigurationPaged', + 'MonitoringLevel', + 'Level', + 'State', + 'ValueDeltaOperationType', + 'AttributeDeltaOperationType', + 'ValueType', + 'AttributeMappingType', + 'DeltaOperationType', + 'HealthStatus', + 'AlgorithmStepType', + 'PasswordOperationTypes', +] diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/ad_hybrid_health_service_enums.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/ad_hybrid_health_service_enums.py new file mode 100644 index 000000000000..ac5e34c7f127 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/ad_hybrid_health_service_enums.py @@ -0,0 +1,115 @@ +# 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 enum import Enum + + +class MonitoringLevel(str, Enum): + + partial = "Partial" + full = "Full" + off = "Off" + + +class Level(str, Enum): + + warning = "Warning" + error = "Error" + pre_warning = "PreWarning" + + +class State(str, Enum): + + active = "Active" + resolved_by_positive_result = "ResolvedByPositiveResult" + resolved_manually = "ResolvedManually" + resolved_by_timer = "ResolvedByTimer" + resolved_by_state_change = "ResolvedByStateChange" + + +class ValueDeltaOperationType(str, Enum): + + undefined = "Undefined" + add = "Add" + update = "Update" + delete = "Delete" + + +class AttributeDeltaOperationType(str, Enum): + + undefined = "Undefined" + add = "Add" + replace = "Replace" + update = "Update" + delete = "Delete" + + +class ValueType(str, Enum): + + undefined = "Undefined" + dn = "Dn" + binary = "Binary" + string = "String" + integer = "Integer" + boolean = "Boolean" + + +class AttributeMappingType(str, Enum): + + constant = "Constant" + direct = "Direct" + dn_part = "DnPart" + script = "Script" + + +class DeltaOperationType(str, Enum): + + undefined = "Undefined" + none = "None" + add = "Add" + replace = "Replace" + update = "Update" + delete = "Delete" + obsolete = "Obsolete" + delet_add = "DeletAdd" + + +class HealthStatus(str, Enum): + + healthy = "Healthy" + warning = "Warning" + error = "Error" + not_monitored = "NotMonitored" + missing = "Missing" + + +class AlgorithmStepType(str, Enum): + + undefined = "Undefined" + staging = "Staging" + connector_filter = "ConnectorFilter" + join = "Join" + projection = "Projection" + import_flow = "ImportFlow" + provisioning = "Provisioning" + validate_connector_filter = "ValidateConnectorFilter" + deprovisioning = "Deprovisioning" + export_flow = "ExportFlow" + mv_deletion = "MvDeletion" + recall = "Recall" + mv_object_type_change = "MvObjectTypeChange" + + +class PasswordOperationTypes(str, Enum): + + undefined = "Undefined" + set = "Set" + change = "Change" diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.py new file mode 100644 index 000000000000..a0c56481b679 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.py @@ -0,0 +1,41 @@ +# 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 AdditionalInformation(Model): + """The addtional information for a property. + + :param title_name: The title name for the property. + :type title_name: str + :param title_value: The title value for the property. + :type title_value: str + :param properties: The list of properties which are included in the + additional information. + :type properties: object + :param has_properties: Indicates if properties are present or not. + :type has_properties: bool + """ + + _attribute_map = { + 'title_name': {'key': 'titleName', 'type': 'str'}, + 'title_value': {'key': 'titleValue', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'has_properties': {'key': 'hasProperties', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(AdditionalInformation, self).__init__(**kwargs) + self.title_name = kwargs.get('title_name', None) + self.title_value = kwargs.get('title_value', None) + self.properties = kwargs.get('properties', None) + self.has_properties = kwargs.get('has_properties', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information_py3.py new file mode 100644 index 000000000000..88435d894f70 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information_py3.py @@ -0,0 +1,41 @@ +# 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 AdditionalInformation(Model): + """The addtional information for a property. + + :param title_name: The title name for the property. + :type title_name: str + :param title_value: The title value for the property. + :type title_value: str + :param properties: The list of properties which are included in the + additional information. + :type properties: object + :param has_properties: Indicates if properties are present or not. + :type has_properties: bool + """ + + _attribute_map = { + 'title_name': {'key': 'titleName', 'type': 'str'}, + 'title_value': {'key': 'titleValue', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'has_properties': {'key': 'hasProperties', 'type': 'bool'}, + } + + def __init__(self, *, title_name: str=None, title_value: str=None, properties=None, has_properties: bool=None, **kwargs) -> None: + super(AdditionalInformation, self).__init__(**kwargs) + self.title_name = title_name + self.title_value = title_value + self.properties = properties + self.has_properties = has_properties diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py new file mode 100644 index 000000000000..741d6b2c314b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py @@ -0,0 +1,181 @@ +# 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 AddsServiceMember(Model): + """The server details for ADDS service. + + :param domain_name: The domain name. + :type domain_name: str + :param site_name: The site name. + :type site_name: str + :param adds_roles: The list of ADDS roles. + :type adds_roles: list[str] + :param gc_reachable: Indicates if the global catalog for this domain is + reachable or not. + :type gc_reachable: bool + :param is_advertising: Indicates if the Dc is advertising or not. + :type is_advertising: bool + :param pdc_reachable: Indicates if the primary domain controller is + reachable or not. + :type pdc_reachable: bool + :param sysvol_state: Indicates if the SYSVOL state is healthy or not. + :type sysvol_state: bool + :param dc_types: The list of domain controller types. + :type dc_types: list[str] + :param service_member_id: The id of the server. + :type service_member_id: str + :param service_id: The service id to whom this server belongs. + :type service_id: str + :param tenant_id: The tenant id to whom this server belongs. + :type tenant_id: str + :param active_alerts: The total number of alerts that are currently active + for the server. + :type active_alerts: int + :param additional_information: The additional information, if any, for the + server. + :type additional_information: str + :param created_date: The date time , in UTC, when the server was + onboaraded to Azure Active Directory Connect Health. + :type created_date: datetime + :param dimensions: The server specific configuration related dimensions. + :type dimensions: list[~azure.mgmt.adhybridhealthservice.models.Item] + :param disabled: Indicates if the server is disabled or not. + :type disabled: bool + :param disabled_reason: The reason for disabling the server. + :type disabled_reason: int + :param installed_qfes: The list of installed QFEs for the server. + :type installed_qfes: + list[~azure.mgmt.adhybridhealthservice.models.Hotfix] + :param last_disabled: The date and time , in UTC, when the server was last + disabled. + :type last_disabled: datetime + :param last_reboot: The date and time, in UTC, when the server was last + rebooted. + :type last_reboot: datetime + :param last_server_reported_monitoring_level_change: The date and time, in + UTC, when the server's data monitoring configuration was last changed. + :type last_server_reported_monitoring_level_change: datetime + :param last_updated: The date and time, in UTC, when the server proeprties + were last updated. + :type last_updated: datetime + :param machine_id: The id of the machine. + :type machine_id: str + :param machine_name: The name of the server. + :type machine_name: str + :param monitoring_configurations_computed: The monitoring configuration of + the server which determines what activities are monitored by Azure Active + Directory Connect Health. + :type monitoring_configurations_computed: + list[~azure.mgmt.adhybridhealthservice.models.Item] + :param monitoring_configurations_customized: The customized monitoring + configuration of the server which determines what activities are monitored + by Azure Active Directory Connect Health. + :type monitoring_configurations_customized: + list[~azure.mgmt.adhybridhealthservice.models.Item] + :param os_name: The name of the operating system installed in the machine. + :type os_name: str + :param os_version: The version of the operating system installed in the + machine. + :type os_version: str + :param properties: Server specific properties. + :type properties: list[~azure.mgmt.adhybridhealthservice.models.Item] + :param recommended_qfes: The list of recommended hotfixes for the server. + :type recommended_qfes: + list[~azure.mgmt.adhybridhealthservice.models.Hotfix] + :param resolved_alerts: The total count of alerts that are resolved for + this server. + :type resolved_alerts: int + :param role: The service role that is being monitored in the server. + :type role: str + :param server_reported_monitoring_level: The monitoring level reported by + the server. Possible values include: 'Partial', 'Full', 'Off' + :type server_reported_monitoring_level: str or + ~azure.mgmt.adhybridhealthservice.models.MonitoringLevel + :param status: The health status of the server. + :type status: str + """ + + _attribute_map = { + 'domain_name': {'key': 'domainName', 'type': 'str'}, + 'site_name': {'key': 'siteName', 'type': 'str'}, + 'adds_roles': {'key': 'addsRoles', 'type': '[str]'}, + 'gc_reachable': {'key': 'gcReachable', 'type': 'bool'}, + 'is_advertising': {'key': 'isAdvertising', 'type': 'bool'}, + 'pdc_reachable': {'key': 'pdcReachable', 'type': 'bool'}, + 'sysvol_state': {'key': 'sysvolState', 'type': 'bool'}, + 'dc_types': {'key': 'dcTypes', 'type': '[str]'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, + 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'dimensions': {'key': 'dimensions', 'type': '[Item]'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'disabled_reason': {'key': 'disabledReason', 'type': 'int'}, + 'installed_qfes': {'key': 'installedQfes', 'type': '[Hotfix]'}, + 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, + 'last_reboot': {'key': 'lastReboot', 'type': 'iso-8601'}, + 'last_server_reported_monitoring_level_change': {'key': 'lastServerReportedMonitoringLevelChange', 'type': 'iso-8601'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'machine_id': {'key': 'machineId', 'type': 'str'}, + 'machine_name': {'key': 'machineName', 'type': 'str'}, + 'monitoring_configurations_computed': {'key': 'monitoringConfigurationsComputed', 'type': '[Item]'}, + 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': '[Item]'}, + 'os_name': {'key': 'osName', 'type': 'str'}, + 'os_version': {'key': 'osVersion', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '[Item]'}, + 'recommended_qfes': {'key': 'recommendedQfes', 'type': '[Hotfix]'}, + 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, + 'role': {'key': 'role', 'type': 'str'}, + 'server_reported_monitoring_level': {'key': 'serverReportedMonitoringLevel', 'type': 'MonitoringLevel'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AddsServiceMember, self).__init__(**kwargs) + self.domain_name = kwargs.get('domain_name', None) + self.site_name = kwargs.get('site_name', None) + self.adds_roles = kwargs.get('adds_roles', None) + self.gc_reachable = kwargs.get('gc_reachable', None) + self.is_advertising = kwargs.get('is_advertising', None) + self.pdc_reachable = kwargs.get('pdc_reachable', None) + self.sysvol_state = kwargs.get('sysvol_state', None) + self.dc_types = kwargs.get('dc_types', None) + self.service_member_id = kwargs.get('service_member_id', None) + self.service_id = kwargs.get('service_id', None) + self.tenant_id = kwargs.get('tenant_id', None) + self.active_alerts = kwargs.get('active_alerts', None) + self.additional_information = kwargs.get('additional_information', None) + self.created_date = kwargs.get('created_date', None) + self.dimensions = kwargs.get('dimensions', None) + self.disabled = kwargs.get('disabled', None) + self.disabled_reason = kwargs.get('disabled_reason', None) + self.installed_qfes = kwargs.get('installed_qfes', None) + self.last_disabled = kwargs.get('last_disabled', None) + self.last_reboot = kwargs.get('last_reboot', None) + self.last_server_reported_monitoring_level_change = kwargs.get('last_server_reported_monitoring_level_change', None) + self.last_updated = kwargs.get('last_updated', None) + self.machine_id = kwargs.get('machine_id', None) + self.machine_name = kwargs.get('machine_name', None) + self.monitoring_configurations_computed = kwargs.get('monitoring_configurations_computed', None) + self.monitoring_configurations_customized = kwargs.get('monitoring_configurations_customized', None) + self.os_name = kwargs.get('os_name', None) + self.os_version = kwargs.get('os_version', None) + self.properties = kwargs.get('properties', None) + self.recommended_qfes = kwargs.get('recommended_qfes', None) + self.resolved_alerts = kwargs.get('resolved_alerts', None) + self.role = kwargs.get('role', None) + self.server_reported_monitoring_level = kwargs.get('server_reported_monitoring_level', None) + self.status = kwargs.get('status', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_paged.py new file mode 100644 index 000000000000..476f3b7d97c4 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_paged.py @@ -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 AddsServiceMemberPaged(Paged): + """ + A paging container for iterating over a list of :class:`AddsServiceMember ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[AddsServiceMember]'} + } + + def __init__(self, *args, **kwargs): + + super(AddsServiceMemberPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_py3.py new file mode 100644 index 000000000000..276a5e2c3e42 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_py3.py @@ -0,0 +1,181 @@ +# 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 AddsServiceMember(Model): + """The server details for ADDS service. + + :param domain_name: The domain name. + :type domain_name: str + :param site_name: The site name. + :type site_name: str + :param adds_roles: The list of ADDS roles. + :type adds_roles: list[str] + :param gc_reachable: Indicates if the global catalog for this domain is + reachable or not. + :type gc_reachable: bool + :param is_advertising: Indicates if the Dc is advertising or not. + :type is_advertising: bool + :param pdc_reachable: Indicates if the primary domain controller is + reachable or not. + :type pdc_reachable: bool + :param sysvol_state: Indicates if the SYSVOL state is healthy or not. + :type sysvol_state: bool + :param dc_types: The list of domain controller types. + :type dc_types: list[str] + :param service_member_id: The id of the server. + :type service_member_id: str + :param service_id: The service id to whom this server belongs. + :type service_id: str + :param tenant_id: The tenant id to whom this server belongs. + :type tenant_id: str + :param active_alerts: The total number of alerts that are currently active + for the server. + :type active_alerts: int + :param additional_information: The additional information, if any, for the + server. + :type additional_information: str + :param created_date: The date time , in UTC, when the server was + onboaraded to Azure Active Directory Connect Health. + :type created_date: datetime + :param dimensions: The server specific configuration related dimensions. + :type dimensions: list[~azure.mgmt.adhybridhealthservice.models.Item] + :param disabled: Indicates if the server is disabled or not. + :type disabled: bool + :param disabled_reason: The reason for disabling the server. + :type disabled_reason: int + :param installed_qfes: The list of installed QFEs for the server. + :type installed_qfes: + list[~azure.mgmt.adhybridhealthservice.models.Hotfix] + :param last_disabled: The date and time , in UTC, when the server was last + disabled. + :type last_disabled: datetime + :param last_reboot: The date and time, in UTC, when the server was last + rebooted. + :type last_reboot: datetime + :param last_server_reported_monitoring_level_change: The date and time, in + UTC, when the server's data monitoring configuration was last changed. + :type last_server_reported_monitoring_level_change: datetime + :param last_updated: The date and time, in UTC, when the server proeprties + were last updated. + :type last_updated: datetime + :param machine_id: The id of the machine. + :type machine_id: str + :param machine_name: The name of the server. + :type machine_name: str + :param monitoring_configurations_computed: The monitoring configuration of + the server which determines what activities are monitored by Azure Active + Directory Connect Health. + :type monitoring_configurations_computed: + list[~azure.mgmt.adhybridhealthservice.models.Item] + :param monitoring_configurations_customized: The customized monitoring + configuration of the server which determines what activities are monitored + by Azure Active Directory Connect Health. + :type monitoring_configurations_customized: + list[~azure.mgmt.adhybridhealthservice.models.Item] + :param os_name: The name of the operating system installed in the machine. + :type os_name: str + :param os_version: The version of the operating system installed in the + machine. + :type os_version: str + :param properties: Server specific properties. + :type properties: list[~azure.mgmt.adhybridhealthservice.models.Item] + :param recommended_qfes: The list of recommended hotfixes for the server. + :type recommended_qfes: + list[~azure.mgmt.adhybridhealthservice.models.Hotfix] + :param resolved_alerts: The total count of alerts that are resolved for + this server. + :type resolved_alerts: int + :param role: The service role that is being monitored in the server. + :type role: str + :param server_reported_monitoring_level: The monitoring level reported by + the server. Possible values include: 'Partial', 'Full', 'Off' + :type server_reported_monitoring_level: str or + ~azure.mgmt.adhybridhealthservice.models.MonitoringLevel + :param status: The health status of the server. + :type status: str + """ + + _attribute_map = { + 'domain_name': {'key': 'domainName', 'type': 'str'}, + 'site_name': {'key': 'siteName', 'type': 'str'}, + 'adds_roles': {'key': 'addsRoles', 'type': '[str]'}, + 'gc_reachable': {'key': 'gcReachable', 'type': 'bool'}, + 'is_advertising': {'key': 'isAdvertising', 'type': 'bool'}, + 'pdc_reachable': {'key': 'pdcReachable', 'type': 'bool'}, + 'sysvol_state': {'key': 'sysvolState', 'type': 'bool'}, + 'dc_types': {'key': 'dcTypes', 'type': '[str]'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, + 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'dimensions': {'key': 'dimensions', 'type': '[Item]'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'disabled_reason': {'key': 'disabledReason', 'type': 'int'}, + 'installed_qfes': {'key': 'installedQfes', 'type': '[Hotfix]'}, + 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, + 'last_reboot': {'key': 'lastReboot', 'type': 'iso-8601'}, + 'last_server_reported_monitoring_level_change': {'key': 'lastServerReportedMonitoringLevelChange', 'type': 'iso-8601'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'machine_id': {'key': 'machineId', 'type': 'str'}, + 'machine_name': {'key': 'machineName', 'type': 'str'}, + 'monitoring_configurations_computed': {'key': 'monitoringConfigurationsComputed', 'type': '[Item]'}, + 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': '[Item]'}, + 'os_name': {'key': 'osName', 'type': 'str'}, + 'os_version': {'key': 'osVersion', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '[Item]'}, + 'recommended_qfes': {'key': 'recommendedQfes', 'type': '[Hotfix]'}, + 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, + 'role': {'key': 'role', 'type': 'str'}, + 'server_reported_monitoring_level': {'key': 'serverReportedMonitoringLevel', 'type': 'MonitoringLevel'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, *, domain_name: str=None, site_name: str=None, adds_roles=None, gc_reachable: bool=None, is_advertising: bool=None, pdc_reachable: bool=None, sysvol_state: bool=None, dc_types=None, service_member_id: str=None, service_id: str=None, tenant_id: str=None, active_alerts: int=None, additional_information: str=None, created_date=None, dimensions=None, disabled: bool=None, disabled_reason: int=None, installed_qfes=None, last_disabled=None, last_reboot=None, last_server_reported_monitoring_level_change=None, last_updated=None, machine_id: str=None, machine_name: str=None, monitoring_configurations_computed=None, monitoring_configurations_customized=None, os_name: str=None, os_version: str=None, properties=None, recommended_qfes=None, resolved_alerts: int=None, role: str=None, server_reported_monitoring_level=None, status: str=None, **kwargs) -> None: + super(AddsServiceMember, self).__init__(**kwargs) + self.domain_name = domain_name + self.site_name = site_name + self.adds_roles = adds_roles + self.gc_reachable = gc_reachable + self.is_advertising = is_advertising + self.pdc_reachable = pdc_reachable + self.sysvol_state = sysvol_state + self.dc_types = dc_types + self.service_member_id = service_member_id + self.service_id = service_id + self.tenant_id = tenant_id + self.active_alerts = active_alerts + self.additional_information = additional_information + self.created_date = created_date + self.dimensions = dimensions + self.disabled = disabled + self.disabled_reason = disabled_reason + self.installed_qfes = installed_qfes + self.last_disabled = last_disabled + self.last_reboot = last_reboot + self.last_server_reported_monitoring_level_change = last_server_reported_monitoring_level_change + self.last_updated = last_updated + self.machine_id = machine_id + self.machine_name = machine_name + self.monitoring_configurations_computed = monitoring_configurations_computed + self.monitoring_configurations_customized = monitoring_configurations_customized + self.os_name = os_name + self.os_version = os_version + self.properties = properties + self.recommended_qfes = recommended_qfes + self.resolved_alerts = resolved_alerts + self.role = role + self.server_reported_monitoring_level = server_reported_monitoring_level + self.status = status diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent.py new file mode 100644 index 000000000000..15c18103da71 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent.py @@ -0,0 +1,53 @@ +# 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 Agent(Model): + """The agent details. + + :param tenant_id: The tenant Id. + :type tenant_id: str + :param machine_id: The machine Id. + :type machine_id: str + :param credential: The agent credential details. + :type credential: object + :param machine_name: The machine name. + :type machine_name: str + :param agent_version: The agent version. + :type agent_version: str + :param created_date: The date and time, in UTC, when the agent was + created. + :type created_date: datetime + :param key: The connector hash key. + :type key: str + """ + + _attribute_map = { + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'machine_id': {'key': 'machineId', 'type': 'str'}, + 'credential': {'key': 'credential', 'type': 'object'}, + 'machine_name': {'key': 'machineName', 'type': 'str'}, + 'agent_version': {'key': 'agentVersion', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'key': {'key': 'key', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Agent, self).__init__(**kwargs) + self.tenant_id = kwargs.get('tenant_id', None) + self.machine_id = kwargs.get('machine_id', None) + self.credential = kwargs.get('credential', None) + self.machine_name = kwargs.get('machine_name', None) + self.agent_version = kwargs.get('agent_version', None) + self.created_date = kwargs.get('created_date', None) + self.key = kwargs.get('key', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent_py3.py new file mode 100644 index 000000000000..ee318b643b1e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent_py3.py @@ -0,0 +1,53 @@ +# 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 Agent(Model): + """The agent details. + + :param tenant_id: The tenant Id. + :type tenant_id: str + :param machine_id: The machine Id. + :type machine_id: str + :param credential: The agent credential details. + :type credential: object + :param machine_name: The machine name. + :type machine_name: str + :param agent_version: The agent version. + :type agent_version: str + :param created_date: The date and time, in UTC, when the agent was + created. + :type created_date: datetime + :param key: The connector hash key. + :type key: str + """ + + _attribute_map = { + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'machine_id': {'key': 'machineId', 'type': 'str'}, + 'credential': {'key': 'credential', 'type': 'object'}, + 'machine_name': {'key': 'machineName', 'type': 'str'}, + 'agent_version': {'key': 'agentVersion', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'key': {'key': 'key', 'type': 'str'}, + } + + def __init__(self, *, tenant_id: str=None, machine_id: str=None, credential=None, machine_name: str=None, agent_version: str=None, created_date=None, key: str=None, **kwargs) -> None: + super(Agent, self).__init__(**kwargs) + self.tenant_id = tenant_id + self.machine_id = machine_id + self.credential = credential + self.machine_name = machine_name + self.agent_version = agent_version + self.created_date = created_date + self.key = key diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py new file mode 100644 index 000000000000..fa60b8e1bdae --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py @@ -0,0 +1,114 @@ +# 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 Alert(Model): + """The alert details indicating an issue with service or server. + + :param alert_id: The alert Id. + :type alert_id: str + :param level: The alert level which indicates the severity of the alert. + Possible values include: 'Warning', 'Error', 'PreWarning' + :type level: str or ~azure.mgmt.adhybridhealthservice.models.Level + :param state: The alert state which can be either active or resolved with + multile resolution types. Possible values include: 'Active', + 'ResolvedByPositiveResult', 'ResolvedManually', 'ResolvedByTimer', + 'ResolvedByStateChange' + :type state: str or ~azure.mgmt.adhybridhealthservice.models.State + :param short_name: The alert short name. + :type short_name: str + :param display_name: The display name for the alert. + :type display_name: str + :param description: The alert description. + :type description: str + :param remediation: The alert remediation. + :type remediation: str + :param related_links: The help links to get more information related to + the alert. + :type related_links: + list[~azure.mgmt.adhybridhealthservice.models.HelpLink] + :param scope: The scope of the alert. Indicates if it is a service or a + server related alert. + :type scope: str + :param additional_information: Additional information related to the + alert. + :type additional_information: + list[~azure.mgmt.adhybridhealthservice.models.AdditionalInformation] + :param created_date: The date and time,in UTC,when the alert was created. + :type created_date: datetime + :param resolved_date: The date and time, in UTC, when the alert was + resolved. + :type resolved_date: datetime + :param last_updated: The date and time, in UTC, when the alert was last + updated. + :type last_updated: datetime + :param monitor_role_type: The monitoring role type for which the alert was + raised. + :type monitor_role_type: str + :param active_alert_properties: The active alert properties. + :type active_alert_properties: + list[~azure.mgmt.adhybridhealthservice.models.Item] + :param resolved_alert_properties: The resolved alert properties. + :type resolved_alert_properties: + list[~azure.mgmt.adhybridhealthservice.models.Item] + :param tenant_id: The tenant Id. + :type tenant_id: str + :param service_id: The service Id. + :type service_id: str + :param service_member_id: The server Id. + :type service_member_id: str + """ + + _attribute_map = { + 'alert_id': {'key': 'alertId', 'type': 'str'}, + 'level': {'key': 'level', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'short_name': {'key': 'shortName', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'remediation': {'key': 'remediation', 'type': 'str'}, + 'related_links': {'key': 'relatedLinks', 'type': '[HelpLink]'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'additional_information': {'key': 'additionalInformation', 'type': '[AdditionalInformation]'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'resolved_date': {'key': 'resolvedDate', 'type': 'iso-8601'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'monitor_role_type': {'key': 'monitorRoleType', 'type': 'str'}, + 'active_alert_properties': {'key': 'activeAlertProperties', 'type': '[Item]'}, + 'resolved_alert_properties': {'key': 'resolvedAlertProperties', 'type': '[Item]'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Alert, self).__init__(**kwargs) + self.alert_id = kwargs.get('alert_id', None) + self.level = kwargs.get('level', None) + self.state = kwargs.get('state', None) + self.short_name = kwargs.get('short_name', None) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.remediation = kwargs.get('remediation', None) + self.related_links = kwargs.get('related_links', None) + self.scope = kwargs.get('scope', None) + self.additional_information = kwargs.get('additional_information', None) + self.created_date = kwargs.get('created_date', None) + self.resolved_date = kwargs.get('resolved_date', None) + self.last_updated = kwargs.get('last_updated', None) + self.monitor_role_type = kwargs.get('monitor_role_type', None) + self.active_alert_properties = kwargs.get('active_alert_properties', None) + self.resolved_alert_properties = kwargs.get('resolved_alert_properties', None) + self.tenant_id = kwargs.get('tenant_id', None) + self.service_id = kwargs.get('service_id', None) + self.service_member_id = kwargs.get('service_member_id', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback.py new file mode 100644 index 000000000000..aeb1d48509a9 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback.py @@ -0,0 +1,59 @@ +# 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 AlertFeedback(Model): + """The alert feedback details. + + :param level: The alert level which indicates the severity of the alert. + :type level: str + :param state: The alert state which can be either active or resolved with + multile resolution types. + :type state: str + :param short_name: The alert short name. + :type short_name: str + :param feedback: The feedback for the alert which indicates if the + customer likes or dislikes the alert. + :type feedback: str + :param comment: Additional comments related to the alert. + :type comment: str + :param consented_to_share: Indicates if the alert feedback can be shared + from product team. + :type consented_to_share: bool + :param service_member_id: The server Id of the alert. + :type service_member_id: str + :param created_date: The date and time,in UTC,when the alert was created. + :type created_date: datetime + """ + + _attribute_map = { + 'level': {'key': 'level', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'short_name': {'key': 'shortName', 'type': 'str'}, + 'feedback': {'key': 'feedback', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'consented_to_share': {'key': 'consentedToShare', 'type': 'bool'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(AlertFeedback, self).__init__(**kwargs) + self.level = kwargs.get('level', None) + self.state = kwargs.get('state', None) + self.short_name = kwargs.get('short_name', None) + self.feedback = kwargs.get('feedback', None) + self.comment = kwargs.get('comment', None) + self.consented_to_share = kwargs.get('consented_to_share', None) + self.service_member_id = kwargs.get('service_member_id', None) + self.created_date = kwargs.get('created_date', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_paged.py new file mode 100644 index 000000000000..5c252b506778 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_paged.py @@ -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 AlertFeedbackPaged(Paged): + """ + A paging container for iterating over a list of :class:`AlertFeedback ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[AlertFeedback]'} + } + + def __init__(self, *args, **kwargs): + + super(AlertFeedbackPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_py3.py new file mode 100644 index 000000000000..69980083737e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_py3.py @@ -0,0 +1,59 @@ +# 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 AlertFeedback(Model): + """The alert feedback details. + + :param level: The alert level which indicates the severity of the alert. + :type level: str + :param state: The alert state which can be either active or resolved with + multile resolution types. + :type state: str + :param short_name: The alert short name. + :type short_name: str + :param feedback: The feedback for the alert which indicates if the + customer likes or dislikes the alert. + :type feedback: str + :param comment: Additional comments related to the alert. + :type comment: str + :param consented_to_share: Indicates if the alert feedback can be shared + from product team. + :type consented_to_share: bool + :param service_member_id: The server Id of the alert. + :type service_member_id: str + :param created_date: The date and time,in UTC,when the alert was created. + :type created_date: datetime + """ + + _attribute_map = { + 'level': {'key': 'level', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'short_name': {'key': 'shortName', 'type': 'str'}, + 'feedback': {'key': 'feedback', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'consented_to_share': {'key': 'consentedToShare', 'type': 'bool'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + } + + def __init__(self, *, level: str=None, state: str=None, short_name: str=None, feedback: str=None, comment: str=None, consented_to_share: bool=None, service_member_id: str=None, created_date=None, **kwargs) -> None: + super(AlertFeedback, self).__init__(**kwargs) + self.level = level + self.state = state + self.short_name = short_name + self.feedback = feedback + self.comment = comment + self.consented_to_share = consented_to_share + self.service_member_id = service_member_id + self.created_date = created_date diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_paged.py new file mode 100644 index 000000000000..a9185fe635af --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_paged.py @@ -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 AlertPaged(Paged): + """ + A paging container for iterating over a list of :class:`Alert ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Alert]'} + } + + def __init__(self, *args, **kwargs): + + super(AlertPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py new file mode 100644 index 000000000000..4489168ae8b5 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py @@ -0,0 +1,114 @@ +# 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 Alert(Model): + """The alert details indicating an issue with service or server. + + :param alert_id: The alert Id. + :type alert_id: str + :param level: The alert level which indicates the severity of the alert. + Possible values include: 'Warning', 'Error', 'PreWarning' + :type level: str or ~azure.mgmt.adhybridhealthservice.models.Level + :param state: The alert state which can be either active or resolved with + multile resolution types. Possible values include: 'Active', + 'ResolvedByPositiveResult', 'ResolvedManually', 'ResolvedByTimer', + 'ResolvedByStateChange' + :type state: str or ~azure.mgmt.adhybridhealthservice.models.State + :param short_name: The alert short name. + :type short_name: str + :param display_name: The display name for the alert. + :type display_name: str + :param description: The alert description. + :type description: str + :param remediation: The alert remediation. + :type remediation: str + :param related_links: The help links to get more information related to + the alert. + :type related_links: + list[~azure.mgmt.adhybridhealthservice.models.HelpLink] + :param scope: The scope of the alert. Indicates if it is a service or a + server related alert. + :type scope: str + :param additional_information: Additional information related to the + alert. + :type additional_information: + list[~azure.mgmt.adhybridhealthservice.models.AdditionalInformation] + :param created_date: The date and time,in UTC,when the alert was created. + :type created_date: datetime + :param resolved_date: The date and time, in UTC, when the alert was + resolved. + :type resolved_date: datetime + :param last_updated: The date and time, in UTC, when the alert was last + updated. + :type last_updated: datetime + :param monitor_role_type: The monitoring role type for which the alert was + raised. + :type monitor_role_type: str + :param active_alert_properties: The active alert properties. + :type active_alert_properties: + list[~azure.mgmt.adhybridhealthservice.models.Item] + :param resolved_alert_properties: The resolved alert properties. + :type resolved_alert_properties: + list[~azure.mgmt.adhybridhealthservice.models.Item] + :param tenant_id: The tenant Id. + :type tenant_id: str + :param service_id: The service Id. + :type service_id: str + :param service_member_id: The server Id. + :type service_member_id: str + """ + + _attribute_map = { + 'alert_id': {'key': 'alertId', 'type': 'str'}, + 'level': {'key': 'level', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'short_name': {'key': 'shortName', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'remediation': {'key': 'remediation', 'type': 'str'}, + 'related_links': {'key': 'relatedLinks', 'type': '[HelpLink]'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'additional_information': {'key': 'additionalInformation', 'type': '[AdditionalInformation]'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'resolved_date': {'key': 'resolvedDate', 'type': 'iso-8601'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'monitor_role_type': {'key': 'monitorRoleType', 'type': 'str'}, + 'active_alert_properties': {'key': 'activeAlertProperties', 'type': '[Item]'}, + 'resolved_alert_properties': {'key': 'resolvedAlertProperties', 'type': '[Item]'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + } + + def __init__(self, *, alert_id: str=None, level=None, state=None, short_name: str=None, display_name: str=None, description: str=None, remediation: str=None, related_links=None, scope: str=None, additional_information=None, created_date=None, resolved_date=None, last_updated=None, monitor_role_type: str=None, active_alert_properties=None, resolved_alert_properties=None, tenant_id: str=None, service_id: str=None, service_member_id: str=None, **kwargs) -> None: + super(Alert, self).__init__(**kwargs) + self.alert_id = alert_id + self.level = level + self.state = state + self.short_name = short_name + self.display_name = display_name + self.description = description + self.remediation = remediation + self.related_links = related_links + self.scope = scope + self.additional_information = additional_information + self.created_date = created_date + self.resolved_date = resolved_date + self.last_updated = last_updated + self.monitor_role_type = monitor_role_type + self.active_alert_properties = active_alert_properties + self.resolved_alert_properties = resolved_alert_properties + self.tenant_id = tenant_id + self.service_id = service_id + self.service_member_id = service_member_id diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object.py new file mode 100644 index 000000000000..a6a547c2c03b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object.py @@ -0,0 +1,72 @@ +# 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 AssociatedObject(Model): + """Object that hold sync object details. + + :param display_name: The display name of the object. + :type display_name: str + :param distinguished_name: The distinguished name of the object. + :type distinguished_name: str + :param last_dir_sync_time: The last dirSync time. + :type last_dir_sync_time: datetime + :param mail: The email of the object. + :type mail: str + :param object_guid: The object guid. + :type object_guid: str + :param object_type: The object type. + :type object_type: str + :param onpremises_user_principal_name: The On-premises UPN. + :type onpremises_user_principal_name: str + :param proxy_addresses: The proxy addresses. + :type proxy_addresses: str + :param source_anchor: The source anchor. + :type source_anchor: str + :param source_of_authority: The source of authority. + :type source_of_authority: str + :param time_occurred: The time of the error. + :type time_occurred: datetime + :param user_principal_name: The UPN. + :type user_principal_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'distinguished_name': {'key': 'distinguishedName', 'type': 'str'}, + 'last_dir_sync_time': {'key': 'lastDirSyncTime', 'type': 'iso-8601'}, + 'mail': {'key': 'mail', 'type': 'str'}, + 'object_guid': {'key': 'objectGuid', 'type': 'str'}, + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'onpremises_user_principal_name': {'key': 'onpremisesUserPrincipalName', 'type': 'str'}, + 'proxy_addresses': {'key': 'proxyAddresses', 'type': 'str'}, + 'source_anchor': {'key': 'sourceAnchor', 'type': 'str'}, + 'source_of_authority': {'key': 'sourceOfAuthority', 'type': 'str'}, + 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, + 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AssociatedObject, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.distinguished_name = kwargs.get('distinguished_name', None) + self.last_dir_sync_time = kwargs.get('last_dir_sync_time', None) + self.mail = kwargs.get('mail', None) + self.object_guid = kwargs.get('object_guid', None) + self.object_type = kwargs.get('object_type', None) + self.onpremises_user_principal_name = kwargs.get('onpremises_user_principal_name', None) + self.proxy_addresses = kwargs.get('proxy_addresses', None) + self.source_anchor = kwargs.get('source_anchor', None) + self.source_of_authority = kwargs.get('source_of_authority', None) + self.time_occurred = kwargs.get('time_occurred', None) + self.user_principal_name = kwargs.get('user_principal_name', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object_py3.py new file mode 100644 index 000000000000..fe343cc6e2bb --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object_py3.py @@ -0,0 +1,72 @@ +# 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 AssociatedObject(Model): + """Object that hold sync object details. + + :param display_name: The display name of the object. + :type display_name: str + :param distinguished_name: The distinguished name of the object. + :type distinguished_name: str + :param last_dir_sync_time: The last dirSync time. + :type last_dir_sync_time: datetime + :param mail: The email of the object. + :type mail: str + :param object_guid: The object guid. + :type object_guid: str + :param object_type: The object type. + :type object_type: str + :param onpremises_user_principal_name: The On-premises UPN. + :type onpremises_user_principal_name: str + :param proxy_addresses: The proxy addresses. + :type proxy_addresses: str + :param source_anchor: The source anchor. + :type source_anchor: str + :param source_of_authority: The source of authority. + :type source_of_authority: str + :param time_occurred: The time of the error. + :type time_occurred: datetime + :param user_principal_name: The UPN. + :type user_principal_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'distinguished_name': {'key': 'distinguishedName', 'type': 'str'}, + 'last_dir_sync_time': {'key': 'lastDirSyncTime', 'type': 'iso-8601'}, + 'mail': {'key': 'mail', 'type': 'str'}, + 'object_guid': {'key': 'objectGuid', 'type': 'str'}, + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'onpremises_user_principal_name': {'key': 'onpremisesUserPrincipalName', 'type': 'str'}, + 'proxy_addresses': {'key': 'proxyAddresses', 'type': 'str'}, + 'source_anchor': {'key': 'sourceAnchor', 'type': 'str'}, + 'source_of_authority': {'key': 'sourceOfAuthority', 'type': 'str'}, + 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, + 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, + } + + def __init__(self, *, display_name: str=None, distinguished_name: str=None, last_dir_sync_time=None, mail: str=None, object_guid: str=None, object_type: str=None, onpremises_user_principal_name: str=None, proxy_addresses: str=None, source_anchor: str=None, source_of_authority: str=None, time_occurred=None, user_principal_name: str=None, **kwargs) -> None: + super(AssociatedObject, self).__init__(**kwargs) + self.display_name = display_name + self.distinguished_name = distinguished_name + self.last_dir_sync_time = last_dir_sync_time + self.mail = mail + self.object_guid = object_guid + self.object_type = object_type + self.onpremises_user_principal_name = onpremises_user_principal_name + self.proxy_addresses = proxy_addresses + self.source_anchor = source_anchor + self.source_of_authority = source_of_authority + self.time_occurred = time_occurred + self.user_principal_name = user_principal_name diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta.py new file mode 100644 index 000000000000..18d39fbc6f61 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta.py @@ -0,0 +1,49 @@ +# 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 AttributeDelta(Model): + """The delta attributes. + + :param values: The delta values. + :type values: list[~azure.mgmt.adhybridhealthservice.models.ValueDelta] + :param name: The name of the attribute delta. + :type name: str + :param operation_type: The attribute delta operation type. Possible values + include: 'Undefined', 'Add', 'Replace', 'Update', 'Delete' + :type operation_type: str or + ~azure.mgmt.adhybridhealthservice.models.AttributeDeltaOperationType + :param value_type: The value type. Possible values include: 'Undefined', + 'Dn', 'Binary', 'String', 'Integer', 'Boolean' + :type value_type: str or + ~azure.mgmt.adhybridhealthservice.models.ValueType + :param multi_valued: Indicates if the attribute delta is multivalued or + not. + :type multi_valued: bool + """ + + _attribute_map = { + 'values': {'key': 'values', 'type': '[ValueDelta]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + 'value_type': {'key': 'valueType', 'type': 'str'}, + 'multi_valued': {'key': 'multiValued', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(AttributeDelta, self).__init__(**kwargs) + self.values = kwargs.get('values', None) + self.name = kwargs.get('name', None) + self.operation_type = kwargs.get('operation_type', None) + self.value_type = kwargs.get('value_type', None) + self.multi_valued = kwargs.get('multi_valued', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta_py3.py new file mode 100644 index 000000000000..b4eacda96ce0 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta_py3.py @@ -0,0 +1,49 @@ +# 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 AttributeDelta(Model): + """The delta attributes. + + :param values: The delta values. + :type values: list[~azure.mgmt.adhybridhealthservice.models.ValueDelta] + :param name: The name of the attribute delta. + :type name: str + :param operation_type: The attribute delta operation type. Possible values + include: 'Undefined', 'Add', 'Replace', 'Update', 'Delete' + :type operation_type: str or + ~azure.mgmt.adhybridhealthservice.models.AttributeDeltaOperationType + :param value_type: The value type. Possible values include: 'Undefined', + 'Dn', 'Binary', 'String', 'Integer', 'Boolean' + :type value_type: str or + ~azure.mgmt.adhybridhealthservice.models.ValueType + :param multi_valued: Indicates if the attribute delta is multivalued or + not. + :type multi_valued: bool + """ + + _attribute_map = { + 'values': {'key': 'values', 'type': '[ValueDelta]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + 'value_type': {'key': 'valueType', 'type': 'str'}, + 'multi_valued': {'key': 'multiValued', 'type': 'bool'}, + } + + def __init__(self, *, values=None, name: str=None, operation_type=None, value_type=None, multi_valued: bool=None, **kwargs) -> None: + super(AttributeDelta, self).__init__(**kwargs) + self.values = values + self.name = name + self.operation_type = operation_type + self.value_type = value_type + self.multi_valued = multi_valued diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping.py new file mode 100644 index 000000000000..8bf8e0a5521c --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping.py @@ -0,0 +1,43 @@ +# 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 AttributeMapping(Model): + """The attribute mapping details. + + :param mapping_source: The mapping source. + :type mapping_source: + ~azure.mgmt.adhybridhealthservice.models.AttributeMppingSource + :param type: The attribute mapping type. Possible values include: + 'Constant', 'Direct', 'DnPart', 'Script' + :type type: str or + ~azure.mgmt.adhybridhealthservice.models.AttributeMappingType + :param destination_attribute: The destination attribute. + :type destination_attribute: str + :param context_id: The context Id. + :type context_id: str + """ + + _attribute_map = { + 'mapping_source': {'key': 'mappingSource', 'type': 'AttributeMppingSource'}, + 'type': {'key': 'type', 'type': 'str'}, + 'destination_attribute': {'key': 'destinationAttribute', 'type': 'str'}, + 'context_id': {'key': 'contextId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AttributeMapping, self).__init__(**kwargs) + self.mapping_source = kwargs.get('mapping_source', None) + self.type = kwargs.get('type', None) + self.destination_attribute = kwargs.get('destination_attribute', None) + self.context_id = kwargs.get('context_id', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping_py3.py new file mode 100644 index 000000000000..6a1a196c5b03 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping_py3.py @@ -0,0 +1,43 @@ +# 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 AttributeMapping(Model): + """The attribute mapping details. + + :param mapping_source: The mapping source. + :type mapping_source: + ~azure.mgmt.adhybridhealthservice.models.AttributeMppingSource + :param type: The attribute mapping type. Possible values include: + 'Constant', 'Direct', 'DnPart', 'Script' + :type type: str or + ~azure.mgmt.adhybridhealthservice.models.AttributeMappingType + :param destination_attribute: The destination attribute. + :type destination_attribute: str + :param context_id: The context Id. + :type context_id: str + """ + + _attribute_map = { + 'mapping_source': {'key': 'mappingSource', 'type': 'AttributeMppingSource'}, + 'type': {'key': 'type', 'type': 'str'}, + 'destination_attribute': {'key': 'destinationAttribute', 'type': 'str'}, + 'context_id': {'key': 'contextId', 'type': 'str'}, + } + + def __init__(self, *, mapping_source=None, type=None, destination_attribute: str=None, context_id: str=None, **kwargs) -> None: + super(AttributeMapping, self).__init__(**kwargs) + self.mapping_source = mapping_source + self.type = type + self.destination_attribute = destination_attribute + self.context_id = context_id diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source.py new file mode 100644 index 000000000000..1f040a7058a4 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source.py @@ -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 AttributeMppingSource(Model): + """The attribute mapping source. + + :param source_attribute: The source attribute. + :type source_attribute: list[str] + :param dn_part: The value for dn part. + :type dn_part: int + :param script_context: The script context. + :type script_context: str + :param constant_value: The constant value. + :type constant_value: str + """ + + _attribute_map = { + 'source_attribute': {'key': 'sourceAttribute', 'type': '[str]'}, + 'dn_part': {'key': 'dnPart', 'type': 'int'}, + 'script_context': {'key': 'scriptContext', 'type': 'str'}, + 'constant_value': {'key': 'constantValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AttributeMppingSource, self).__init__(**kwargs) + self.source_attribute = kwargs.get('source_attribute', None) + self.dn_part = kwargs.get('dn_part', None) + self.script_context = kwargs.get('script_context', None) + self.constant_value = kwargs.get('constant_value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source_py3.py new file mode 100644 index 000000000000..d5b99dd774da --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source_py3.py @@ -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 AttributeMppingSource(Model): + """The attribute mapping source. + + :param source_attribute: The source attribute. + :type source_attribute: list[str] + :param dn_part: The value for dn part. + :type dn_part: int + :param script_context: The script context. + :type script_context: str + :param constant_value: The constant value. + :type constant_value: str + """ + + _attribute_map = { + 'source_attribute': {'key': 'sourceAttribute', 'type': '[str]'}, + 'dn_part': {'key': 'dnPart', 'type': 'int'}, + 'script_context': {'key': 'scriptContext', 'type': 'str'}, + 'constant_value': {'key': 'constantValue', 'type': 'str'}, + } + + def __init__(self, *, source_attribute=None, dn_part: int=None, script_context: str=None, constant_value: str=None, **kwargs) -> None: + super(AttributeMppingSource, self).__init__(**kwargs) + self.source_attribute = source_attribute + self.dn_part = dn_part + self.script_context = script_context + self.constant_value = constant_value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported.py new file mode 100644 index 000000000000..a47311511328 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported.py @@ -0,0 +1,34 @@ +# 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 ChangeNotReimported(Model): + """The changes which are not re-imported. + + :param delta: The delta changes that is not re-imported. + :type delta: + ~azure.mgmt.adhybridhealthservice.models.ChangeNotReimportedDelta + :param entry: The object entry in a change that is not re-imported. + :type entry: + ~azure.mgmt.adhybridhealthservice.models.ChangeNotReimportedEntry + """ + + _attribute_map = { + 'delta': {'key': 'delta', 'type': 'ChangeNotReimportedDelta'}, + 'entry': {'key': 'entry', 'type': 'ChangeNotReimportedEntry'}, + } + + def __init__(self, **kwargs): + super(ChangeNotReimported, self).__init__(**kwargs) + self.delta = kwargs.get('delta', None) + self.entry = kwargs.get('entry', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta.py new file mode 100644 index 000000000000..ea65d93bff36 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta.py @@ -0,0 +1,45 @@ +# 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 ChangeNotReimportedDelta(Model): + """The delta in a change that is not re-imported. + + :param anchor: The anchor. + :type anchor: str + :param dn_attributes: The delta attributes for distinguished names. + :type dn_attributes: + list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] + :param attributes: The attributes. + :type attributes: + list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] + :param operation_type: The operation type. Possible values include: + 'Undefined', 'None', 'Add', 'Replace', 'Update', 'Delete', 'Obsolete', + 'DeletAdd' + :type operation_type: str or + ~azure.mgmt.adhybridhealthservice.models.DeltaOperationType + """ + + _attribute_map = { + 'anchor': {'key': 'anchor', 'type': 'str'}, + 'dn_attributes': {'key': 'dnAttributes', 'type': '[AttributeDelta]'}, + 'attributes': {'key': 'attributes', 'type': '[AttributeDelta]'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ChangeNotReimportedDelta, self).__init__(**kwargs) + self.anchor = kwargs.get('anchor', None) + self.dn_attributes = kwargs.get('dn_attributes', None) + self.attributes = kwargs.get('attributes', None) + self.operation_type = kwargs.get('operation_type', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta_py3.py new file mode 100644 index 000000000000..96dd92fcb1c3 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta_py3.py @@ -0,0 +1,45 @@ +# 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 ChangeNotReimportedDelta(Model): + """The delta in a change that is not re-imported. + + :param anchor: The anchor. + :type anchor: str + :param dn_attributes: The delta attributes for distinguished names. + :type dn_attributes: + list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] + :param attributes: The attributes. + :type attributes: + list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] + :param operation_type: The operation type. Possible values include: + 'Undefined', 'None', 'Add', 'Replace', 'Update', 'Delete', 'Obsolete', + 'DeletAdd' + :type operation_type: str or + ~azure.mgmt.adhybridhealthservice.models.DeltaOperationType + """ + + _attribute_map = { + 'anchor': {'key': 'anchor', 'type': 'str'}, + 'dn_attributes': {'key': 'dnAttributes', 'type': '[AttributeDelta]'}, + 'attributes': {'key': 'attributes', 'type': '[AttributeDelta]'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + } + + def __init__(self, *, anchor: str=None, dn_attributes=None, attributes=None, operation_type=None, **kwargs) -> None: + super(ChangeNotReimportedDelta, self).__init__(**kwargs) + self.anchor = anchor + self.dn_attributes = dn_attributes + self.attributes = attributes + self.operation_type = operation_type diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry.py new file mode 100644 index 000000000000..a1761342d414 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry.py @@ -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 msrest.serialization import Model + + +class ChangeNotReimportedEntry(Model): + """The object entry in a change that is not re-imported. + + :param anchor: The anchor. + :type anchor: str + :param parent_anchor: The parent anchor. + :type parent_anchor: str + :param primary_object_class: The primary object class. + :type primary_object_class: str + :param object_classes: The olist of object classes. + :type object_classes: list[str] + :param dn_attributes: The delta attributes for distinguished names. + :type dn_attributes: + list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] + :param attributes: The attributes. + :type attributes: + list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] + :param dn: The distinguished name. + :type dn: str + """ + + _attribute_map = { + 'anchor': {'key': 'anchor', 'type': 'str'}, + 'parent_anchor': {'key': 'parentAnchor', 'type': 'str'}, + 'primary_object_class': {'key': 'primaryObjectClass', 'type': 'str'}, + 'object_classes': {'key': 'objectClasses', 'type': '[str]'}, + 'dn_attributes': {'key': 'dnAttributes', 'type': '[AttributeDelta]'}, + 'attributes': {'key': 'attributes', 'type': '[AttributeDelta]'}, + 'dn': {'key': 'dn', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ChangeNotReimportedEntry, self).__init__(**kwargs) + self.anchor = kwargs.get('anchor', None) + self.parent_anchor = kwargs.get('parent_anchor', None) + self.primary_object_class = kwargs.get('primary_object_class', None) + self.object_classes = kwargs.get('object_classes', None) + self.dn_attributes = kwargs.get('dn_attributes', None) + self.attributes = kwargs.get('attributes', None) + self.dn = kwargs.get('dn', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry_py3.py new file mode 100644 index 000000000000..18a1f9ae2acb --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry_py3.py @@ -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 msrest.serialization import Model + + +class ChangeNotReimportedEntry(Model): + """The object entry in a change that is not re-imported. + + :param anchor: The anchor. + :type anchor: str + :param parent_anchor: The parent anchor. + :type parent_anchor: str + :param primary_object_class: The primary object class. + :type primary_object_class: str + :param object_classes: The olist of object classes. + :type object_classes: list[str] + :param dn_attributes: The delta attributes for distinguished names. + :type dn_attributes: + list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] + :param attributes: The attributes. + :type attributes: + list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] + :param dn: The distinguished name. + :type dn: str + """ + + _attribute_map = { + 'anchor': {'key': 'anchor', 'type': 'str'}, + 'parent_anchor': {'key': 'parentAnchor', 'type': 'str'}, + 'primary_object_class': {'key': 'primaryObjectClass', 'type': 'str'}, + 'object_classes': {'key': 'objectClasses', 'type': '[str]'}, + 'dn_attributes': {'key': 'dnAttributes', 'type': '[AttributeDelta]'}, + 'attributes': {'key': 'attributes', 'type': '[AttributeDelta]'}, + 'dn': {'key': 'dn', 'type': 'str'}, + } + + def __init__(self, *, anchor: str=None, parent_anchor: str=None, primary_object_class: str=None, object_classes=None, dn_attributes=None, attributes=None, dn: str=None, **kwargs) -> None: + super(ChangeNotReimportedEntry, self).__init__(**kwargs) + self.anchor = anchor + self.parent_anchor = parent_anchor + self.primary_object_class = primary_object_class + self.object_classes = object_classes + self.dn_attributes = dn_attributes + self.attributes = attributes + self.dn = dn diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_py3.py new file mode 100644 index 000000000000..95a23c8a4566 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_py3.py @@ -0,0 +1,34 @@ +# 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 ChangeNotReimported(Model): + """The changes which are not re-imported. + + :param delta: The delta changes that is not re-imported. + :type delta: + ~azure.mgmt.adhybridhealthservice.models.ChangeNotReimportedDelta + :param entry: The object entry in a change that is not re-imported. + :type entry: + ~azure.mgmt.adhybridhealthservice.models.ChangeNotReimportedEntry + """ + + _attribute_map = { + 'delta': {'key': 'delta', 'type': 'ChangeNotReimportedDelta'}, + 'entry': {'key': 'entry', 'type': 'ChangeNotReimportedEntry'}, + } + + def __init__(self, *, delta=None, entry=None, **kwargs) -> None: + super(ChangeNotReimported, self).__init__(**kwargs) + self.delta = delta + self.entry = entry diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py new file mode 100644 index 000000000000..b06c067c800e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py @@ -0,0 +1,88 @@ +# 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 Connector(Model): + """The connect details. + + :param connector_id: The connector Id. + :type connector_id: str + :param id: The connector Id. + :type id: str + :param name: The connector name. + :type name: str + :param version: The connector version + :type version: int + :param type: The connector type. + :type type: str + :param description: The connector description. + :type description: str + :param schema_xml: The schema xml for the connector. + :type schema_xml: str + :param password_management_settings: The password management settings of + the connector. + :type password_management_settings: object + :param password_hash_sync_configuration: The password hash synchronization + configuration of the connector. + :type password_hash_sync_configuration: object + :param time_created: The date and time when this connector was created. + :type time_created: datetime + :param time_last_modified: The date and time when this connector was last + modified. + :type time_last_modified: datetime + :param partitions: The partitions of the connector. + :type partitions: list[~azure.mgmt.adhybridhealthservice.models.Partition] + :param run_profiles: The run profiles of the connector. + :type run_profiles: + list[~azure.mgmt.adhybridhealthservice.models.RunProfile] + :param classes_included: The class inclusion list of the connector. + :type classes_included: list[str] + :param attributes_included: The attribute inclusion list of the connector. + :type attributes_included: list[str] + """ + + _attribute_map = { + 'connector_id': {'key': 'connectorId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, + 'password_management_settings': {'key': 'passwordManagementSettings', 'type': 'object'}, + 'password_hash_sync_configuration': {'key': 'passwordHashSyncConfiguration', 'type': 'object'}, + 'time_created': {'key': 'timeCreated', 'type': 'iso-8601'}, + 'time_last_modified': {'key': 'timeLastModified', 'type': 'iso-8601'}, + 'partitions': {'key': 'partitions', 'type': '[Partition]'}, + 'run_profiles': {'key': 'runProfiles', 'type': '[RunProfile]'}, + 'classes_included': {'key': 'classesIncluded', 'type': '[str]'}, + 'attributes_included': {'key': 'attributesIncluded', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(Connector, self).__init__(**kwargs) + self.connector_id = kwargs.get('connector_id', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.version = kwargs.get('version', None) + self.type = kwargs.get('type', None) + self.description = kwargs.get('description', None) + self.schema_xml = kwargs.get('schema_xml', None) + self.password_management_settings = kwargs.get('password_management_settings', None) + self.password_hash_sync_configuration = kwargs.get('password_hash_sync_configuration', None) + self.time_created = kwargs.get('time_created', None) + self.time_last_modified = kwargs.get('time_last_modified', None) + self.partitions = kwargs.get('partitions', None) + self.run_profiles = kwargs.get('run_profiles', None) + self.classes_included = kwargs.get('classes_included', None) + self.attributes_included = kwargs.get('attributes_included', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error.py new file mode 100644 index 000000000000..3845f131e9e2 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error.py @@ -0,0 +1,56 @@ +# 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 ConnectorConnectionError(Model): + """The connector connection error. + + :param id: The error Id. + :type id: str + :param run_step_result_id: The run step result Id. + :type run_step_result_id: str + :param connector_id: The connector Id. + :type connector_id: str + :param type: The type of error. + :type type: str + :param error_code: The error code. + :type error_code: str + :param message: The message for the connection error. + :type message: str + :param time_occured: The time when the connection error occured. + :type time_occured: datetime + :param server: The server where the connection error happened. + :type server: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, + 'connector_id': {'key': 'connectorId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, + 'server': {'key': 'server', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ConnectorConnectionError, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.run_step_result_id = kwargs.get('run_step_result_id', None) + self.connector_id = kwargs.get('connector_id', None) + self.type = kwargs.get('type', None) + self.error_code = kwargs.get('error_code', None) + self.message = kwargs.get('message', None) + self.time_occured = kwargs.get('time_occured', None) + self.server = kwargs.get('server', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error_py3.py new file mode 100644 index 000000000000..12d055d7d9b5 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error_py3.py @@ -0,0 +1,56 @@ +# 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 ConnectorConnectionError(Model): + """The connector connection error. + + :param id: The error Id. + :type id: str + :param run_step_result_id: The run step result Id. + :type run_step_result_id: str + :param connector_id: The connector Id. + :type connector_id: str + :param type: The type of error. + :type type: str + :param error_code: The error code. + :type error_code: str + :param message: The message for the connection error. + :type message: str + :param time_occured: The time when the connection error occured. + :type time_occured: datetime + :param server: The server where the connection error happened. + :type server: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, + 'connector_id': {'key': 'connectorId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, + 'server': {'key': 'server', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, run_step_result_id: str=None, connector_id: str=None, type: str=None, error_code: str=None, message: str=None, time_occured=None, server: str=None, **kwargs) -> None: + super(ConnectorConnectionError, self).__init__(**kwargs) + self.id = id + self.run_step_result_id = run_step_result_id + self.connector_id = connector_id + self.type = type + self.error_code = error_code + self.message = message + self.time_occured = time_occured + self.server = server diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors.py new file mode 100644 index 000000000000..365da9b3e344 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors.py @@ -0,0 +1,29 @@ +# 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 ConnectorConnectionErrors(Model): + """The list of connector connection errors. + + :param value: The value returned by the operation. + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ConnectorConnectionError] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ConnectorConnectionError]'}, + } + + def __init__(self, **kwargs): + super(ConnectorConnectionErrors, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors_py3.py new file mode 100644 index 000000000000..ff631d65ec5b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors_py3.py @@ -0,0 +1,29 @@ +# 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 ConnectorConnectionErrors(Model): + """The list of connector connection errors. + + :param value: The value returned by the operation. + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ConnectorConnectionError] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ConnectorConnectionError]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ConnectorConnectionErrors, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error.py new file mode 100644 index 000000000000..a189fddfc9be --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error.py @@ -0,0 +1,80 @@ +# 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 ConnectorObjectError(Model): + """The connector object error. + + :param id: The error Id. + :type id: str + :param run_step_result_id: The run step result Id. + :type run_step_result_id: str + :param connector_id: The connector Id. + :type connector_id: str + :param type: The type of error. + :type type: str + :param error_code: The error code. + :type error_code: str + :param message: The message for the object error. + :type message: str + :param entry_number: The entry number for object error occured. + :type entry_number: int + :param line_number: The line number for the object error. + :type line_number: int + :param column_number: The column number for the object error. + :type column_number: int + :param dn: The distingished name of the object. + :type dn: str + :param anchor: The name for the anchor of the object. + :type anchor: str + :param attribute_name: The attribute name of the object. + :type attribute_name: str + :param server_error_detail: The server side error details. + :type server_error_detail: str + :param values: The value corresponding to attribute name. + :type values: list[str] + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, + 'connector_id': {'key': 'connectorId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'entry_number': {'key': 'entryNumber', 'type': 'int'}, + 'line_number': {'key': 'lineNumber', 'type': 'int'}, + 'column_number': {'key': 'columnNumber', 'type': 'int'}, + 'dn': {'key': 'dn', 'type': 'str'}, + 'anchor': {'key': 'anchor', 'type': 'str'}, + 'attribute_name': {'key': 'attributeName', 'type': 'str'}, + 'server_error_detail': {'key': 'serverErrorDetail', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(ConnectorObjectError, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.run_step_result_id = kwargs.get('run_step_result_id', None) + self.connector_id = kwargs.get('connector_id', None) + self.type = kwargs.get('type', None) + self.error_code = kwargs.get('error_code', None) + self.message = kwargs.get('message', None) + self.entry_number = kwargs.get('entry_number', None) + self.line_number = kwargs.get('line_number', None) + self.column_number = kwargs.get('column_number', None) + self.dn = kwargs.get('dn', None) + self.anchor = kwargs.get('anchor', None) + self.attribute_name = kwargs.get('attribute_name', None) + self.server_error_detail = kwargs.get('server_error_detail', None) + self.values = kwargs.get('values', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error_py3.py new file mode 100644 index 000000000000..319de7a85a05 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error_py3.py @@ -0,0 +1,80 @@ +# 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 ConnectorObjectError(Model): + """The connector object error. + + :param id: The error Id. + :type id: str + :param run_step_result_id: The run step result Id. + :type run_step_result_id: str + :param connector_id: The connector Id. + :type connector_id: str + :param type: The type of error. + :type type: str + :param error_code: The error code. + :type error_code: str + :param message: The message for the object error. + :type message: str + :param entry_number: The entry number for object error occured. + :type entry_number: int + :param line_number: The line number for the object error. + :type line_number: int + :param column_number: The column number for the object error. + :type column_number: int + :param dn: The distingished name of the object. + :type dn: str + :param anchor: The name for the anchor of the object. + :type anchor: str + :param attribute_name: The attribute name of the object. + :type attribute_name: str + :param server_error_detail: The server side error details. + :type server_error_detail: str + :param values: The value corresponding to attribute name. + :type values: list[str] + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, + 'connector_id': {'key': 'connectorId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'entry_number': {'key': 'entryNumber', 'type': 'int'}, + 'line_number': {'key': 'lineNumber', 'type': 'int'}, + 'column_number': {'key': 'columnNumber', 'type': 'int'}, + 'dn': {'key': 'dn', 'type': 'str'}, + 'anchor': {'key': 'anchor', 'type': 'str'}, + 'attribute_name': {'key': 'attributeName', 'type': 'str'}, + 'server_error_detail': {'key': 'serverErrorDetail', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + } + + def __init__(self, *, id: str=None, run_step_result_id: str=None, connector_id: str=None, type: str=None, error_code: str=None, message: str=None, entry_number: int=None, line_number: int=None, column_number: int=None, dn: str=None, anchor: str=None, attribute_name: str=None, server_error_detail: str=None, values=None, **kwargs) -> None: + super(ConnectorObjectError, self).__init__(**kwargs) + self.id = id + self.run_step_result_id = run_step_result_id + self.connector_id = connector_id + self.type = type + self.error_code = error_code + self.message = message + self.entry_number = entry_number + self.line_number = line_number + self.column_number = column_number + self.dn = dn + self.anchor = anchor + self.attribute_name = attribute_name + self.server_error_detail = server_error_detail + self.values = values diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors.py new file mode 100644 index 000000000000..77beba70f0a9 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors.py @@ -0,0 +1,29 @@ +# 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 ConnectorObjectErrors(Model): + """The list of connector object errors. + + :param value: The value returned by the operation. + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ConnectorObjectError] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ConnectorObjectError]'}, + } + + def __init__(self, **kwargs): + super(ConnectorObjectErrors, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors_py3.py new file mode 100644 index 000000000000..be2bf709d9e5 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors_py3.py @@ -0,0 +1,29 @@ +# 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 ConnectorObjectErrors(Model): + """The list of connector object errors. + + :param value: The value returned by the operation. + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ConnectorObjectError] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ConnectorObjectError]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ConnectorObjectErrors, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_paged.py new file mode 100644 index 000000000000..1960adc632bb --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_paged.py @@ -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 ConnectorPaged(Paged): + """ + A paging container for iterating over a list of :class:`Connector ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Connector]'} + } + + def __init__(self, *args, **kwargs): + + super(ConnectorPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py new file mode 100644 index 000000000000..44e94c8e426d --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py @@ -0,0 +1,88 @@ +# 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 Connector(Model): + """The connect details. + + :param connector_id: The connector Id. + :type connector_id: str + :param id: The connector Id. + :type id: str + :param name: The connector name. + :type name: str + :param version: The connector version + :type version: int + :param type: The connector type. + :type type: str + :param description: The connector description. + :type description: str + :param schema_xml: The schema xml for the connector. + :type schema_xml: str + :param password_management_settings: The password management settings of + the connector. + :type password_management_settings: object + :param password_hash_sync_configuration: The password hash synchronization + configuration of the connector. + :type password_hash_sync_configuration: object + :param time_created: The date and time when this connector was created. + :type time_created: datetime + :param time_last_modified: The date and time when this connector was last + modified. + :type time_last_modified: datetime + :param partitions: The partitions of the connector. + :type partitions: list[~azure.mgmt.adhybridhealthservice.models.Partition] + :param run_profiles: The run profiles of the connector. + :type run_profiles: + list[~azure.mgmt.adhybridhealthservice.models.RunProfile] + :param classes_included: The class inclusion list of the connector. + :type classes_included: list[str] + :param attributes_included: The attribute inclusion list of the connector. + :type attributes_included: list[str] + """ + + _attribute_map = { + 'connector_id': {'key': 'connectorId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, + 'password_management_settings': {'key': 'passwordManagementSettings', 'type': 'object'}, + 'password_hash_sync_configuration': {'key': 'passwordHashSyncConfiguration', 'type': 'object'}, + 'time_created': {'key': 'timeCreated', 'type': 'iso-8601'}, + 'time_last_modified': {'key': 'timeLastModified', 'type': 'iso-8601'}, + 'partitions': {'key': 'partitions', 'type': '[Partition]'}, + 'run_profiles': {'key': 'runProfiles', 'type': '[RunProfile]'}, + 'classes_included': {'key': 'classesIncluded', 'type': '[str]'}, + 'attributes_included': {'key': 'attributesIncluded', 'type': '[str]'}, + } + + def __init__(self, *, connector_id: str=None, id: str=None, name: str=None, version: int=None, type: str=None, description: str=None, schema_xml: str=None, password_management_settings=None, password_hash_sync_configuration=None, time_created=None, time_last_modified=None, partitions=None, run_profiles=None, classes_included=None, attributes_included=None, **kwargs) -> None: + super(Connector, self).__init__(**kwargs) + self.connector_id = connector_id + self.id = id + self.name = name + self.version = version + self.type = type + self.description = description + self.schema_xml = schema_xml + self.password_management_settings = password_management_settings + self.password_hash_sync_configuration = password_hash_sync_configuration + self.time_created = time_created + self.time_last_modified = time_last_modified + self.partitions = partitions + self.run_profiles = run_profiles + self.classes_included = classes_included + self.attributes_included = attributes_included diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential.py new file mode 100644 index 000000000000..446fc7fe12ac --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential.py @@ -0,0 +1,36 @@ +# 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 Credential(Model): + """The credential for a given server. + + :param identifier: The credential identifier. + :type identifier: str + :param type: The type of credential. + :type type: str + :param credential_data: The credential data. + :type credential_data: list[str] + """ + + _attribute_map = { + 'identifier': {'key': 'identifier', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'credential_data': {'key': 'credentialData', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(Credential, self).__init__(**kwargs) + self.identifier = kwargs.get('identifier', None) + self.type = kwargs.get('type', None) + self.credential_data = kwargs.get('credential_data', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_paged.py new file mode 100644 index 000000000000..8ffef1ce0e75 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_paged.py @@ -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 CredentialPaged(Paged): + """ + A paging container for iterating over a list of :class:`Credential ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Credential]'} + } + + def __init__(self, *args, **kwargs): + + super(CredentialPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_py3.py new file mode 100644 index 000000000000..f82642886ac3 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_py3.py @@ -0,0 +1,36 @@ +# 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 Credential(Model): + """The credential for a given server. + + :param identifier: The credential identifier. + :type identifier: str + :param type: The type of credential. + :type type: str + :param credential_data: The credential data. + :type credential_data: list[str] + """ + + _attribute_map = { + 'identifier': {'key': 'identifier', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'credential_data': {'key': 'credentialData', 'type': '[str]'}, + } + + def __init__(self, *, identifier: str=None, type: str=None, credential_data=None, **kwargs) -> None: + super(Credential, self).__init__(**kwargs) + self.identifier = identifier + self.type = type + self.credential_data = credential_data diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension.py new file mode 100644 index 000000000000..adb66ea70829 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension.py @@ -0,0 +1,69 @@ +# 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 Dimension(Model): + """The connector object error. + + :param health: The health status for the domain controller. Possible + values include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' + :type health: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus + :param simple_properties: List of service specific configuration + properties. + :type simple_properties: object + :param active_alerts: The count of alerts that are currently active for + the service. + :type active_alerts: int + :param additional_information: The additional information related to the + service. + :type additional_information: str + :param last_updated: The date or time , in UTC, when the service + properties were last updated. + :type last_updated: datetime + :param display_name: The display name of the service. + :type display_name: str + :param resolved_alerts: The total count of alerts that has been resolved + for the service. + :type resolved_alerts: int + :param signature: The signature of the service. + :type signature: str + :param type: The service type for the services onboarded to Azure Active + Directory Connect Health. Depending on whether the service is monitoring, + ADFS, Sync or ADDS roles, the service type can either be + AdFederationService or AadSyncService or AdDomainService. + :type type: str + """ + + _attribute_map = { + 'health': {'key': 'health', 'type': 'str'}, + 'simple_properties': {'key': 'simpleProperties', 'type': 'object'}, + 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, + 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, + 'signature': {'key': 'signature', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Dimension, self).__init__(**kwargs) + self.health = kwargs.get('health', None) + self.simple_properties = kwargs.get('simple_properties', None) + self.active_alerts = kwargs.get('active_alerts', None) + self.additional_information = kwargs.get('additional_information', None) + self.last_updated = kwargs.get('last_updated', None) + self.display_name = kwargs.get('display_name', None) + self.resolved_alerts = kwargs.get('resolved_alerts', None) + self.signature = kwargs.get('signature', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_paged.py new file mode 100644 index 000000000000..1f18fa53897f --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_paged.py @@ -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 DimensionPaged(Paged): + """ + A paging container for iterating over a list of :class:`Dimension ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Dimension]'} + } + + def __init__(self, *args, **kwargs): + + super(DimensionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py new file mode 100644 index 000000000000..ce7228d6fb1c --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py @@ -0,0 +1,69 @@ +# 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 Dimension(Model): + """The connector object error. + + :param health: The health status for the domain controller. Possible + values include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' + :type health: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus + :param simple_properties: List of service specific configuration + properties. + :type simple_properties: object + :param active_alerts: The count of alerts that are currently active for + the service. + :type active_alerts: int + :param additional_information: The additional information related to the + service. + :type additional_information: str + :param last_updated: The date or time , in UTC, when the service + properties were last updated. + :type last_updated: datetime + :param display_name: The display name of the service. + :type display_name: str + :param resolved_alerts: The total count of alerts that has been resolved + for the service. + :type resolved_alerts: int + :param signature: The signature of the service. + :type signature: str + :param type: The service type for the services onboarded to Azure Active + Directory Connect Health. Depending on whether the service is monitoring, + ADFS, Sync or ADDS roles, the service type can either be + AdFederationService or AadSyncService or AdDomainService. + :type type: str + """ + + _attribute_map = { + 'health': {'key': 'health', 'type': 'str'}, + 'simple_properties': {'key': 'simpleProperties', 'type': 'object'}, + 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, + 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, + 'signature': {'key': 'signature', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, health=None, simple_properties=None, active_alerts: int=None, additional_information: str=None, last_updated=None, display_name: str=None, resolved_alerts: int=None, signature: str=None, type: str=None, **kwargs) -> None: + super(Dimension, self).__init__(**kwargs) + self.health = health + self.simple_properties = simple_properties + self.active_alerts = active_alerts + self.additional_information = additional_information + self.last_updated = last_updated + self.display_name = display_name + self.resolved_alerts = resolved_alerts + self.signature = signature + self.type = type diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display.py new file mode 100644 index 000000000000..27babbbb5f22 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display.py @@ -0,0 +1,37 @@ +# 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 Display(Model): + """Displays the details related to operations supported by Azure Active + Directory Connect Health. + + :param description: The description for the operation. + :type description: str + :param operation: The details of the operation. + :type operation: str + :param provider: The provider name. + :type provider: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Display, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.operation = kwargs.get('operation', None) + self.provider = kwargs.get('provider', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display_py3.py new file mode 100644 index 000000000000..0b1a7b3d6625 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display_py3.py @@ -0,0 +1,37 @@ +# 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 Display(Model): + """Displays the details related to operations supported by Azure Active + Directory Connect Health. + + :param description: The description for the operation. + :type description: str + :param operation: The details of the operation. + :type operation: str + :param provider: The provider name. + :type provider: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + } + + def __init__(self, *, description: str=None, operation: str=None, provider: str=None, **kwargs) -> None: + super(Display, self).__init__(**kwargs) + self.description = description + self.operation = operation + self.provider = provider diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count.py new file mode 100644 index 000000000000..4a45c001fe7c --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count.py @@ -0,0 +1,36 @@ +# 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 ErrorCount(Model): + """The error count details. + + :param error_bucket: The error bucket. + :type error_bucket: str + :param count: The error count. + :type count: int + :param truncated: Indicates if the error count is truncated or not. + :type truncated: bool + """ + + _attribute_map = { + 'error_bucket': {'key': 'errorBucket', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'truncated': {'key': 'truncated', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(ErrorCount, self).__init__(**kwargs) + self.error_bucket = kwargs.get('error_bucket', None) + self.count = kwargs.get('count', None) + self.truncated = kwargs.get('truncated', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_paged.py new file mode 100644 index 000000000000..603405010ccc --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_paged.py @@ -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 ErrorCountPaged(Paged): + """ + A paging container for iterating over a list of :class:`ErrorCount ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ErrorCount]'} + } + + def __init__(self, *args, **kwargs): + + super(ErrorCountPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_py3.py new file mode 100644 index 000000000000..61a71398c8c1 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_py3.py @@ -0,0 +1,36 @@ +# 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 ErrorCount(Model): + """The error count details. + + :param error_bucket: The error bucket. + :type error_bucket: str + :param count: The error count. + :type count: int + :param truncated: Indicates if the error count is truncated or not. + :type truncated: bool + """ + + _attribute_map = { + 'error_bucket': {'key': 'errorBucket', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'truncated': {'key': 'truncated', 'type': 'bool'}, + } + + def __init__(self, *, error_bucket: str=None, count: int=None, truncated: bool=None, **kwargs) -> None: + super(ErrorCount, self).__init__(**kwargs) + self.error_bucket = error_bucket + self.count = count + self.truncated = truncated diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail.py new file mode 100644 index 000000000000..37c4db0b56d6 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail.py @@ -0,0 +1,47 @@ +# 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 ErrorDetail(Model): + """The error details. + + :param description: The error description. + :type description: str + :param kb_url: The knowledge base article url which contains more + information about the error. + :type kb_url: str + :param detail: Additional details related to the error. + :type detail: str + :param objects_with_sync_error: The list of objects with sync errors. + :type objects_with_sync_error: + ~azure.mgmt.adhybridhealthservice.models.ObjectWithSyncError + :param object_with_sync_error: The object with sync error. + :type object_with_sync_error: + ~azure.mgmt.adhybridhealthservice.models.MergedExportError + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'kb_url': {'key': 'kbUrl', 'type': 'str'}, + 'detail': {'key': 'detail', 'type': 'str'}, + 'objects_with_sync_error': {'key': 'objectsWithSyncError', 'type': 'ObjectWithSyncError'}, + 'object_with_sync_error': {'key': 'objectWithSyncError', 'type': 'MergedExportError'}, + } + + def __init__(self, **kwargs): + super(ErrorDetail, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.kb_url = kwargs.get('kb_url', None) + self.detail = kwargs.get('detail', None) + self.objects_with_sync_error = kwargs.get('objects_with_sync_error', None) + self.object_with_sync_error = kwargs.get('object_with_sync_error', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail_py3.py new file mode 100644 index 000000000000..fa0ace5d764e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail_py3.py @@ -0,0 +1,47 @@ +# 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 ErrorDetail(Model): + """The error details. + + :param description: The error description. + :type description: str + :param kb_url: The knowledge base article url which contains more + information about the error. + :type kb_url: str + :param detail: Additional details related to the error. + :type detail: str + :param objects_with_sync_error: The list of objects with sync errors. + :type objects_with_sync_error: + ~azure.mgmt.adhybridhealthservice.models.ObjectWithSyncError + :param object_with_sync_error: The object with sync error. + :type object_with_sync_error: + ~azure.mgmt.adhybridhealthservice.models.MergedExportError + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'kb_url': {'key': 'kbUrl', 'type': 'str'}, + 'detail': {'key': 'detail', 'type': 'str'}, + 'objects_with_sync_error': {'key': 'objectsWithSyncError', 'type': 'ObjectWithSyncError'}, + 'object_with_sync_error': {'key': 'objectWithSyncError', 'type': 'MergedExportError'}, + } + + def __init__(self, *, description: str=None, kb_url: str=None, detail: str=None, objects_with_sync_error=None, object_with_sync_error=None, **kwargs) -> None: + super(ErrorDetail, self).__init__(**kwargs) + self.description = description + self.kb_url = kb_url + self.detail = detail + self.objects_with_sync_error = objects_with_sync_error + self.object_with_sync_error = object_with_sync_error diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry.py new file mode 100644 index 000000000000..b1a3f8b59354 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry.py @@ -0,0 +1,45 @@ +# 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 ErrorReportUsersEntry(Model): + """The bad password login attempt details. + + :param user_id: The user ID value. + :type user_id: str + :param ip_address: The Ip address corresponding to the last error event. + :type ip_address: str + :param last_updated: The date and time when the last error event was + logged. + :type last_updated: datetime + :param unique_ip_addresses: The list of unique IP addresses. + :type unique_ip_addresses: str + :param total_error_attempts: The total count of specific error events. + :type total_error_attempts: int + """ + + _attribute_map = { + 'user_id': {'key': 'userId', 'type': 'str'}, + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'unique_ip_addresses': {'key': 'uniqueIpAddresses', 'type': 'str'}, + 'total_error_attempts': {'key': 'totalErrorAttempts', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ErrorReportUsersEntry, self).__init__(**kwargs) + self.user_id = kwargs.get('user_id', None) + self.ip_address = kwargs.get('ip_address', None) + self.last_updated = kwargs.get('last_updated', None) + self.unique_ip_addresses = kwargs.get('unique_ip_addresses', None) + self.total_error_attempts = kwargs.get('total_error_attempts', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_paged.py new file mode 100644 index 000000000000..dc13ce9b5c45 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_paged.py @@ -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 ErrorReportUsersEntryPaged(Paged): + """ + A paging container for iterating over a list of :class:`ErrorReportUsersEntry ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ErrorReportUsersEntry]'} + } + + def __init__(self, *args, **kwargs): + + super(ErrorReportUsersEntryPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_py3.py new file mode 100644 index 000000000000..055c75321c94 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_py3.py @@ -0,0 +1,45 @@ +# 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 ErrorReportUsersEntry(Model): + """The bad password login attempt details. + + :param user_id: The user ID value. + :type user_id: str + :param ip_address: The Ip address corresponding to the last error event. + :type ip_address: str + :param last_updated: The date and time when the last error event was + logged. + :type last_updated: datetime + :param unique_ip_addresses: The list of unique IP addresses. + :type unique_ip_addresses: str + :param total_error_attempts: The total count of specific error events. + :type total_error_attempts: int + """ + + _attribute_map = { + 'user_id': {'key': 'userId', 'type': 'str'}, + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'unique_ip_addresses': {'key': 'uniqueIpAddresses', 'type': 'str'}, + 'total_error_attempts': {'key': 'totalErrorAttempts', 'type': 'int'}, + } + + def __init__(self, *, user_id: str=None, ip_address: str=None, last_updated=None, unique_ip_addresses: str=None, total_error_attempts: int=None, **kwargs) -> None: + super(ErrorReportUsersEntry, self).__init__(**kwargs) + self.user_id = user_id + self.ip_address = ip_address + self.last_updated = last_updated + self.unique_ip_addresses = unique_ip_addresses + self.total_error_attempts = total_error_attempts diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error.py new file mode 100644 index 000000000000..1565c300e2d7 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error.py @@ -0,0 +1,177 @@ +# 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 ExportError(Model): + """The export error details. + + :param id: The error Id. + :type id: str + :param run_step_result_id: The run step result Id. + :type run_step_result_id: str + :param connector_id: The connector Id. + :type connector_id: str + :param type: The type of error. + :type type: str + :param error_code: The error code. + :type error_code: str + :param message: The export error message. + :type message: str + :param server_error_detail: The server error detail. + :type server_error_detail: str + :param time_first_occured: The date and time when the export error first + occured. + :type time_first_occured: datetime + :param retry_count: The retry count. + :type retry_count: int + :param cs_object_id: The cloud object Id. + :type cs_object_id: str + :param dn: The distinguished name. + :type dn: str + :param min_limit: The minimum limit. + :type min_limit: str + :param max_limit: The maximum limit. + :type max_limit: str + :param cloud_anchor: The name of the cloud anchor. + :type cloud_anchor: str + :param attribute_name: The attribute name. + :type attribute_name: str + :param attribute_value: The attribute value. + :type attribute_value: str + :param attribute_multi_value: Indicates if the attribute is multi valued + or not. + :type attribute_multi_value: bool + :param object_id_conflict: The object Id with which there was an attribute + conflict. + :type object_id_conflict: str + :param sam_account_name: The SAM account name. + :type sam_account_name: str + :param ad_object_type: The AD object type + :type ad_object_type: str + :param ad_object_guid: The AD object guid. + :type ad_object_guid: str + :param ad_display_name: The display name for the AD object. + :type ad_display_name: str + :param ad_source_of_authority: The source of authority for the AD object. + :type ad_source_of_authority: str + :param ad_source_anchor: The AD source anchor. + :type ad_source_anchor: str + :param ad_user_principal_name: The user principal name for the AD object. + :type ad_user_principal_name: str + :param ad_distinguished_name: The distinguished name for the AD object. + :type ad_distinguished_name: str + :param ad_mail: The email for the AD object. + :type ad_mail: str + :param time_occured: The date and time of occurance. + :type time_occured: datetime + :param aad_object_type: The AAD side object type. + :type aad_object_type: str + :param aad_object_guid: The AAD side object guid. + :type aad_object_guid: str + :param aad_display_name: The AAD side display name + :type aad_display_name: str + :param aad_source_of_authority: The AAD side source of authority for the + object. + :type aad_source_of_authority: str + :param aad_user_principal_name: The AAD side user principal name. + :type aad_user_principal_name: str + :param aad_distringuished_name: The AAD side distinguished name for the + object. + :type aad_distringuished_name: str + :param aad_mail: The AAD side email for the object. + :type aad_mail: str + :param last_dir_sync_time: The date and time of last sync run. + :type last_dir_sync_time: datetime + :param modified_attribute_value: The modified atttribute value. + :type modified_attribute_value: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, + 'connector_id': {'key': 'connectorId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'server_error_detail': {'key': 'serverErrorDetail', 'type': 'str'}, + 'time_first_occured': {'key': 'timeFirstOccured', 'type': 'iso-8601'}, + 'retry_count': {'key': 'retryCount', 'type': 'int'}, + 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, + 'dn': {'key': 'dn', 'type': 'str'}, + 'min_limit': {'key': 'minLimit', 'type': 'str'}, + 'max_limit': {'key': 'maxLimit', 'type': 'str'}, + 'cloud_anchor': {'key': 'cloudAnchor', 'type': 'str'}, + 'attribute_name': {'key': 'attributeName', 'type': 'str'}, + 'attribute_value': {'key': 'attributeValue', 'type': 'str'}, + 'attribute_multi_value': {'key': 'attributeMultiValue', 'type': 'bool'}, + 'object_id_conflict': {'key': 'objectIdConflict', 'type': 'str'}, + 'sam_account_name': {'key': 'samAccountName', 'type': 'str'}, + 'ad_object_type': {'key': 'adObjectType', 'type': 'str'}, + 'ad_object_guid': {'key': 'adObjectGuid', 'type': 'str'}, + 'ad_display_name': {'key': 'adDisplayName', 'type': 'str'}, + 'ad_source_of_authority': {'key': 'adSourceOfAuthority', 'type': 'str'}, + 'ad_source_anchor': {'key': 'adSourceAnchor', 'type': 'str'}, + 'ad_user_principal_name': {'key': 'adUserPrincipalName', 'type': 'str'}, + 'ad_distinguished_name': {'key': 'adDistinguishedName', 'type': 'str'}, + 'ad_mail': {'key': 'adMail', 'type': 'str'}, + 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, + 'aad_object_type': {'key': 'aadObjectType', 'type': 'str'}, + 'aad_object_guid': {'key': 'aadObjectGuid', 'type': 'str'}, + 'aad_display_name': {'key': 'aadDisplayName', 'type': 'str'}, + 'aad_source_of_authority': {'key': 'aadSourceOfAuthority', 'type': 'str'}, + 'aad_user_principal_name': {'key': 'aadUserPrincipalName', 'type': 'str'}, + 'aad_distringuished_name': {'key': 'aadDistringuishedName', 'type': 'str'}, + 'aad_mail': {'key': 'aadMail', 'type': 'str'}, + 'last_dir_sync_time': {'key': 'lastDirSyncTime', 'type': 'iso-8601'}, + 'modified_attribute_value': {'key': 'modifiedAttributeValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExportError, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.run_step_result_id = kwargs.get('run_step_result_id', None) + self.connector_id = kwargs.get('connector_id', None) + self.type = kwargs.get('type', None) + self.error_code = kwargs.get('error_code', None) + self.message = kwargs.get('message', None) + self.server_error_detail = kwargs.get('server_error_detail', None) + self.time_first_occured = kwargs.get('time_first_occured', None) + self.retry_count = kwargs.get('retry_count', None) + self.cs_object_id = kwargs.get('cs_object_id', None) + self.dn = kwargs.get('dn', None) + self.min_limit = kwargs.get('min_limit', None) + self.max_limit = kwargs.get('max_limit', None) + self.cloud_anchor = kwargs.get('cloud_anchor', None) + self.attribute_name = kwargs.get('attribute_name', None) + self.attribute_value = kwargs.get('attribute_value', None) + self.attribute_multi_value = kwargs.get('attribute_multi_value', None) + self.object_id_conflict = kwargs.get('object_id_conflict', None) + self.sam_account_name = kwargs.get('sam_account_name', None) + self.ad_object_type = kwargs.get('ad_object_type', None) + self.ad_object_guid = kwargs.get('ad_object_guid', None) + self.ad_display_name = kwargs.get('ad_display_name', None) + self.ad_source_of_authority = kwargs.get('ad_source_of_authority', None) + self.ad_source_anchor = kwargs.get('ad_source_anchor', None) + self.ad_user_principal_name = kwargs.get('ad_user_principal_name', None) + self.ad_distinguished_name = kwargs.get('ad_distinguished_name', None) + self.ad_mail = kwargs.get('ad_mail', None) + self.time_occured = kwargs.get('time_occured', None) + self.aad_object_type = kwargs.get('aad_object_type', None) + self.aad_object_guid = kwargs.get('aad_object_guid', None) + self.aad_display_name = kwargs.get('aad_display_name', None) + self.aad_source_of_authority = kwargs.get('aad_source_of_authority', None) + self.aad_user_principal_name = kwargs.get('aad_user_principal_name', None) + self.aad_distringuished_name = kwargs.get('aad_distringuished_name', None) + self.aad_mail = kwargs.get('aad_mail', None) + self.last_dir_sync_time = kwargs.get('last_dir_sync_time', None) + self.modified_attribute_value = kwargs.get('modified_attribute_value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_py3.py new file mode 100644 index 000000000000..edb418af3084 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_py3.py @@ -0,0 +1,177 @@ +# 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 ExportError(Model): + """The export error details. + + :param id: The error Id. + :type id: str + :param run_step_result_id: The run step result Id. + :type run_step_result_id: str + :param connector_id: The connector Id. + :type connector_id: str + :param type: The type of error. + :type type: str + :param error_code: The error code. + :type error_code: str + :param message: The export error message. + :type message: str + :param server_error_detail: The server error detail. + :type server_error_detail: str + :param time_first_occured: The date and time when the export error first + occured. + :type time_first_occured: datetime + :param retry_count: The retry count. + :type retry_count: int + :param cs_object_id: The cloud object Id. + :type cs_object_id: str + :param dn: The distinguished name. + :type dn: str + :param min_limit: The minimum limit. + :type min_limit: str + :param max_limit: The maximum limit. + :type max_limit: str + :param cloud_anchor: The name of the cloud anchor. + :type cloud_anchor: str + :param attribute_name: The attribute name. + :type attribute_name: str + :param attribute_value: The attribute value. + :type attribute_value: str + :param attribute_multi_value: Indicates if the attribute is multi valued + or not. + :type attribute_multi_value: bool + :param object_id_conflict: The object Id with which there was an attribute + conflict. + :type object_id_conflict: str + :param sam_account_name: The SAM account name. + :type sam_account_name: str + :param ad_object_type: The AD object type + :type ad_object_type: str + :param ad_object_guid: The AD object guid. + :type ad_object_guid: str + :param ad_display_name: The display name for the AD object. + :type ad_display_name: str + :param ad_source_of_authority: The source of authority for the AD object. + :type ad_source_of_authority: str + :param ad_source_anchor: The AD source anchor. + :type ad_source_anchor: str + :param ad_user_principal_name: The user principal name for the AD object. + :type ad_user_principal_name: str + :param ad_distinguished_name: The distinguished name for the AD object. + :type ad_distinguished_name: str + :param ad_mail: The email for the AD object. + :type ad_mail: str + :param time_occured: The date and time of occurance. + :type time_occured: datetime + :param aad_object_type: The AAD side object type. + :type aad_object_type: str + :param aad_object_guid: The AAD side object guid. + :type aad_object_guid: str + :param aad_display_name: The AAD side display name + :type aad_display_name: str + :param aad_source_of_authority: The AAD side source of authority for the + object. + :type aad_source_of_authority: str + :param aad_user_principal_name: The AAD side user principal name. + :type aad_user_principal_name: str + :param aad_distringuished_name: The AAD side distinguished name for the + object. + :type aad_distringuished_name: str + :param aad_mail: The AAD side email for the object. + :type aad_mail: str + :param last_dir_sync_time: The date and time of last sync run. + :type last_dir_sync_time: datetime + :param modified_attribute_value: The modified atttribute value. + :type modified_attribute_value: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, + 'connector_id': {'key': 'connectorId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'server_error_detail': {'key': 'serverErrorDetail', 'type': 'str'}, + 'time_first_occured': {'key': 'timeFirstOccured', 'type': 'iso-8601'}, + 'retry_count': {'key': 'retryCount', 'type': 'int'}, + 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, + 'dn': {'key': 'dn', 'type': 'str'}, + 'min_limit': {'key': 'minLimit', 'type': 'str'}, + 'max_limit': {'key': 'maxLimit', 'type': 'str'}, + 'cloud_anchor': {'key': 'cloudAnchor', 'type': 'str'}, + 'attribute_name': {'key': 'attributeName', 'type': 'str'}, + 'attribute_value': {'key': 'attributeValue', 'type': 'str'}, + 'attribute_multi_value': {'key': 'attributeMultiValue', 'type': 'bool'}, + 'object_id_conflict': {'key': 'objectIdConflict', 'type': 'str'}, + 'sam_account_name': {'key': 'samAccountName', 'type': 'str'}, + 'ad_object_type': {'key': 'adObjectType', 'type': 'str'}, + 'ad_object_guid': {'key': 'adObjectGuid', 'type': 'str'}, + 'ad_display_name': {'key': 'adDisplayName', 'type': 'str'}, + 'ad_source_of_authority': {'key': 'adSourceOfAuthority', 'type': 'str'}, + 'ad_source_anchor': {'key': 'adSourceAnchor', 'type': 'str'}, + 'ad_user_principal_name': {'key': 'adUserPrincipalName', 'type': 'str'}, + 'ad_distinguished_name': {'key': 'adDistinguishedName', 'type': 'str'}, + 'ad_mail': {'key': 'adMail', 'type': 'str'}, + 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, + 'aad_object_type': {'key': 'aadObjectType', 'type': 'str'}, + 'aad_object_guid': {'key': 'aadObjectGuid', 'type': 'str'}, + 'aad_display_name': {'key': 'aadDisplayName', 'type': 'str'}, + 'aad_source_of_authority': {'key': 'aadSourceOfAuthority', 'type': 'str'}, + 'aad_user_principal_name': {'key': 'aadUserPrincipalName', 'type': 'str'}, + 'aad_distringuished_name': {'key': 'aadDistringuishedName', 'type': 'str'}, + 'aad_mail': {'key': 'aadMail', 'type': 'str'}, + 'last_dir_sync_time': {'key': 'lastDirSyncTime', 'type': 'iso-8601'}, + 'modified_attribute_value': {'key': 'modifiedAttributeValue', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, run_step_result_id: str=None, connector_id: str=None, type: str=None, error_code: str=None, message: str=None, server_error_detail: str=None, time_first_occured=None, retry_count: int=None, cs_object_id: str=None, dn: str=None, min_limit: str=None, max_limit: str=None, cloud_anchor: str=None, attribute_name: str=None, attribute_value: str=None, attribute_multi_value: bool=None, object_id_conflict: str=None, sam_account_name: str=None, ad_object_type: str=None, ad_object_guid: str=None, ad_display_name: str=None, ad_source_of_authority: str=None, ad_source_anchor: str=None, ad_user_principal_name: str=None, ad_distinguished_name: str=None, ad_mail: str=None, time_occured=None, aad_object_type: str=None, aad_object_guid: str=None, aad_display_name: str=None, aad_source_of_authority: str=None, aad_user_principal_name: str=None, aad_distringuished_name: str=None, aad_mail: str=None, last_dir_sync_time=None, modified_attribute_value: str=None, **kwargs) -> None: + super(ExportError, self).__init__(**kwargs) + self.id = id + self.run_step_result_id = run_step_result_id + self.connector_id = connector_id + self.type = type + self.error_code = error_code + self.message = message + self.server_error_detail = server_error_detail + self.time_first_occured = time_first_occured + self.retry_count = retry_count + self.cs_object_id = cs_object_id + self.dn = dn + self.min_limit = min_limit + self.max_limit = max_limit + self.cloud_anchor = cloud_anchor + self.attribute_name = attribute_name + self.attribute_value = attribute_value + self.attribute_multi_value = attribute_multi_value + self.object_id_conflict = object_id_conflict + self.sam_account_name = sam_account_name + self.ad_object_type = ad_object_type + self.ad_object_guid = ad_object_guid + self.ad_display_name = ad_display_name + self.ad_source_of_authority = ad_source_of_authority + self.ad_source_anchor = ad_source_anchor + self.ad_user_principal_name = ad_user_principal_name + self.ad_distinguished_name = ad_distinguished_name + self.ad_mail = ad_mail + self.time_occured = time_occured + self.aad_object_type = aad_object_type + self.aad_object_guid = aad_object_guid + self.aad_display_name = aad_display_name + self.aad_source_of_authority = aad_source_of_authority + self.aad_user_principal_name = aad_user_principal_name + self.aad_distringuished_name = aad_distringuished_name + self.aad_mail = aad_mail + self.last_dir_sync_time = last_dir_sync_time + self.modified_attribute_value = modified_attribute_value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors.py new file mode 100644 index 000000000000..8e19f1621018 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors.py @@ -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 ExportErrors(Model): + """The list of export errors. + + :param value: The value returned by the operation. + :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportError] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExportError]'}, + } + + def __init__(self, **kwargs): + super(ExportErrors, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors_py3.py new file mode 100644 index 000000000000..44890655a5d9 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors_py3.py @@ -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 ExportErrors(Model): + """The list of export errors. + + :param value: The value returned by the operation. + :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportError] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExportError]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ExportErrors, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status.py new file mode 100644 index 000000000000..aeccd4d60cec --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status.py @@ -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 ExportStatus(Model): + """The details of the export status. + + :param service_id: The id of the service for whom the export status is + being reported. + :type service_id: str + :param service_member_id: The server Id for whom the export status is + being reported. + :type service_member_id: str + :param end_time: The date and time when the export ended. + :type end_time: datetime + :param run_step_result_id: The run step result Id. + :type run_step_result_id: str + """ + + _attribute_map = { + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExportStatus, self).__init__(**kwargs) + self.service_id = kwargs.get('service_id', None) + self.service_member_id = kwargs.get('service_member_id', None) + self.end_time = kwargs.get('end_time', None) + self.run_step_result_id = kwargs.get('run_step_result_id', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_paged.py new file mode 100644 index 000000000000..52e68d6cfbf6 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_paged.py @@ -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 ExportStatusPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExportStatus ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExportStatus]'} + } + + def __init__(self, *args, **kwargs): + + super(ExportStatusPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_py3.py new file mode 100644 index 000000000000..34812aa03420 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_py3.py @@ -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 ExportStatus(Model): + """The details of the export status. + + :param service_id: The id of the service for whom the export status is + being reported. + :type service_id: str + :param service_member_id: The server Id for whom the export status is + being reported. + :type service_member_id: str + :param end_time: The date and time when the export ended. + :type end_time: datetime + :param run_step_result_id: The run step result Id. + :type run_step_result_id: str + """ + + _attribute_map = { + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, + } + + def __init__(self, *, service_id: str=None, service_member_id: str=None, end_time=None, run_step_result_id: str=None, **kwargs) -> None: + super(ExportStatus, self).__init__(**kwargs) + self.service_id = service_id + self.service_member_id = service_member_id + self.end_time = end_time + self.run_step_result_id = run_step_result_id diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info.py new file mode 100644 index 000000000000..b2e38d5b6f54 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info.py @@ -0,0 +1,36 @@ +# 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 ExtensionErrorInfo(Model): + """The extension error details. + + :param extension_name: The extension name. + :type extension_name: str + :param extension_context: The extension context. + :type extension_context: str + :param call_stack: The call stack for the error. + :type call_stack: str + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'extension_context': {'key': 'extensionContext', 'type': 'str'}, + 'call_stack': {'key': 'callStack', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExtensionErrorInfo, self).__init__(**kwargs) + self.extension_name = kwargs.get('extension_name', None) + self.extension_context = kwargs.get('extension_context', None) + self.call_stack = kwargs.get('call_stack', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info_py3.py new file mode 100644 index 000000000000..0f65c519be03 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info_py3.py @@ -0,0 +1,36 @@ +# 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 ExtensionErrorInfo(Model): + """The extension error details. + + :param extension_name: The extension name. + :type extension_name: str + :param extension_context: The extension context. + :type extension_context: str + :param call_stack: The call stack for the error. + :type call_stack: str + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'extension_context': {'key': 'extensionContext', 'type': 'str'}, + 'call_stack': {'key': 'callStack', 'type': 'str'}, + } + + def __init__(self, *, extension_name: str=None, extension_context: str=None, call_stack: str=None, **kwargs) -> None: + super(ExtensionErrorInfo, self).__init__(**kwargs) + self.extension_name = extension_name + self.extension_context = extension_context + self.call_stack = call_stack diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary.py new file mode 100644 index 000000000000..29eea554a047 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary.py @@ -0,0 +1,53 @@ +# 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 ForestSummary(Model): + """The forest summary for an ADDS domain. + + :param forest_name: The forest name. + :type forest_name: str + :param domain_count: The domain count. + :type domain_count: int + :param site_count: The site count. + :type site_count: int + :param monitored_dc_count: The number of domain controllers that are + monitored by Azure Active Directory Connect Health. + :type monitored_dc_count: int + :param total_dc_count: The total domain controllers. + :type total_dc_count: int + :param domains: The list of domain controller names. + :type domains: list[str] + :param sites: The list of site names. + :type sites: list[str] + """ + + _attribute_map = { + 'forest_name': {'key': 'forestName', 'type': 'str'}, + 'domain_count': {'key': 'domainCount', 'type': 'int'}, + 'site_count': {'key': 'siteCount', 'type': 'int'}, + 'monitored_dc_count': {'key': 'monitoredDcCount', 'type': 'int'}, + 'total_dc_count': {'key': 'totalDcCount', 'type': 'int'}, + 'domains': {'key': 'domains', 'type': '[str]'}, + 'sites': {'key': 'sites', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(ForestSummary, self).__init__(**kwargs) + self.forest_name = kwargs.get('forest_name', None) + self.domain_count = kwargs.get('domain_count', None) + self.site_count = kwargs.get('site_count', None) + self.monitored_dc_count = kwargs.get('monitored_dc_count', None) + self.total_dc_count = kwargs.get('total_dc_count', None) + self.domains = kwargs.get('domains', None) + self.sites = kwargs.get('sites', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary_py3.py new file mode 100644 index 000000000000..ab6d04623cb4 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary_py3.py @@ -0,0 +1,53 @@ +# 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 ForestSummary(Model): + """The forest summary for an ADDS domain. + + :param forest_name: The forest name. + :type forest_name: str + :param domain_count: The domain count. + :type domain_count: int + :param site_count: The site count. + :type site_count: int + :param monitored_dc_count: The number of domain controllers that are + monitored by Azure Active Directory Connect Health. + :type monitored_dc_count: int + :param total_dc_count: The total domain controllers. + :type total_dc_count: int + :param domains: The list of domain controller names. + :type domains: list[str] + :param sites: The list of site names. + :type sites: list[str] + """ + + _attribute_map = { + 'forest_name': {'key': 'forestName', 'type': 'str'}, + 'domain_count': {'key': 'domainCount', 'type': 'int'}, + 'site_count': {'key': 'siteCount', 'type': 'int'}, + 'monitored_dc_count': {'key': 'monitoredDcCount', 'type': 'int'}, + 'total_dc_count': {'key': 'totalDcCount', 'type': 'int'}, + 'domains': {'key': 'domains', 'type': '[str]'}, + 'sites': {'key': 'sites', 'type': '[str]'}, + } + + def __init__(self, *, forest_name: str=None, domain_count: int=None, site_count: int=None, monitored_dc_count: int=None, total_dc_count: int=None, domains=None, sites=None, **kwargs) -> None: + super(ForestSummary, self).__init__(**kwargs) + self.forest_name = forest_name + self.domain_count = domain_count + self.site_count = site_count + self.monitored_dc_count = monitored_dc_count + self.total_dc_count = total_dc_count + self.domains = domains + self.sites = sites diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py new file mode 100644 index 000000000000..cd735d8c4c42 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py @@ -0,0 +1,45 @@ +# 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 GlobalConfiguration(Model): + """The global configuration settings. + + :param version: The version for the global configuration. + :type version: int + :param schema_xml: The schema for the configuration. + :type schema_xml: str + :param password_sync_enabled: Indicates if password sync is enabled or + not. + :type password_sync_enabled: bool + :param num_saved_pwd_event: The number of saved password events. + :type num_saved_pwd_event: int + :param feature_set: The list of additional feature sets. + :type feature_set: list[~azure.mgmt.adhybridhealthservice.models.Item] + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'int'}, + 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, + 'password_sync_enabled': {'key': 'passwordSyncEnabled', 'type': 'bool'}, + 'num_saved_pwd_event': {'key': 'numSavedPwdEvent', 'type': 'int'}, + 'feature_set': {'key': 'featureSet', 'type': '[Item]'}, + } + + def __init__(self, **kwargs): + super(GlobalConfiguration, self).__init__(**kwargs) + self.version = kwargs.get('version', None) + self.schema_xml = kwargs.get('schema_xml', None) + self.password_sync_enabled = kwargs.get('password_sync_enabled', None) + self.num_saved_pwd_event = kwargs.get('num_saved_pwd_event', None) + self.feature_set = kwargs.get('feature_set', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_paged.py new file mode 100644 index 000000000000..08ce7743785e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_paged.py @@ -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 GlobalConfigurationPaged(Paged): + """ + A paging container for iterating over a list of :class:`GlobalConfiguration ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[GlobalConfiguration]'} + } + + def __init__(self, *args, **kwargs): + + super(GlobalConfigurationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py new file mode 100644 index 000000000000..67d9788957b4 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py @@ -0,0 +1,45 @@ +# 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 GlobalConfiguration(Model): + """The global configuration settings. + + :param version: The version for the global configuration. + :type version: int + :param schema_xml: The schema for the configuration. + :type schema_xml: str + :param password_sync_enabled: Indicates if password sync is enabled or + not. + :type password_sync_enabled: bool + :param num_saved_pwd_event: The number of saved password events. + :type num_saved_pwd_event: int + :param feature_set: The list of additional feature sets. + :type feature_set: list[~azure.mgmt.adhybridhealthservice.models.Item] + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'int'}, + 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, + 'password_sync_enabled': {'key': 'passwordSyncEnabled', 'type': 'bool'}, + 'num_saved_pwd_event': {'key': 'numSavedPwdEvent', 'type': 'int'}, + 'feature_set': {'key': 'featureSet', 'type': '[Item]'}, + } + + def __init__(self, *, version: int=None, schema_xml: str=None, password_sync_enabled: bool=None, num_saved_pwd_event: int=None, feature_set=None, **kwargs) -> None: + super(GlobalConfiguration, self).__init__(**kwargs) + self.version = version + self.schema_xml = schema_xml + self.password_sync_enabled = password_sync_enabled + self.num_saved_pwd_event = num_saved_pwd_event + self.feature_set = feature_set diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link.py new file mode 100644 index 000000000000..f54429a456b4 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link.py @@ -0,0 +1,32 @@ +# 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 HelpLink(Model): + """The help link which contains more information related to an alert. + + :param title: The title for the link. + :type title: str + :param url: The url for the help document. + :type url: str + """ + + _attribute_map = { + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(HelpLink, self).__init__(**kwargs) + self.title = kwargs.get('title', None) + self.url = kwargs.get('url', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link_py3.py new file mode 100644 index 000000000000..fc434435ecec --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link_py3.py @@ -0,0 +1,32 @@ +# 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 HelpLink(Model): + """The help link which contains more information related to an alert. + + :param title: The title for the link. + :type title: str + :param url: The url for the help document. + :type url: str + """ + + _attribute_map = { + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, *, title: str=None, url: str=None, **kwargs) -> None: + super(HelpLink, self).__init__(**kwargs) + self.title = title + self.url = url diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix.py new file mode 100644 index 000000000000..14a5f661354b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix.py @@ -0,0 +1,37 @@ +# 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 Hotfix(Model): + """The details of the hotfix installed in the server. + + :param kb_name: The name of the hotfix KB. + :type kb_name: str + :param link: The link to the KB Article. + :type link: str + :param installed_date: The date and time, in UTC, when the KB was + installed in the server. + :type installed_date: datetime + """ + + _attribute_map = { + 'kb_name': {'key': 'kbName', 'type': 'str'}, + 'link': {'key': 'link', 'type': 'str'}, + 'installed_date': {'key': 'installedDate', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(Hotfix, self).__init__(**kwargs) + self.kb_name = kwargs.get('kb_name', None) + self.link = kwargs.get('link', None) + self.installed_date = kwargs.get('installed_date', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix_py3.py new file mode 100644 index 000000000000..0e8592ed5b6f --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix_py3.py @@ -0,0 +1,37 @@ +# 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 Hotfix(Model): + """The details of the hotfix installed in the server. + + :param kb_name: The name of the hotfix KB. + :type kb_name: str + :param link: The link to the KB Article. + :type link: str + :param installed_date: The date and time, in UTC, when the KB was + installed in the server. + :type installed_date: datetime + """ + + _attribute_map = { + 'kb_name': {'key': 'kbName', 'type': 'str'}, + 'link': {'key': 'link', 'type': 'str'}, + 'installed_date': {'key': 'installedDate', 'type': 'iso-8601'}, + } + + def __init__(self, *, kb_name: str=None, link: str=None, installed_date=None, **kwargs) -> None: + super(Hotfix, self).__init__(**kwargs) + self.kb_name = kb_name + self.link = link + self.installed_date = installed_date diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes.py new file mode 100644 index 000000000000..ed610e0b3417 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes.py @@ -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 Hotfixes(Model): + """The list of hotfixes installed in the server. + + :param value: The value returned by the operation. + :type value: list[~azure.mgmt.adhybridhealthservice.models.Hotfix] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Hotfix]'}, + } + + def __init__(self, **kwargs): + super(Hotfixes, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes_py3.py new file mode 100644 index 000000000000..a48b635db659 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes_py3.py @@ -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 Hotfixes(Model): + """The list of hotfixes installed in the server. + + :param value: The value returned by the operation. + :type value: list[~azure.mgmt.adhybridhealthservice.models.Hotfix] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Hotfix]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(Hotfixes, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error.py new file mode 100644 index 000000000000..bea8fdb9daf6 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error.py @@ -0,0 +1,84 @@ +# 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 ImportError(Model): + """The import error details. + + :param id: The error Id. + :type id: str + :param run_step_result_id: The run step result Id. + :type run_step_result_id: str + :param connector_id: The connector Id. + :type connector_id: str + :param type: The type of error. + :type type: str + :param time_occurred: The time when the import error occurred. + :type time_occurred: datetime + :param time_first_occurred: The time when the import error first occurred. + :type time_first_occurred: datetime + :param retry_count: The retry count. + :type retry_count: int + :param algorithm_step_type: The operation type specific to error + reporting. Possible values include: 'Undefined', 'Staging', + 'ConnectorFilter', 'Join', 'Projection', 'ImportFlow', 'Provisioning', + 'ValidateConnectorFilter', 'Deprovisioning', 'ExportFlow', 'MvDeletion', + 'Recall', 'MvObjectTypeChange' + :type algorithm_step_type: str or + ~azure.mgmt.adhybridhealthservice.models.AlgorithmStepType + :param change_not_reimported: The change details that is not re-imported. + :type change_not_reimported: + ~azure.mgmt.adhybridhealthservice.models.ChangeNotReimported + :param extension_error_info: The extension error information. + :type extension_error_info: + ~azure.mgmt.adhybridhealthservice.models.ExtensionErrorInfo + :param rule_error_info: The error details in legacy rule processing. + :type rule_error_info: + ~azure.mgmt.adhybridhealthservice.models.RuleErrorInfo + :param cs_object_id: The object Id. + :type cs_object_id: str + :param dn: The distinguished name. + :type dn: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, + 'connector_id': {'key': 'connectorId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, + 'time_first_occurred': {'key': 'timeFirstOccurred', 'type': 'iso-8601'}, + 'retry_count': {'key': 'retryCount', 'type': 'int'}, + 'algorithm_step_type': {'key': 'algorithmStepType', 'type': 'str'}, + 'change_not_reimported': {'key': 'changeNotReimported', 'type': 'ChangeNotReimported'}, + 'extension_error_info': {'key': 'extensionErrorInfo', 'type': 'ExtensionErrorInfo'}, + 'rule_error_info': {'key': 'ruleErrorInfo', 'type': 'RuleErrorInfo'}, + 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, + 'dn': {'key': 'dn', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ImportError, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.run_step_result_id = kwargs.get('run_step_result_id', None) + self.connector_id = kwargs.get('connector_id', None) + self.type = kwargs.get('type', None) + self.time_occurred = kwargs.get('time_occurred', None) + self.time_first_occurred = kwargs.get('time_first_occurred', None) + self.retry_count = kwargs.get('retry_count', None) + self.algorithm_step_type = kwargs.get('algorithm_step_type', None) + self.change_not_reimported = kwargs.get('change_not_reimported', None) + self.extension_error_info = kwargs.get('extension_error_info', None) + self.rule_error_info = kwargs.get('rule_error_info', None) + self.cs_object_id = kwargs.get('cs_object_id', None) + self.dn = kwargs.get('dn', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error_py3.py new file mode 100644 index 000000000000..6a155b133eed --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error_py3.py @@ -0,0 +1,84 @@ +# 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 ImportError(Model): + """The import error details. + + :param id: The error Id. + :type id: str + :param run_step_result_id: The run step result Id. + :type run_step_result_id: str + :param connector_id: The connector Id. + :type connector_id: str + :param type: The type of error. + :type type: str + :param time_occurred: The time when the import error occurred. + :type time_occurred: datetime + :param time_first_occurred: The time when the import error first occurred. + :type time_first_occurred: datetime + :param retry_count: The retry count. + :type retry_count: int + :param algorithm_step_type: The operation type specific to error + reporting. Possible values include: 'Undefined', 'Staging', + 'ConnectorFilter', 'Join', 'Projection', 'ImportFlow', 'Provisioning', + 'ValidateConnectorFilter', 'Deprovisioning', 'ExportFlow', 'MvDeletion', + 'Recall', 'MvObjectTypeChange' + :type algorithm_step_type: str or + ~azure.mgmt.adhybridhealthservice.models.AlgorithmStepType + :param change_not_reimported: The change details that is not re-imported. + :type change_not_reimported: + ~azure.mgmt.adhybridhealthservice.models.ChangeNotReimported + :param extension_error_info: The extension error information. + :type extension_error_info: + ~azure.mgmt.adhybridhealthservice.models.ExtensionErrorInfo + :param rule_error_info: The error details in legacy rule processing. + :type rule_error_info: + ~azure.mgmt.adhybridhealthservice.models.RuleErrorInfo + :param cs_object_id: The object Id. + :type cs_object_id: str + :param dn: The distinguished name. + :type dn: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, + 'connector_id': {'key': 'connectorId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, + 'time_first_occurred': {'key': 'timeFirstOccurred', 'type': 'iso-8601'}, + 'retry_count': {'key': 'retryCount', 'type': 'int'}, + 'algorithm_step_type': {'key': 'algorithmStepType', 'type': 'str'}, + 'change_not_reimported': {'key': 'changeNotReimported', 'type': 'ChangeNotReimported'}, + 'extension_error_info': {'key': 'extensionErrorInfo', 'type': 'ExtensionErrorInfo'}, + 'rule_error_info': {'key': 'ruleErrorInfo', 'type': 'RuleErrorInfo'}, + 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, + 'dn': {'key': 'dn', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, run_step_result_id: str=None, connector_id: str=None, type: str=None, time_occurred=None, time_first_occurred=None, retry_count: int=None, algorithm_step_type=None, change_not_reimported=None, extension_error_info=None, rule_error_info=None, cs_object_id: str=None, dn: str=None, **kwargs) -> None: + super(ImportError, self).__init__(**kwargs) + self.id = id + self.run_step_result_id = run_step_result_id + self.connector_id = connector_id + self.type = type + self.time_occurred = time_occurred + self.time_first_occurred = time_first_occurred + self.retry_count = retry_count + self.algorithm_step_type = algorithm_step_type + self.change_not_reimported = change_not_reimported + self.extension_error_info = extension_error_info + self.rule_error_info = rule_error_info + self.cs_object_id = cs_object_id + self.dn = dn diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors.py new file mode 100644 index 000000000000..7f687411a2c4 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors.py @@ -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 ImportErrors(Model): + """The list of import errors. + + :param value: The value returned by the operation. + :type value: list[~azure.mgmt.adhybridhealthservice.models.ImportError] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ImportError]'}, + } + + def __init__(self, **kwargs): + super(ImportErrors, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors_py3.py new file mode 100644 index 000000000000..b7e8bffc89e1 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors_py3.py @@ -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 ImportErrors(Model): + """The list of import errors. + + :param value: The value returned by the operation. + :type value: list[~azure.mgmt.adhybridhealthservice.models.ImportError] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ImportError]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ImportErrors, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor.py new file mode 100644 index 000000000000..190be83235bc --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor.py @@ -0,0 +1,79 @@ +# 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 InboundReplicationNeighbor(Model): + """The replication summary for the domain controller inbound neighbor. + + :param source_domain_controller: The name of the source domain controller. + :type source_domain_controller: str + :param consecutive_failure_count: The number of consecutive faulire + counts. + :type consecutive_failure_count: int + :param naming_context: The naming context. + :type naming_context: str + :param status: The health status for the domain controller + :type status: int + :param last_attempted_sync: The last time a sync was attempted on the + domain controller. + :type last_attempted_sync: datetime + :param last_successful_sync: The last time when a successful sync + happened. + :type last_successful_sync: datetime + :param last_error_code: The last error code. + :type last_error_code: int + :param last_error_message: The error message of the last error. + :type last_error_message: str + :param error_title: The error title. + :type error_title: str + :param error_description: The error description. + :type error_description: str + :param fix_link: The link for the fix of the error. + :type fix_link: str + :param fix_details: The details of the fix. + :type fix_details: str + :param additional_info: The additional details. + :type additional_info: str + """ + + _attribute_map = { + 'source_domain_controller': {'key': 'sourceDomainController', 'type': 'str'}, + 'consecutive_failure_count': {'key': 'consecutiveFailureCount', 'type': 'int'}, + 'naming_context': {'key': 'namingContext', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'int'}, + 'last_attempted_sync': {'key': 'lastAttemptedSync', 'type': 'iso-8601'}, + 'last_successful_sync': {'key': 'lastSuccessfulSync', 'type': 'iso-8601'}, + 'last_error_code': {'key': 'lastErrorCode', 'type': 'int'}, + 'last_error_message': {'key': 'lastErrorMessage', 'type': 'str'}, + 'error_title': {'key': 'errorTitle', 'type': 'str'}, + 'error_description': {'key': 'errorDescription', 'type': 'str'}, + 'fix_link': {'key': 'fixLink', 'type': 'str'}, + 'fix_details': {'key': 'fixDetails', 'type': 'str'}, + 'additional_info': {'key': 'additionalInfo', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(InboundReplicationNeighbor, self).__init__(**kwargs) + self.source_domain_controller = kwargs.get('source_domain_controller', None) + self.consecutive_failure_count = kwargs.get('consecutive_failure_count', None) + self.naming_context = kwargs.get('naming_context', None) + self.status = kwargs.get('status', None) + self.last_attempted_sync = kwargs.get('last_attempted_sync', None) + self.last_successful_sync = kwargs.get('last_successful_sync', None) + self.last_error_code = kwargs.get('last_error_code', None) + self.last_error_message = kwargs.get('last_error_message', None) + self.error_title = kwargs.get('error_title', None) + self.error_description = kwargs.get('error_description', None) + self.fix_link = kwargs.get('fix_link', None) + self.fix_details = kwargs.get('fix_details', None) + self.additional_info = kwargs.get('additional_info', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor_py3.py new file mode 100644 index 000000000000..8522266bff8a --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor_py3.py @@ -0,0 +1,79 @@ +# 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 InboundReplicationNeighbor(Model): + """The replication summary for the domain controller inbound neighbor. + + :param source_domain_controller: The name of the source domain controller. + :type source_domain_controller: str + :param consecutive_failure_count: The number of consecutive faulire + counts. + :type consecutive_failure_count: int + :param naming_context: The naming context. + :type naming_context: str + :param status: The health status for the domain controller + :type status: int + :param last_attempted_sync: The last time a sync was attempted on the + domain controller. + :type last_attempted_sync: datetime + :param last_successful_sync: The last time when a successful sync + happened. + :type last_successful_sync: datetime + :param last_error_code: The last error code. + :type last_error_code: int + :param last_error_message: The error message of the last error. + :type last_error_message: str + :param error_title: The error title. + :type error_title: str + :param error_description: The error description. + :type error_description: str + :param fix_link: The link for the fix of the error. + :type fix_link: str + :param fix_details: The details of the fix. + :type fix_details: str + :param additional_info: The additional details. + :type additional_info: str + """ + + _attribute_map = { + 'source_domain_controller': {'key': 'sourceDomainController', 'type': 'str'}, + 'consecutive_failure_count': {'key': 'consecutiveFailureCount', 'type': 'int'}, + 'naming_context': {'key': 'namingContext', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'int'}, + 'last_attempted_sync': {'key': 'lastAttemptedSync', 'type': 'iso-8601'}, + 'last_successful_sync': {'key': 'lastSuccessfulSync', 'type': 'iso-8601'}, + 'last_error_code': {'key': 'lastErrorCode', 'type': 'int'}, + 'last_error_message': {'key': 'lastErrorMessage', 'type': 'str'}, + 'error_title': {'key': 'errorTitle', 'type': 'str'}, + 'error_description': {'key': 'errorDescription', 'type': 'str'}, + 'fix_link': {'key': 'fixLink', 'type': 'str'}, + 'fix_details': {'key': 'fixDetails', 'type': 'str'}, + 'additional_info': {'key': 'additionalInfo', 'type': 'str'}, + } + + def __init__(self, *, source_domain_controller: str=None, consecutive_failure_count: int=None, naming_context: str=None, status: int=None, last_attempted_sync=None, last_successful_sync=None, last_error_code: int=None, last_error_message: str=None, error_title: str=None, error_description: str=None, fix_link: str=None, fix_details: str=None, additional_info: str=None, **kwargs) -> None: + super(InboundReplicationNeighbor, self).__init__(**kwargs) + self.source_domain_controller = source_domain_controller + self.consecutive_failure_count = consecutive_failure_count + self.naming_context = naming_context + self.status = status + self.last_attempted_sync = last_attempted_sync + self.last_successful_sync = last_successful_sync + self.last_error_code = last_error_code + self.last_error_message = last_error_message + self.error_title = error_title + self.error_description = error_description + self.fix_link = fix_link + self.fix_details = fix_details + self.additional_info = additional_info diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors.py new file mode 100644 index 000000000000..0903cab0a5e3 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors.py @@ -0,0 +1,29 @@ +# 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 InboundReplicationNeighbors(Model): + """The list of replication summary for the domain controller inbound neighbor. + + :param value: The details of inbound replication neighbors. + :type value: + list[~azure.mgmt.adhybridhealthservice.models.InboundReplicationNeighbor] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[InboundReplicationNeighbor]'}, + } + + def __init__(self, **kwargs): + super(InboundReplicationNeighbors, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors_py3.py new file mode 100644 index 000000000000..161651d7ffe7 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors_py3.py @@ -0,0 +1,29 @@ +# 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 InboundReplicationNeighbors(Model): + """The list of replication summary for the domain controller inbound neighbor. + + :param value: The details of inbound replication neighbors. + :type value: + list[~azure.mgmt.adhybridhealthservice.models.InboundReplicationNeighbor] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[InboundReplicationNeighbor]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(InboundReplicationNeighbors, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item.py new file mode 100644 index 000000000000..070ee43ab8c2 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item.py @@ -0,0 +1,32 @@ +# 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 Item(Model): + """The key value pair for properties. + + :param key: The key for the property. + :type key: str + :param value: The value for the key. + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Item, self).__init__(**kwargs) + self.key = kwargs.get('key', None) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_paged.py new file mode 100644 index 000000000000..8970f99e86b8 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_paged.py @@ -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 ItemPaged(Paged): + """ + A paging container for iterating over a list of :class:`Item ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Item]'} + } + + def __init__(self, *args, **kwargs): + + super(ItemPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_py3.py new file mode 100644 index 000000000000..5953fbcd3ee2 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_py3.py @@ -0,0 +1,32 @@ +# 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 Item(Model): + """The key value pair for properties. + + :param key: The key for the property. + :type key: str + :param value: The value for the key. + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, key: str=None, value: str=None, **kwargs) -> None: + super(Item, self).__init__(**kwargs) + self.key = key + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py new file mode 100644 index 000000000000..20a692d3f0d5 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py @@ -0,0 +1,116 @@ +# 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 MergedExportError(Model): + """The merged export error. + + :param id: The error Id. + :type id: str + :param incoming_object_display_name: The incoming object display name. + :type incoming_object_display_name: str + :param incoming_object_type: The incoming object type. + :type incoming_object_type: str + :param user_principal_name: The user principal name + :type user_principal_name: str + :param type: The type of the error. + :type type: str + :param attribute_name: The attribute name. + :type attribute_name: str + :param attribute_value: The attribute value. + :type attribute_value: str + :param time_occurred: The date and time when the error occurred. + :type time_occurred: datetime + :param time_first_occurred: The time when the error first occurred. + :type time_first_occurred: datetime + :param cs_object_id: the cs object Id. + :type cs_object_id: str + :param dn: the DN of the object. + :type dn: str + :param incoming_object: The incoming object details. + :type incoming_object: + ~azure.mgmt.adhybridhealthservice.models.AssociatedObject + :param existing_object: The existing object + :type existing_object: + ~azure.mgmt.adhybridhealthservice.models.AssociatedObject + :param modified_or_removed_attribute_value: The modified or removed + attribute vlaue. + :type modified_or_removed_attribute_value: str + :param run_step_result_id: The run step result Id. + :type run_step_result_id: str + :param sam_account_name: The sam account name. + :type sam_account_name: str + :param server_error_detail: The server error details. + :type server_error_detail: str + :param service_id: The service Id. + :type service_id: str + :param service_member_id: The server Id. + :type service_member_id: str + :param merged_entity_id: The merged entity Id. + :type merged_entity_id: str + :param created_date: The date and time, in UTC, when the error was + created. + :type created_date: datetime + :param export_error_status: The export error status. + :type export_error_status: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'incoming_object_display_name': {'key': 'incomingObjectDisplayName', 'type': 'str'}, + 'incoming_object_type': {'key': 'incomingObjectType', 'type': 'str'}, + 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'attribute_name': {'key': 'attributeName', 'type': 'str'}, + 'attribute_value': {'key': 'attributeValue', 'type': 'str'}, + 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, + 'time_first_occurred': {'key': 'timeFirstOccurred', 'type': 'iso-8601'}, + 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, + 'dn': {'key': 'dn', 'type': 'str'}, + 'incoming_object': {'key': 'incomingObject', 'type': 'AssociatedObject'}, + 'existing_object': {'key': 'existingObject', 'type': 'AssociatedObject'}, + 'modified_or_removed_attribute_value': {'key': 'modifiedOrRemovedAttributeValue', 'type': 'str'}, + 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, + 'sam_account_name': {'key': 'samAccountName', 'type': 'str'}, + 'server_error_detail': {'key': 'serverErrorDetail', 'type': 'str'}, + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'merged_entity_id': {'key': 'mergedEntityId', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'export_error_status': {'key': 'exportErrorStatus', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(MergedExportError, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.incoming_object_display_name = kwargs.get('incoming_object_display_name', None) + self.incoming_object_type = kwargs.get('incoming_object_type', None) + self.user_principal_name = kwargs.get('user_principal_name', None) + self.type = kwargs.get('type', None) + self.attribute_name = kwargs.get('attribute_name', None) + self.attribute_value = kwargs.get('attribute_value', None) + self.time_occurred = kwargs.get('time_occurred', None) + self.time_first_occurred = kwargs.get('time_first_occurred', None) + self.cs_object_id = kwargs.get('cs_object_id', None) + self.dn = kwargs.get('dn', None) + self.incoming_object = kwargs.get('incoming_object', None) + self.existing_object = kwargs.get('existing_object', None) + self.modified_or_removed_attribute_value = kwargs.get('modified_or_removed_attribute_value', None) + self.run_step_result_id = kwargs.get('run_step_result_id', None) + self.sam_account_name = kwargs.get('sam_account_name', None) + self.server_error_detail = kwargs.get('server_error_detail', None) + self.service_id = kwargs.get('service_id', None) + self.service_member_id = kwargs.get('service_member_id', None) + self.merged_entity_id = kwargs.get('merged_entity_id', None) + self.created_date = kwargs.get('created_date', None) + self.export_error_status = kwargs.get('export_error_status', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_paged.py new file mode 100644 index 000000000000..e2921e5cf16b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_paged.py @@ -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 MergedExportErrorPaged(Paged): + """ + A paging container for iterating over a list of :class:`MergedExportError ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[MergedExportError]'} + } + + def __init__(self, *args, **kwargs): + + super(MergedExportErrorPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_py3.py new file mode 100644 index 000000000000..23127c6768e7 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_py3.py @@ -0,0 +1,116 @@ +# 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 MergedExportError(Model): + """The merged export error. + + :param id: The error Id. + :type id: str + :param incoming_object_display_name: The incoming object display name. + :type incoming_object_display_name: str + :param incoming_object_type: The incoming object type. + :type incoming_object_type: str + :param user_principal_name: The user principal name + :type user_principal_name: str + :param type: The type of the error. + :type type: str + :param attribute_name: The attribute name. + :type attribute_name: str + :param attribute_value: The attribute value. + :type attribute_value: str + :param time_occurred: The date and time when the error occurred. + :type time_occurred: datetime + :param time_first_occurred: The time when the error first occurred. + :type time_first_occurred: datetime + :param cs_object_id: the cs object Id. + :type cs_object_id: str + :param dn: the DN of the object. + :type dn: str + :param incoming_object: The incoming object details. + :type incoming_object: + ~azure.mgmt.adhybridhealthservice.models.AssociatedObject + :param existing_object: The existing object + :type existing_object: + ~azure.mgmt.adhybridhealthservice.models.AssociatedObject + :param modified_or_removed_attribute_value: The modified or removed + attribute vlaue. + :type modified_or_removed_attribute_value: str + :param run_step_result_id: The run step result Id. + :type run_step_result_id: str + :param sam_account_name: The sam account name. + :type sam_account_name: str + :param server_error_detail: The server error details. + :type server_error_detail: str + :param service_id: The service Id. + :type service_id: str + :param service_member_id: The server Id. + :type service_member_id: str + :param merged_entity_id: The merged entity Id. + :type merged_entity_id: str + :param created_date: The date and time, in UTC, when the error was + created. + :type created_date: datetime + :param export_error_status: The export error status. + :type export_error_status: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'incoming_object_display_name': {'key': 'incomingObjectDisplayName', 'type': 'str'}, + 'incoming_object_type': {'key': 'incomingObjectType', 'type': 'str'}, + 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'attribute_name': {'key': 'attributeName', 'type': 'str'}, + 'attribute_value': {'key': 'attributeValue', 'type': 'str'}, + 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, + 'time_first_occurred': {'key': 'timeFirstOccurred', 'type': 'iso-8601'}, + 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, + 'dn': {'key': 'dn', 'type': 'str'}, + 'incoming_object': {'key': 'incomingObject', 'type': 'AssociatedObject'}, + 'existing_object': {'key': 'existingObject', 'type': 'AssociatedObject'}, + 'modified_or_removed_attribute_value': {'key': 'modifiedOrRemovedAttributeValue', 'type': 'str'}, + 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, + 'sam_account_name': {'key': 'samAccountName', 'type': 'str'}, + 'server_error_detail': {'key': 'serverErrorDetail', 'type': 'str'}, + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'merged_entity_id': {'key': 'mergedEntityId', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'export_error_status': {'key': 'exportErrorStatus', 'type': 'int'}, + } + + def __init__(self, *, id: str=None, incoming_object_display_name: str=None, incoming_object_type: str=None, user_principal_name: str=None, type: str=None, attribute_name: str=None, attribute_value: str=None, time_occurred=None, time_first_occurred=None, cs_object_id: str=None, dn: str=None, incoming_object=None, existing_object=None, modified_or_removed_attribute_value: str=None, run_step_result_id: str=None, sam_account_name: str=None, server_error_detail: str=None, service_id: str=None, service_member_id: str=None, merged_entity_id: str=None, created_date=None, export_error_status: int=None, **kwargs) -> None: + super(MergedExportError, self).__init__(**kwargs) + self.id = id + self.incoming_object_display_name = incoming_object_display_name + self.incoming_object_type = incoming_object_type + self.user_principal_name = user_principal_name + self.type = type + self.attribute_name = attribute_name + self.attribute_value = attribute_value + self.time_occurred = time_occurred + self.time_first_occurred = time_first_occurred + self.cs_object_id = cs_object_id + self.dn = dn + self.incoming_object = incoming_object + self.existing_object = existing_object + self.modified_or_removed_attribute_value = modified_or_removed_attribute_value + self.run_step_result_id = run_step_result_id + self.sam_account_name = sam_account_name + self.server_error_detail = server_error_detail + self.service_id = service_id + self.service_member_id = service_member_id + self.merged_entity_id = merged_entity_id + self.created_date = created_date + self.export_error_status = export_error_status diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group.py new file mode 100644 index 000000000000..0335be23e794 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group.py @@ -0,0 +1,37 @@ +# 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 MetricGroup(Model): + """The metric group details. + + :param key: The key for the group. + :type key: str + :param display_name: The display name for the group. + :type display_name: str + :param invisible_for_ui: indicates if the metric group is displayed in + Azure Active Directory Connect Health UI. + :type invisible_for_ui: bool + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'invisible_for_ui': {'key': 'invisibleForUi', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MetricGroup, self).__init__(**kwargs) + self.key = kwargs.get('key', None) + self.display_name = kwargs.get('display_name', None) + self.invisible_for_ui = kwargs.get('invisible_for_ui', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group_py3.py new file mode 100644 index 000000000000..ab7df9386744 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group_py3.py @@ -0,0 +1,37 @@ +# 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 MetricGroup(Model): + """The metric group details. + + :param key: The key for the group. + :type key: str + :param display_name: The display name for the group. + :type display_name: str + :param invisible_for_ui: indicates if the metric group is displayed in + Azure Active Directory Connect Health UI. + :type invisible_for_ui: bool + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'invisible_for_ui': {'key': 'invisibleForUi', 'type': 'bool'}, + } + + def __init__(self, *, key: str=None, display_name: str=None, invisible_for_ui: bool=None, **kwargs) -> None: + super(MetricGroup, self).__init__(**kwargs) + self.key = key + self.display_name = display_name + self.invisible_for_ui = invisible_for_ui diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata.py new file mode 100644 index 000000000000..862bd6f790d3 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata.py @@ -0,0 +1,73 @@ +# 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 MetricMetadata(Model): + """The metric meta data. + + :param metrics_processor_class_name: The name of the class which retrieve + and process the metric. + :type metrics_processor_class_name: str + :param metric_name: The metric name + :type metric_name: str + :param groupings: The groupings for the metrics. + :type groupings: + list[~azure.mgmt.adhybridhealthservice.models.MetricGroup] + :param display_name: The display name for the metric. + :type display_name: str + :param value_kind: Indicates if the metrics is a rate,value, percent or + duration type. + :type value_kind: str + :param min_value: The minimun value. + :type min_value: int + :param max_value: The maximum value. + :type max_value: int + :param kind: Indicates whether the dashboard to represent the metric is a + line, bar,pie, area or donut chart. + :type kind: str + :param is_default: Indicates if the metric is a default metric or not. + :type is_default: bool + :param is_perf_counter: Indicates if the metric is a performance counter + metric or not. + :type is_perf_counter: bool + :param is_dev_ops: Indicates if the metric is visible to DevOps or not. + :type is_dev_ops: bool + """ + + _attribute_map = { + 'metrics_processor_class_name': {'key': 'metricsProcessorClassName', 'type': 'str'}, + 'metric_name': {'key': 'metricName', 'type': 'str'}, + 'groupings': {'key': 'groupings', 'type': '[MetricGroup]'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'value_kind': {'key': 'valueKind', 'type': 'str'}, + 'min_value': {'key': 'minValue', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'int'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_perf_counter': {'key': 'isPerfCounter', 'type': 'bool'}, + 'is_dev_ops': {'key': 'isDevOps', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MetricMetadata, self).__init__(**kwargs) + self.metrics_processor_class_name = kwargs.get('metrics_processor_class_name', None) + self.metric_name = kwargs.get('metric_name', None) + self.groupings = kwargs.get('groupings', None) + self.display_name = kwargs.get('display_name', None) + self.value_kind = kwargs.get('value_kind', None) + self.min_value = kwargs.get('min_value', None) + self.max_value = kwargs.get('max_value', None) + self.kind = kwargs.get('kind', None) + self.is_default = kwargs.get('is_default', None) + self.is_perf_counter = kwargs.get('is_perf_counter', None) + self.is_dev_ops = kwargs.get('is_dev_ops', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_paged.py new file mode 100644 index 000000000000..95908771fe42 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_paged.py @@ -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 MetricMetadataPaged(Paged): + """ + A paging container for iterating over a list of :class:`MetricMetadata ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[MetricMetadata]'} + } + + def __init__(self, *args, **kwargs): + + super(MetricMetadataPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_py3.py new file mode 100644 index 000000000000..8087ee60b9d1 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_py3.py @@ -0,0 +1,73 @@ +# 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 MetricMetadata(Model): + """The metric meta data. + + :param metrics_processor_class_name: The name of the class which retrieve + and process the metric. + :type metrics_processor_class_name: str + :param metric_name: The metric name + :type metric_name: str + :param groupings: The groupings for the metrics. + :type groupings: + list[~azure.mgmt.adhybridhealthservice.models.MetricGroup] + :param display_name: The display name for the metric. + :type display_name: str + :param value_kind: Indicates if the metrics is a rate,value, percent or + duration type. + :type value_kind: str + :param min_value: The minimun value. + :type min_value: int + :param max_value: The maximum value. + :type max_value: int + :param kind: Indicates whether the dashboard to represent the metric is a + line, bar,pie, area or donut chart. + :type kind: str + :param is_default: Indicates if the metric is a default metric or not. + :type is_default: bool + :param is_perf_counter: Indicates if the metric is a performance counter + metric or not. + :type is_perf_counter: bool + :param is_dev_ops: Indicates if the metric is visible to DevOps or not. + :type is_dev_ops: bool + """ + + _attribute_map = { + 'metrics_processor_class_name': {'key': 'metricsProcessorClassName', 'type': 'str'}, + 'metric_name': {'key': 'metricName', 'type': 'str'}, + 'groupings': {'key': 'groupings', 'type': '[MetricGroup]'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'value_kind': {'key': 'valueKind', 'type': 'str'}, + 'min_value': {'key': 'minValue', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'int'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_perf_counter': {'key': 'isPerfCounter', 'type': 'bool'}, + 'is_dev_ops': {'key': 'isDevOps', 'type': 'bool'}, + } + + def __init__(self, *, metrics_processor_class_name: str=None, metric_name: str=None, groupings=None, display_name: str=None, value_kind: str=None, min_value: int=None, max_value: int=None, kind: str=None, is_default: bool=None, is_perf_counter: bool=None, is_dev_ops: bool=None, **kwargs) -> None: + super(MetricMetadata, self).__init__(**kwargs) + self.metrics_processor_class_name = metrics_processor_class_name + self.metric_name = metric_name + self.groupings = groupings + self.display_name = display_name + self.value_kind = value_kind + self.min_value = min_value + self.max_value = max_value + self.kind = kind + self.is_default = is_default + self.is_perf_counter = is_perf_counter + self.is_dev_ops = is_dev_ops diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set.py new file mode 100644 index 000000000000..b1e75d6fc9fb --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set.py @@ -0,0 +1,33 @@ +# 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 MetricSet(Model): + """The set of metric values. Example of a MetricSet are Values of token + requests for a Server1 or RelyingParty1. + + :param set_name: The name of the set. + :type set_name: str + :param values: The list of the metric values. + :type values: list[int] + """ + + _attribute_map = { + 'set_name': {'key': 'setName', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[int]'}, + } + + def __init__(self, **kwargs): + super(MetricSet, self).__init__(**kwargs) + self.set_name = kwargs.get('set_name', None) + self.values = kwargs.get('values', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set_py3.py new file mode 100644 index 000000000000..569abe25c060 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set_py3.py @@ -0,0 +1,33 @@ +# 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 MetricSet(Model): + """The set of metric values. Example of a MetricSet are Values of token + requests for a Server1 or RelyingParty1. + + :param set_name: The name of the set. + :type set_name: str + :param values: The list of the metric values. + :type values: list[int] + """ + + _attribute_map = { + 'set_name': {'key': 'setName', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[int]'}, + } + + def __init__(self, *, set_name: str=None, values=None, **kwargs) -> None: + super(MetricSet, self).__init__(**kwargs) + self.set_name = set_name + self.values = values diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets.py new file mode 100644 index 000000000000..a8f4b04838ff --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets.py @@ -0,0 +1,33 @@ +# 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 MetricSets(Model): + """The metrics data represented set. + + :param sets: The list of metric set. + :type sets: list[~azure.mgmt.adhybridhealthservice.models.MetricSet] + :param time_stamps: The list of timestamps for each metric in the metric + set. + :type time_stamps: list[datetime] + """ + + _attribute_map = { + 'sets': {'key': 'sets', 'type': '[MetricSet]'}, + 'time_stamps': {'key': 'timeStamps', 'type': '[iso-8601]'}, + } + + def __init__(self, **kwargs): + super(MetricSets, self).__init__(**kwargs) + self.sets = kwargs.get('sets', None) + self.time_stamps = kwargs.get('time_stamps', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets_py3.py new file mode 100644 index 000000000000..5134f26d64e7 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets_py3.py @@ -0,0 +1,33 @@ +# 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 MetricSets(Model): + """The metrics data represented set. + + :param sets: The list of metric set. + :type sets: list[~azure.mgmt.adhybridhealthservice.models.MetricSet] + :param time_stamps: The list of timestamps for each metric in the metric + set. + :type time_stamps: list[datetime] + """ + + _attribute_map = { + 'sets': {'key': 'sets', 'type': '[MetricSet]'}, + 'time_stamps': {'key': 'timeStamps', 'type': '[iso-8601]'}, + } + + def __init__(self, *, sets=None, time_stamps=None, **kwargs) -> None: + super(MetricSets, self).__init__(**kwargs) + self.sets = sets + self.time_stamps = time_stamps diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration.py new file mode 100644 index 000000000000..fccd8787abfb --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration.py @@ -0,0 +1,38 @@ +# 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 ModuleConfiguration(Model): + """The module configuration as required by the Agent service. + + :param agent_service: The name of agent service. + :type agent_service: str + :param module_name: The name of the module for which the configuration is + applicable. + :type module_name: str + :param properties: The key value pairs of properties required for + configuration. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'agent_service': {'key': 'agentService', 'type': 'str'}, + 'module_name': {'key': 'moduleName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ModuleConfiguration, self).__init__(**kwargs) + self.agent_service = kwargs.get('agent_service', None) + self.module_name = kwargs.get('module_name', None) + self.properties = kwargs.get('properties', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration_py3.py new file mode 100644 index 000000000000..f37acb6bdc17 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration_py3.py @@ -0,0 +1,38 @@ +# 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 ModuleConfiguration(Model): + """The module configuration as required by the Agent service. + + :param agent_service: The name of agent service. + :type agent_service: str + :param module_name: The name of the module for which the configuration is + applicable. + :type module_name: str + :param properties: The key value pairs of properties required for + configuration. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'agent_service': {'key': 'agentService', 'type': 'str'}, + 'module_name': {'key': 'moduleName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, *, agent_service: str=None, module_name: str=None, properties=None, **kwargs) -> None: + super(ModuleConfiguration, self).__init__(**kwargs) + self.agent_service = agent_service + self.module_name = module_name + self.properties = properties diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations.py new file mode 100644 index 000000000000..48e85ab3f099 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations.py @@ -0,0 +1,29 @@ +# 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 ModuleConfigurations(Model): + """The list of module configurations. + + :param value: The value returned by the operation. + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ModuleConfiguration] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ModuleConfiguration]'}, + } + + def __init__(self, **kwargs): + super(ModuleConfigurations, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations_py3.py new file mode 100644 index 000000000000..bc8872ff609c --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations_py3.py @@ -0,0 +1,29 @@ +# 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 ModuleConfigurations(Model): + """The list of module configurations. + + :param value: The value returned by the operation. + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ModuleConfiguration] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ModuleConfiguration]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ModuleConfigurations, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error.py new file mode 100644 index 000000000000..3ed4f34dfa03 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error.py @@ -0,0 +1,89 @@ +# 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 ObjectWithSyncError(Model): + """The objects withg sync errors. + + :param source_of_authority: The source of authority. + :type source_of_authority: str + :param display_name: The display name. + :type display_name: str + :param object_type: The object type. + :type object_type: str + :param attribute_name: The attribute name. + :type attribute_name: str + :param attribute_value: The attribute value. + :type attribute_value: str + :param modififed_value: The modified value. + :type modififed_value: str + :param user_principal_name: The user principal name. + :type user_principal_name: str + :param object_guid: The object guid. + :type object_guid: str + :param attribute_multi_values: Indicates if the atttibute is multi-valued + or not. + :type attribute_multi_values: bool + :param min_limit: The minimum limit. + :type min_limit: str + :param max_limit: The maximum limit. + :type max_limit: str + :param distinguished_name: The distinguished name. + :type distinguished_name: str + :param mail: The email. + :type mail: str + :param time_occured: The date and time of occurance. + :type time_occured: datetime + :param error_type: The error type. + :type error_type: str + :param source_anchor: The source anchor. + :type source_anchor: str + """ + + _attribute_map = { + 'source_of_authority': {'key': 'sourceOfAuthority', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'attribute_name': {'key': 'attributeName', 'type': 'str'}, + 'attribute_value': {'key': 'attributeValue', 'type': 'str'}, + 'modififed_value': {'key': 'modififedValue', 'type': 'str'}, + 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, + 'object_guid': {'key': 'objectGuid', 'type': 'str'}, + 'attribute_multi_values': {'key': 'attributeMultiValues', 'type': 'bool'}, + 'min_limit': {'key': 'minLimit', 'type': 'str'}, + 'max_limit': {'key': 'maxLimit', 'type': 'str'}, + 'distinguished_name': {'key': 'distinguishedName', 'type': 'str'}, + 'mail': {'key': 'mail', 'type': 'str'}, + 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, + 'error_type': {'key': 'errorType', 'type': 'str'}, + 'source_anchor': {'key': 'sourceAnchor', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ObjectWithSyncError, self).__init__(**kwargs) + self.source_of_authority = kwargs.get('source_of_authority', None) + self.display_name = kwargs.get('display_name', None) + self.object_type = kwargs.get('object_type', None) + self.attribute_name = kwargs.get('attribute_name', None) + self.attribute_value = kwargs.get('attribute_value', None) + self.modififed_value = kwargs.get('modififed_value', None) + self.user_principal_name = kwargs.get('user_principal_name', None) + self.object_guid = kwargs.get('object_guid', None) + self.attribute_multi_values = kwargs.get('attribute_multi_values', None) + self.min_limit = kwargs.get('min_limit', None) + self.max_limit = kwargs.get('max_limit', None) + self.distinguished_name = kwargs.get('distinguished_name', None) + self.mail = kwargs.get('mail', None) + self.time_occured = kwargs.get('time_occured', None) + self.error_type = kwargs.get('error_type', None) + self.source_anchor = kwargs.get('source_anchor', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error_py3.py new file mode 100644 index 000000000000..03fb5eac05be --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error_py3.py @@ -0,0 +1,89 @@ +# 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 ObjectWithSyncError(Model): + """The objects withg sync errors. + + :param source_of_authority: The source of authority. + :type source_of_authority: str + :param display_name: The display name. + :type display_name: str + :param object_type: The object type. + :type object_type: str + :param attribute_name: The attribute name. + :type attribute_name: str + :param attribute_value: The attribute value. + :type attribute_value: str + :param modififed_value: The modified value. + :type modififed_value: str + :param user_principal_name: The user principal name. + :type user_principal_name: str + :param object_guid: The object guid. + :type object_guid: str + :param attribute_multi_values: Indicates if the atttibute is multi-valued + or not. + :type attribute_multi_values: bool + :param min_limit: The minimum limit. + :type min_limit: str + :param max_limit: The maximum limit. + :type max_limit: str + :param distinguished_name: The distinguished name. + :type distinguished_name: str + :param mail: The email. + :type mail: str + :param time_occured: The date and time of occurance. + :type time_occured: datetime + :param error_type: The error type. + :type error_type: str + :param source_anchor: The source anchor. + :type source_anchor: str + """ + + _attribute_map = { + 'source_of_authority': {'key': 'sourceOfAuthority', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'attribute_name': {'key': 'attributeName', 'type': 'str'}, + 'attribute_value': {'key': 'attributeValue', 'type': 'str'}, + 'modififed_value': {'key': 'modififedValue', 'type': 'str'}, + 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, + 'object_guid': {'key': 'objectGuid', 'type': 'str'}, + 'attribute_multi_values': {'key': 'attributeMultiValues', 'type': 'bool'}, + 'min_limit': {'key': 'minLimit', 'type': 'str'}, + 'max_limit': {'key': 'maxLimit', 'type': 'str'}, + 'distinguished_name': {'key': 'distinguishedName', 'type': 'str'}, + 'mail': {'key': 'mail', 'type': 'str'}, + 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, + 'error_type': {'key': 'errorType', 'type': 'str'}, + 'source_anchor': {'key': 'sourceAnchor', 'type': 'str'}, + } + + def __init__(self, *, source_of_authority: str=None, display_name: str=None, object_type: str=None, attribute_name: str=None, attribute_value: str=None, modififed_value: str=None, user_principal_name: str=None, object_guid: str=None, attribute_multi_values: bool=None, min_limit: str=None, max_limit: str=None, distinguished_name: str=None, mail: str=None, time_occured=None, error_type: str=None, source_anchor: str=None, **kwargs) -> None: + super(ObjectWithSyncError, self).__init__(**kwargs) + self.source_of_authority = source_of_authority + self.display_name = display_name + self.object_type = object_type + self.attribute_name = attribute_name + self.attribute_value = attribute_value + self.modififed_value = modififed_value + self.user_principal_name = user_principal_name + self.object_guid = object_guid + self.attribute_multi_values = attribute_multi_values + self.min_limit = min_limit + self.max_limit = max_limit + self.distinguished_name = distinguished_name + self.mail = mail + self.time_occured = time_occured + self.error_type = error_type + self.source_anchor = source_anchor diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation.py new file mode 100644 index 000000000000..bb160b1caf78 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation.py @@ -0,0 +1,32 @@ +# 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 Operation(Model): + """The details of the operation. + + :param name: The name of the operation. + :type name: str + :param display: The display details for the operation. + :type display: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_paged.py new file mode 100644 index 000000000000..48ec9e0c8e0b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_paged.py @@ -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 OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_py3.py new file mode 100644 index 000000000000..4f9238063241 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_py3.py @@ -0,0 +1,32 @@ +# 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 Operation(Model): + """The details of the operation. + + :param name: The name of the operation. + :type name: str + :param display: The display details for the operation. + :type display: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'object'}, + } + + def __init__(self, *, name: str=None, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition.py new file mode 100644 index 000000000000..db1b446209fa --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition.py @@ -0,0 +1,62 @@ +# 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 Partition(Model): + """Describes the partition in Synchronization service. + + :param id: The partition Id. + :type id: str + :param dn: The distinguished name for the partition. + :type dn: str + :param enabled: Indicates if the partition object is selected or not. + :type enabled: bool + :param time_created: The date and time when the partition is created. + :type time_created: datetime + :param time_last_modified: The time and date when the partition was last + modified. + :type time_last_modified: datetime + :param partition_scope: The scope of the partition. + :type partition_scope: + ~azure.mgmt.adhybridhealthservice.models.PartitionScope + :param name: The name of the partition. + :type name: str + :param is_domain: Indicates if the partition is a domain or not. + :type is_domain: bool + :param type: The partition type. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'dn': {'key': 'dn', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'time_created': {'key': 'timeCreated', 'type': 'iso-8601'}, + 'time_last_modified': {'key': 'timeLastModified', 'type': 'iso-8601'}, + 'partition_scope': {'key': 'partitionScope', 'type': 'PartitionScope'}, + 'name': {'key': 'name', 'type': 'str'}, + 'is_domain': {'key': 'isDomain', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Partition, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.dn = kwargs.get('dn', None) + self.enabled = kwargs.get('enabled', None) + self.time_created = kwargs.get('time_created', None) + self.time_last_modified = kwargs.get('time_last_modified', None) + self.partition_scope = kwargs.get('partition_scope', None) + self.name = kwargs.get('name', None) + self.is_domain = kwargs.get('is_domain', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_py3.py new file mode 100644 index 000000000000..37856c7d00ab --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_py3.py @@ -0,0 +1,62 @@ +# 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 Partition(Model): + """Describes the partition in Synchronization service. + + :param id: The partition Id. + :type id: str + :param dn: The distinguished name for the partition. + :type dn: str + :param enabled: Indicates if the partition object is selected or not. + :type enabled: bool + :param time_created: The date and time when the partition is created. + :type time_created: datetime + :param time_last_modified: The time and date when the partition was last + modified. + :type time_last_modified: datetime + :param partition_scope: The scope of the partition. + :type partition_scope: + ~azure.mgmt.adhybridhealthservice.models.PartitionScope + :param name: The name of the partition. + :type name: str + :param is_domain: Indicates if the partition is a domain or not. + :type is_domain: bool + :param type: The partition type. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'dn': {'key': 'dn', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'time_created': {'key': 'timeCreated', 'type': 'iso-8601'}, + 'time_last_modified': {'key': 'timeLastModified', 'type': 'iso-8601'}, + 'partition_scope': {'key': 'partitionScope', 'type': 'PartitionScope'}, + 'name': {'key': 'name', 'type': 'str'}, + 'is_domain': {'key': 'isDomain', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, dn: str=None, enabled: bool=None, time_created=None, time_last_modified=None, partition_scope=None, name: str=None, is_domain: bool=None, type: str=None, **kwargs) -> None: + super(Partition, self).__init__(**kwargs) + self.id = id + self.dn = dn + self.enabled = enabled + self.time_created = time_created + self.time_last_modified = time_last_modified + self.partition_scope = partition_scope + self.name = name + self.is_domain = is_domain + self.type = type diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope.py new file mode 100644 index 000000000000..f17bbb571034 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope.py @@ -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 PartitionScope(Model): + """The connector partition scope. + + :param is_default: Indicates if the partition scope is default or not. + :type is_default: bool + :param object_classes: The in-scope object classes. + :type object_classes: list[str] + :param containers_included: The list of containers included. + :type containers_included: list[str] + :param containers_excluded: The list of containers excluded. + :type containers_excluded: list[str] + """ + + _attribute_map = { + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'object_classes': {'key': 'objectClasses', 'type': '[str]'}, + 'containers_included': {'key': 'containersIncluded', 'type': '[str]'}, + 'containers_excluded': {'key': 'containersExcluded', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(PartitionScope, self).__init__(**kwargs) + self.is_default = kwargs.get('is_default', None) + self.object_classes = kwargs.get('object_classes', None) + self.containers_included = kwargs.get('containers_included', None) + self.containers_excluded = kwargs.get('containers_excluded', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope_py3.py new file mode 100644 index 000000000000..288e75d2517b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope_py3.py @@ -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 PartitionScope(Model): + """The connector partition scope. + + :param is_default: Indicates if the partition scope is default or not. + :type is_default: bool + :param object_classes: The in-scope object classes. + :type object_classes: list[str] + :param containers_included: The list of containers included. + :type containers_included: list[str] + :param containers_excluded: The list of containers excluded. + :type containers_excluded: list[str] + """ + + _attribute_map = { + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'object_classes': {'key': 'objectClasses', 'type': '[str]'}, + 'containers_included': {'key': 'containersIncluded', 'type': '[str]'}, + 'containers_excluded': {'key': 'containersExcluded', 'type': '[str]'}, + } + + def __init__(self, *, is_default: bool=None, object_classes=None, containers_included=None, containers_excluded=None, **kwargs) -> None: + super(PartitionScope, self).__init__(**kwargs) + self.is_default = is_default + self.object_classes = object_classes + self.containers_included = containers_included + self.containers_excluded = containers_excluded diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration.py new file mode 100644 index 000000000000..cc5876d34e7a --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration.py @@ -0,0 +1,33 @@ +# 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 PasswordHashSyncConfiguration(Model): + """The password has synchronization configuration settings. + + :param enabled: Indicates if the password hash synchronization + configuration settings is enabled. + :type enabled: bool + :param target: The target. + :type target: str + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PasswordHashSyncConfiguration, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.target = kwargs.get('target', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration_py3.py new file mode 100644 index 000000000000..23ebd9f68758 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration_py3.py @@ -0,0 +1,33 @@ +# 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 PasswordHashSyncConfiguration(Model): + """The password has synchronization configuration settings. + + :param enabled: Indicates if the password hash synchronization + configuration settings is enabled. + :type enabled: bool + :param target: The target. + :type target: str + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, *, enabled: bool=None, target: str=None, **kwargs) -> None: + super(PasswordHashSyncConfiguration, self).__init__(**kwargs) + self.enabled = enabled + self.target = target diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings.py new file mode 100644 index 000000000000..f51812329111 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings.py @@ -0,0 +1,69 @@ +# 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 PasswordManagementSettings(Model): + """The password management settings. + + :param enabled: Indicates if the password extension is enabled. + :type enabled: bool + :param extension_file_path: The file path of the password management + extension. + :type extension_file_path: str + :param connect_to: Connection point of password management. + :type connect_to: str + :param connection_timeout: Connection timeoit for password extension. + :type connection_timeout: int + :param user: User to execute password extension. + :type user: str + :param supported_password_operations: The supported password operations. + Possible values include: 'Undefined', 'Set', 'Change' + :type supported_password_operations: str or + ~azure.mgmt.adhybridhealthservice.models.PasswordOperationTypes + :param maximum_retry_count: The maximum number of retries. + :type maximum_retry_count: int + :param retry_interval_in_seconds: The time between retries. + :type retry_interval_in_seconds: int + :param requires_secure_connection: Indicates if a secure connection is + required for password management. + :type requires_secure_connection: bool + :param unlock_account: Indicates if accounts should be unloacked when + resetting password. + :type unlock_account: bool + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'extension_file_path': {'key': 'extensionFilePath', 'type': 'str'}, + 'connect_to': {'key': 'connectTo', 'type': 'str'}, + 'connection_timeout': {'key': 'connectionTimeout', 'type': 'int'}, + 'user': {'key': 'user', 'type': 'str'}, + 'supported_password_operations': {'key': 'supportedPasswordOperations', 'type': 'str'}, + 'maximum_retry_count': {'key': 'maximumRetryCount', 'type': 'int'}, + 'retry_interval_in_seconds': {'key': 'retryIntervalInSeconds', 'type': 'int'}, + 'requires_secure_connection': {'key': 'requiresSecureConnection', 'type': 'bool'}, + 'unlock_account': {'key': 'unlockAccount', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(PasswordManagementSettings, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.extension_file_path = kwargs.get('extension_file_path', None) + self.connect_to = kwargs.get('connect_to', None) + self.connection_timeout = kwargs.get('connection_timeout', None) + self.user = kwargs.get('user', None) + self.supported_password_operations = kwargs.get('supported_password_operations', None) + self.maximum_retry_count = kwargs.get('maximum_retry_count', None) + self.retry_interval_in_seconds = kwargs.get('retry_interval_in_seconds', None) + self.requires_secure_connection = kwargs.get('requires_secure_connection', None) + self.unlock_account = kwargs.get('unlock_account', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings_py3.py new file mode 100644 index 000000000000..d859a03603c8 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings_py3.py @@ -0,0 +1,69 @@ +# 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 PasswordManagementSettings(Model): + """The password management settings. + + :param enabled: Indicates if the password extension is enabled. + :type enabled: bool + :param extension_file_path: The file path of the password management + extension. + :type extension_file_path: str + :param connect_to: Connection point of password management. + :type connect_to: str + :param connection_timeout: Connection timeoit for password extension. + :type connection_timeout: int + :param user: User to execute password extension. + :type user: str + :param supported_password_operations: The supported password operations. + Possible values include: 'Undefined', 'Set', 'Change' + :type supported_password_operations: str or + ~azure.mgmt.adhybridhealthservice.models.PasswordOperationTypes + :param maximum_retry_count: The maximum number of retries. + :type maximum_retry_count: int + :param retry_interval_in_seconds: The time between retries. + :type retry_interval_in_seconds: int + :param requires_secure_connection: Indicates if a secure connection is + required for password management. + :type requires_secure_connection: bool + :param unlock_account: Indicates if accounts should be unloacked when + resetting password. + :type unlock_account: bool + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'extension_file_path': {'key': 'extensionFilePath', 'type': 'str'}, + 'connect_to': {'key': 'connectTo', 'type': 'str'}, + 'connection_timeout': {'key': 'connectionTimeout', 'type': 'int'}, + 'user': {'key': 'user', 'type': 'str'}, + 'supported_password_operations': {'key': 'supportedPasswordOperations', 'type': 'str'}, + 'maximum_retry_count': {'key': 'maximumRetryCount', 'type': 'int'}, + 'retry_interval_in_seconds': {'key': 'retryIntervalInSeconds', 'type': 'int'}, + 'requires_secure_connection': {'key': 'requiresSecureConnection', 'type': 'bool'}, + 'unlock_account': {'key': 'unlockAccount', 'type': 'bool'}, + } + + def __init__(self, *, enabled: bool=None, extension_file_path: str=None, connect_to: str=None, connection_timeout: int=None, user: str=None, supported_password_operations=None, maximum_retry_count: int=None, retry_interval_in_seconds: int=None, requires_secure_connection: bool=None, unlock_account: bool=None, **kwargs) -> None: + super(PasswordManagementSettings, self).__init__(**kwargs) + self.enabled = enabled + self.extension_file_path = extension_file_path + self.connect_to = connect_to + self.connection_timeout = connection_timeout + self.user = user + self.supported_password_operations = supported_password_operations + self.maximum_retry_count = maximum_retry_count + self.retry_interval_in_seconds = retry_interval_in_seconds + self.requires_secure_connection = requires_secure_connection + self.unlock_account = unlock_account diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status.py new file mode 100644 index 000000000000..46db9b9a8520 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status.py @@ -0,0 +1,38 @@ +# 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 ReplicationStatus(Model): + """Replication summary for a domain controller. + + :param forest_name: The forest name. + :type forest_name: str + :param total_dc_count: The total numbe of domain controllers for a given + forest. + :type total_dc_count: int + :param error_dc_count: The total number of domain controllers with error + in a given forest. + :type error_dc_count: int + """ + + _attribute_map = { + 'forest_name': {'key': 'forestName', 'type': 'str'}, + 'total_dc_count': {'key': 'totalDcCount', 'type': 'int'}, + 'error_dc_count': {'key': 'errorDcCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ReplicationStatus, self).__init__(**kwargs) + self.forest_name = kwargs.get('forest_name', None) + self.total_dc_count = kwargs.get('total_dc_count', None) + self.error_dc_count = kwargs.get('error_dc_count', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status_py3.py new file mode 100644 index 000000000000..3b59644f6c87 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status_py3.py @@ -0,0 +1,38 @@ +# 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 ReplicationStatus(Model): + """Replication summary for a domain controller. + + :param forest_name: The forest name. + :type forest_name: str + :param total_dc_count: The total numbe of domain controllers for a given + forest. + :type total_dc_count: int + :param error_dc_count: The total number of domain controllers with error + in a given forest. + :type error_dc_count: int + """ + + _attribute_map = { + 'forest_name': {'key': 'forestName', 'type': 'str'}, + 'total_dc_count': {'key': 'totalDcCount', 'type': 'int'}, + 'error_dc_count': {'key': 'errorDcCount', 'type': 'int'}, + } + + def __init__(self, *, forest_name: str=None, total_dc_count: int=None, error_dc_count: int=None, **kwargs) -> None: + super(ReplicationStatus, self).__init__(**kwargs) + self.forest_name = forest_name + self.total_dc_count = total_dc_count + self.error_dc_count = error_dc_count diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py new file mode 100644 index 000000000000..1e20005cd20c --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py @@ -0,0 +1,56 @@ +# 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 ReplicationSummary(Model): + """The replication summary for a domain controller. + + :param target_server: The domain controller name. + :type target_server: str + :param site: The site name for a given domain controller. + :type site: str + :param domain: The domain name for a given domain controller. + :type domain: str + :param status: The health status for a domain controller. + :type status: int + :param last_attempted_sync: The last time when a sync was attempted for a + given domain controller. + :type last_attempted_sync: datetime + :param last_successful_sync: The time when the last successful sync + happened for a given domain controller. + :type last_successful_sync: datetime + :param inbound_neighbor_collection: List of individual domain controller + neighbor's inbound replication status. + :type inbound_neighbor_collection: + list[~azure.mgmt.adhybridhealthservice.models.InboundReplicationNeighbor] + """ + + _attribute_map = { + 'target_server': {'key': 'targetServer', 'type': 'str'}, + 'site': {'key': 'site', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'int'}, + 'last_attempted_sync': {'key': 'lastAttemptedSync', 'type': 'iso-8601'}, + 'last_successful_sync': {'key': 'lastSuccessfulSync', 'type': 'iso-8601'}, + 'inbound_neighbor_collection': {'key': 'inboundNeighborCollection', 'type': '[InboundReplicationNeighbor]'}, + } + + def __init__(self, **kwargs): + super(ReplicationSummary, self).__init__(**kwargs) + self.target_server = kwargs.get('target_server', None) + self.site = kwargs.get('site', None) + self.domain = kwargs.get('domain', None) + self.status = kwargs.get('status', None) + self.last_attempted_sync = kwargs.get('last_attempted_sync', None) + self.last_successful_sync = kwargs.get('last_successful_sync', None) + self.inbound_neighbor_collection = kwargs.get('inbound_neighbor_collection', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_paged.py new file mode 100644 index 000000000000..9a5c41de1b61 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_paged.py @@ -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 ReplicationSummaryPaged(Paged): + """ + A paging container for iterating over a list of :class:`ReplicationSummary ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ReplicationSummary]'} + } + + def __init__(self, *args, **kwargs): + + super(ReplicationSummaryPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_py3.py new file mode 100644 index 000000000000..5da5d0eb5f40 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_py3.py @@ -0,0 +1,56 @@ +# 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 ReplicationSummary(Model): + """The replication summary for a domain controller. + + :param target_server: The domain controller name. + :type target_server: str + :param site: The site name for a given domain controller. + :type site: str + :param domain: The domain name for a given domain controller. + :type domain: str + :param status: The health status for a domain controller. + :type status: int + :param last_attempted_sync: The last time when a sync was attempted for a + given domain controller. + :type last_attempted_sync: datetime + :param last_successful_sync: The time when the last successful sync + happened for a given domain controller. + :type last_successful_sync: datetime + :param inbound_neighbor_collection: List of individual domain controller + neighbor's inbound replication status. + :type inbound_neighbor_collection: + list[~azure.mgmt.adhybridhealthservice.models.InboundReplicationNeighbor] + """ + + _attribute_map = { + 'target_server': {'key': 'targetServer', 'type': 'str'}, + 'site': {'key': 'site', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'int'}, + 'last_attempted_sync': {'key': 'lastAttemptedSync', 'type': 'iso-8601'}, + 'last_successful_sync': {'key': 'lastSuccessfulSync', 'type': 'iso-8601'}, + 'inbound_neighbor_collection': {'key': 'inboundNeighborCollection', 'type': '[InboundReplicationNeighbor]'}, + } + + def __init__(self, *, target_server: str=None, site: str=None, domain: str=None, status: int=None, last_attempted_sync=None, last_successful_sync=None, inbound_neighbor_collection=None, **kwargs) -> None: + super(ReplicationSummary, self).__init__(**kwargs) + self.target_server = target_server + self.site = site + self.domain = domain + self.status = status + self.last_attempted_sync = last_attempted_sync + self.last_successful_sync = last_successful_sync + self.inbound_neighbor_collection = inbound_neighbor_collection diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result.py new file mode 100644 index 000000000000..ff62f0466a78 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result.py @@ -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 Result(Model): + """The result for an operation. + + :param value: The value. + :type value: bool + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(Result, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result_py3.py new file mode 100644 index 000000000000..86023b0efc63 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result_py3.py @@ -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 Result(Model): + """The result for an operation. + + :param value: The value. + :type value: bool + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'bool'}, + } + + def __init__(self, *, value: bool=None, **kwargs) -> None: + super(Result, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info.py new file mode 100644 index 000000000000..6dbd731a5008 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info.py @@ -0,0 +1,45 @@ +# 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 RuleErrorInfo(Model): + """The error details in legacy rule processing. + + :param attribute_mapping: The attribute mapping details. + :type attribute_mapping: + ~azure.mgmt.adhybridhealthservice.models.AttributeMapping + :param connector_id: The connector Id. + :type connector_id: str + :param connector_name: The connector name. + :type connector_name: str + :param cs_object_id: The object Id. + :type cs_object_id: str + :param dn: The distinguished name. + :type dn: str + """ + + _attribute_map = { + 'attribute_mapping': {'key': 'attributeMapping', 'type': 'AttributeMapping'}, + 'connector_id': {'key': 'connectorId', 'type': 'str'}, + 'connector_name': {'key': 'connectorName', 'type': 'str'}, + 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, + 'dn': {'key': 'dn', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RuleErrorInfo, self).__init__(**kwargs) + self.attribute_mapping = kwargs.get('attribute_mapping', None) + self.connector_id = kwargs.get('connector_id', None) + self.connector_name = kwargs.get('connector_name', None) + self.cs_object_id = kwargs.get('cs_object_id', None) + self.dn = kwargs.get('dn', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info_py3.py new file mode 100644 index 000000000000..df377c5c05d1 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info_py3.py @@ -0,0 +1,45 @@ +# 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 RuleErrorInfo(Model): + """The error details in legacy rule processing. + + :param attribute_mapping: The attribute mapping details. + :type attribute_mapping: + ~azure.mgmt.adhybridhealthservice.models.AttributeMapping + :param connector_id: The connector Id. + :type connector_id: str + :param connector_name: The connector name. + :type connector_name: str + :param cs_object_id: The object Id. + :type cs_object_id: str + :param dn: The distinguished name. + :type dn: str + """ + + _attribute_map = { + 'attribute_mapping': {'key': 'attributeMapping', 'type': 'AttributeMapping'}, + 'connector_id': {'key': 'connectorId', 'type': 'str'}, + 'connector_name': {'key': 'connectorName', 'type': 'str'}, + 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, + 'dn': {'key': 'dn', 'type': 'str'}, + } + + def __init__(self, *, attribute_mapping=None, connector_id: str=None, connector_name: str=None, cs_object_id: str=None, dn: str=None, **kwargs) -> None: + super(RuleErrorInfo, self).__init__(**kwargs) + self.attribute_mapping = attribute_mapping + self.connector_id = connector_id + self.connector_name = connector_name + self.cs_object_id = cs_object_id + self.dn = dn diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile.py new file mode 100644 index 000000000000..06bb9ab523b0 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile.py @@ -0,0 +1,36 @@ +# 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 RunProfile(Model): + """Describes the run profile. + + :param id: The run profile Id. + :type id: str + :param name: The run profile name + :type name: str + :param run_steps: The run steps of the run profile. + :type run_steps: list[~azure.mgmt.adhybridhealthservice.models.RunStep] + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'run_steps': {'key': 'runSteps', 'type': '[RunStep]'}, + } + + def __init__(self, **kwargs): + super(RunProfile, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.run_steps = kwargs.get('run_steps', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile_py3.py new file mode 100644 index 000000000000..8b06080db923 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile_py3.py @@ -0,0 +1,36 @@ +# 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 RunProfile(Model): + """Describes the run profile. + + :param id: The run profile Id. + :type id: str + :param name: The run profile name + :type name: str + :param run_steps: The run steps of the run profile. + :type run_steps: list[~azure.mgmt.adhybridhealthservice.models.RunStep] + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'run_steps': {'key': 'runSteps', 'type': '[RunStep]'}, + } + + def __init__(self, *, id: str=None, name: str=None, run_steps=None, **kwargs) -> None: + super(RunProfile, self).__init__(**kwargs) + self.id = id + self.name = name + self.run_steps = run_steps diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles.py new file mode 100644 index 000000000000..75f70427d75d --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles.py @@ -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 RunProfiles(Model): + """The list of run profiles. + + :param value: The value returned by the operation. + :type value: list[~azure.mgmt.adhybridhealthservice.models.RunProfile] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RunProfile]'}, + } + + def __init__(self, **kwargs): + super(RunProfiles, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles_py3.py new file mode 100644 index 000000000000..1e040d9fc474 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles_py3.py @@ -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 RunProfiles(Model): + """The list of run profiles. + + :param value: The value returned by the operation. + :type value: list[~azure.mgmt.adhybridhealthservice.models.RunProfile] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RunProfile]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(RunProfiles, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py new file mode 100644 index 000000000000..1b21ed9603f3 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py @@ -0,0 +1,53 @@ +# 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 RunStep(Model): + """The run step for a run profile. + + :param batch_size: The batch size used by the run step. + :type batch_size: int + :param object_process_limit: The obect processing limit. + :type object_process_limit: int + :param object_delete_limit: The object deletion limit. + :type object_delete_limit: int + :param page_size: The page size of the run step. + :type page_size: int + :param partition_id: The Id of the partition that a current run setp + operation is executing. + :type partition_id: str + :param operation_type: The run step operation types. + :type operation_type: int + :param timeout: The operation timeout. + :type timeout: int + """ + + _attribute_map = { + 'batch_size': {'key': 'batchSize', 'type': 'int'}, + 'object_process_limit': {'key': 'objectProcessLimit', 'type': 'int'}, + 'object_delete_limit': {'key': 'objectDeleteLimit', 'type': 'int'}, + 'page_size': {'key': 'pageSize', 'type': 'int'}, + 'partition_id': {'key': 'partitionId', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'int'}, + 'timeout': {'key': 'timeout', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(RunStep, self).__init__(**kwargs) + self.batch_size = kwargs.get('batch_size', None) + self.object_process_limit = kwargs.get('object_process_limit', None) + self.object_delete_limit = kwargs.get('object_delete_limit', None) + self.page_size = kwargs.get('page_size', None) + self.partition_id = kwargs.get('partition_id', None) + self.operation_type = kwargs.get('operation_type', None) + self.timeout = kwargs.get('timeout', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step_py3.py new file mode 100644 index 000000000000..e18eb818def9 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step_py3.py @@ -0,0 +1,53 @@ +# 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 RunStep(Model): + """The run step for a run profile. + + :param batch_size: The batch size used by the run step. + :type batch_size: int + :param object_process_limit: The obect processing limit. + :type object_process_limit: int + :param object_delete_limit: The object deletion limit. + :type object_delete_limit: int + :param page_size: The page size of the run step. + :type page_size: int + :param partition_id: The Id of the partition that a current run setp + operation is executing. + :type partition_id: str + :param operation_type: The run step operation types. + :type operation_type: int + :param timeout: The operation timeout. + :type timeout: int + """ + + _attribute_map = { + 'batch_size': {'key': 'batchSize', 'type': 'int'}, + 'object_process_limit': {'key': 'objectProcessLimit', 'type': 'int'}, + 'object_delete_limit': {'key': 'objectDeleteLimit', 'type': 'int'}, + 'page_size': {'key': 'pageSize', 'type': 'int'}, + 'partition_id': {'key': 'partitionId', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'int'}, + 'timeout': {'key': 'timeout', 'type': 'int'}, + } + + def __init__(self, *, batch_size: int=None, object_process_limit: int=None, object_delete_limit: int=None, page_size: int=None, partition_id: str=None, operation_type: int=None, timeout: int=None, **kwargs) -> None: + super(RunStep, self).__init__(**kwargs) + self.batch_size = batch_size + self.object_process_limit = object_process_limit + self.object_delete_limit = object_delete_limit + self.page_size = page_size + self.partition_id = partition_id + self.operation_type = operation_type + self.timeout = timeout diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py new file mode 100644 index 000000000000..6897af27aff0 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py @@ -0,0 +1,60 @@ +# 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 ServiceConfiguration(Model): + """The service configuration. + + :param version: The version of the sync service. + :type version: str + :param service_type: The service type of the server. + :type service_type: int + :param service_account: The service account. + :type service_account: str + :param sql_server: The SQL server information. + :type sql_server: str + :param sql_version: The SQL version. + :type sql_version: str + :param sql_edition: The SQL edition + :type sql_edition: str + :param sql_instance: The SQL instance details. + :type sql_instance: str + :param sql_database_name: The SQL database. + :type sql_database_name: str + :param sql_database_size: The SQL database size. + :type sql_database_size: int + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'service_type': {'key': 'serviceType', 'type': 'int'}, + 'service_account': {'key': 'serviceAccount', 'type': 'str'}, + 'sql_server': {'key': 'sqlServer', 'type': 'str'}, + 'sql_version': {'key': 'sqlVersion', 'type': 'str'}, + 'sql_edition': {'key': 'sqlEdition', 'type': 'str'}, + 'sql_instance': {'key': 'sqlInstance', 'type': 'str'}, + 'sql_database_name': {'key': 'sqlDatabaseName', 'type': 'str'}, + 'sql_database_size': {'key': 'sqlDatabaseSize', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ServiceConfiguration, self).__init__(**kwargs) + self.version = kwargs.get('version', None) + self.service_type = kwargs.get('service_type', None) + self.service_account = kwargs.get('service_account', None) + self.sql_server = kwargs.get('sql_server', None) + self.sql_version = kwargs.get('sql_version', None) + self.sql_edition = kwargs.get('sql_edition', None) + self.sql_instance = kwargs.get('sql_instance', None) + self.sql_database_name = kwargs.get('sql_database_name', None) + self.sql_database_size = kwargs.get('sql_database_size', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_py3.py new file mode 100644 index 000000000000..aa92278aea5a --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_py3.py @@ -0,0 +1,60 @@ +# 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 ServiceConfiguration(Model): + """The service configuration. + + :param version: The version of the sync service. + :type version: str + :param service_type: The service type of the server. + :type service_type: int + :param service_account: The service account. + :type service_account: str + :param sql_server: The SQL server information. + :type sql_server: str + :param sql_version: The SQL version. + :type sql_version: str + :param sql_edition: The SQL edition + :type sql_edition: str + :param sql_instance: The SQL instance details. + :type sql_instance: str + :param sql_database_name: The SQL database. + :type sql_database_name: str + :param sql_database_size: The SQL database size. + :type sql_database_size: int + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'service_type': {'key': 'serviceType', 'type': 'int'}, + 'service_account': {'key': 'serviceAccount', 'type': 'str'}, + 'sql_server': {'key': 'sqlServer', 'type': 'str'}, + 'sql_version': {'key': 'sqlVersion', 'type': 'str'}, + 'sql_edition': {'key': 'sqlEdition', 'type': 'str'}, + 'sql_instance': {'key': 'sqlInstance', 'type': 'str'}, + 'sql_database_name': {'key': 'sqlDatabaseName', 'type': 'str'}, + 'sql_database_size': {'key': 'sqlDatabaseSize', 'type': 'int'}, + } + + def __init__(self, *, version: str=None, service_type: int=None, service_account: str=None, sql_server: str=None, sql_version: str=None, sql_edition: str=None, sql_instance: str=None, sql_database_name: str=None, sql_database_size: int=None, **kwargs) -> None: + super(ServiceConfiguration, self).__init__(**kwargs) + self.version = version + self.service_type = service_type + self.service_account = service_account + self.sql_server = sql_server + self.sql_version = sql_version + self.sql_edition = sql_edition + self.sql_instance = sql_instance + self.sql_database_name = sql_database_name + self.sql_database_size = sql_database_size diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py new file mode 100644 index 000000000000..a18703252f35 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py @@ -0,0 +1,143 @@ +# 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 ServiceMember(Model): + """The server properties for a given service. + + :param service_member_id: The id of the server. + :type service_member_id: str + :param service_id: The service id to whom this server belongs. + :type service_id: str + :param tenant_id: The tenant id to whom this server belongs. + :type tenant_id: str + :param active_alerts: The total number of alerts that are currently active + for the server. + :type active_alerts: int + :param additional_information: The additional information, if any, for the + server. + :type additional_information: str + :param created_date: The date time , in UTC, when the server was + onboaraded to Azure Active Directory Connect Health. + :type created_date: datetime + :param dimensions: The server specific configuration related dimensions. + :type dimensions: object + :param disabled: Indicates if the server is disabled or not. + :type disabled: bool + :param disabled_reason: The reason for disabling the server. + :type disabled_reason: int + :param installed_qfes: The list of installed QFEs for the server. + :type installed_qfes: object + :param last_disabled: The date and time , in UTC, when the server was last + disabled. + :type last_disabled: datetime + :param last_reboot: The date and time, in UTC, when the server was last + rebooted. + :type last_reboot: datetime + :param last_server_reported_monitoring_level_change: The date and time, in + UTC, when the server's data monitoring configuration was last changed. + :type last_server_reported_monitoring_level_change: datetime + :param last_updated: The date and time, in UTC, when the server proeprties + were last updated. + :type last_updated: datetime + :param machine_id: The id of the machine. + :type machine_id: str + :param machine_name: The name of the server. + :type machine_name: str + :param monitoring_configurations_computed: The monitoring configuration of + the server which determines what activities are monitored by Azure Active + Directory Connect Health. + :type monitoring_configurations_computed: object + :param monitoring_configurations_customized: The customized monitoring + configuration of the server which determines what activities are monitored + by Azure Active Directory Connect Health. + :type monitoring_configurations_customized: object + :param os_name: The name of the operating system installed in the machine. + :type os_name: str + :param os_version: The version of the operating system installed in the + machine. + :type os_version: str + :param properties: Server specific properties. + :type properties: object + :param recommended_qfes: The list of recommended hotfixes for the server. + :type recommended_qfes: object + :param resolved_alerts: The total count of alerts that are resolved for + this server. + :type resolved_alerts: int + :param role: The service role that is being monitored in the server. + :type role: str + :param server_reported_monitoring_level: The monitoring level reported by + the server. Possible values include: 'Partial', 'Full', 'Off' + :type server_reported_monitoring_level: str or + ~azure.mgmt.adhybridhealthservice.models.MonitoringLevel + :param status: The health status of the server. + :type status: str + """ + + _attribute_map = { + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, + 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'dimensions': {'key': 'dimensions', 'type': 'object'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'disabled_reason': {'key': 'disabledReason', 'type': 'int'}, + 'installed_qfes': {'key': 'installedQfes', 'type': 'object'}, + 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, + 'last_reboot': {'key': 'lastReboot', 'type': 'iso-8601'}, + 'last_server_reported_monitoring_level_change': {'key': 'lastServerReportedMonitoringLevelChange', 'type': 'iso-8601'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'machine_id': {'key': 'machineId', 'type': 'str'}, + 'machine_name': {'key': 'machineName', 'type': 'str'}, + 'monitoring_configurations_computed': {'key': 'monitoringConfigurationsComputed', 'type': 'object'}, + 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': 'object'}, + 'os_name': {'key': 'osName', 'type': 'str'}, + 'os_version': {'key': 'osVersion', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'recommended_qfes': {'key': 'recommendedQfes', 'type': 'object'}, + 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, + 'role': {'key': 'role', 'type': 'str'}, + 'server_reported_monitoring_level': {'key': 'serverReportedMonitoringLevel', 'type': 'MonitoringLevel'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceMember, self).__init__(**kwargs) + self.service_member_id = kwargs.get('service_member_id', None) + self.service_id = kwargs.get('service_id', None) + self.tenant_id = kwargs.get('tenant_id', None) + self.active_alerts = kwargs.get('active_alerts', None) + self.additional_information = kwargs.get('additional_information', None) + self.created_date = kwargs.get('created_date', None) + self.dimensions = kwargs.get('dimensions', None) + self.disabled = kwargs.get('disabled', None) + self.disabled_reason = kwargs.get('disabled_reason', None) + self.installed_qfes = kwargs.get('installed_qfes', None) + self.last_disabled = kwargs.get('last_disabled', None) + self.last_reboot = kwargs.get('last_reboot', None) + self.last_server_reported_monitoring_level_change = kwargs.get('last_server_reported_monitoring_level_change', None) + self.last_updated = kwargs.get('last_updated', None) + self.machine_id = kwargs.get('machine_id', None) + self.machine_name = kwargs.get('machine_name', None) + self.monitoring_configurations_computed = kwargs.get('monitoring_configurations_computed', None) + self.monitoring_configurations_customized = kwargs.get('monitoring_configurations_customized', None) + self.os_name = kwargs.get('os_name', None) + self.os_version = kwargs.get('os_version', None) + self.properties = kwargs.get('properties', None) + self.recommended_qfes = kwargs.get('recommended_qfes', None) + self.resolved_alerts = kwargs.get('resolved_alerts', None) + self.role = kwargs.get('role', None) + self.server_reported_monitoring_level = kwargs.get('server_reported_monitoring_level', None) + self.status = kwargs.get('status', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_paged.py new file mode 100644 index 000000000000..93c6c6fd2f3d --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_paged.py @@ -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 ServiceMemberPaged(Paged): + """ + A paging container for iterating over a list of :class:`ServiceMember ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ServiceMember]'} + } + + def __init__(self, *args, **kwargs): + + super(ServiceMemberPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py new file mode 100644 index 000000000000..b38c86eb374a --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py @@ -0,0 +1,143 @@ +# 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 ServiceMember(Model): + """The server properties for a given service. + + :param service_member_id: The id of the server. + :type service_member_id: str + :param service_id: The service id to whom this server belongs. + :type service_id: str + :param tenant_id: The tenant id to whom this server belongs. + :type tenant_id: str + :param active_alerts: The total number of alerts that are currently active + for the server. + :type active_alerts: int + :param additional_information: The additional information, if any, for the + server. + :type additional_information: str + :param created_date: The date time , in UTC, when the server was + onboaraded to Azure Active Directory Connect Health. + :type created_date: datetime + :param dimensions: The server specific configuration related dimensions. + :type dimensions: object + :param disabled: Indicates if the server is disabled or not. + :type disabled: bool + :param disabled_reason: The reason for disabling the server. + :type disabled_reason: int + :param installed_qfes: The list of installed QFEs for the server. + :type installed_qfes: object + :param last_disabled: The date and time , in UTC, when the server was last + disabled. + :type last_disabled: datetime + :param last_reboot: The date and time, in UTC, when the server was last + rebooted. + :type last_reboot: datetime + :param last_server_reported_monitoring_level_change: The date and time, in + UTC, when the server's data monitoring configuration was last changed. + :type last_server_reported_monitoring_level_change: datetime + :param last_updated: The date and time, in UTC, when the server proeprties + were last updated. + :type last_updated: datetime + :param machine_id: The id of the machine. + :type machine_id: str + :param machine_name: The name of the server. + :type machine_name: str + :param monitoring_configurations_computed: The monitoring configuration of + the server which determines what activities are monitored by Azure Active + Directory Connect Health. + :type monitoring_configurations_computed: object + :param monitoring_configurations_customized: The customized monitoring + configuration of the server which determines what activities are monitored + by Azure Active Directory Connect Health. + :type monitoring_configurations_customized: object + :param os_name: The name of the operating system installed in the machine. + :type os_name: str + :param os_version: The version of the operating system installed in the + machine. + :type os_version: str + :param properties: Server specific properties. + :type properties: object + :param recommended_qfes: The list of recommended hotfixes for the server. + :type recommended_qfes: object + :param resolved_alerts: The total count of alerts that are resolved for + this server. + :type resolved_alerts: int + :param role: The service role that is being monitored in the server. + :type role: str + :param server_reported_monitoring_level: The monitoring level reported by + the server. Possible values include: 'Partial', 'Full', 'Off' + :type server_reported_monitoring_level: str or + ~azure.mgmt.adhybridhealthservice.models.MonitoringLevel + :param status: The health status of the server. + :type status: str + """ + + _attribute_map = { + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, + 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'dimensions': {'key': 'dimensions', 'type': 'object'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'disabled_reason': {'key': 'disabledReason', 'type': 'int'}, + 'installed_qfes': {'key': 'installedQfes', 'type': 'object'}, + 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, + 'last_reboot': {'key': 'lastReboot', 'type': 'iso-8601'}, + 'last_server_reported_monitoring_level_change': {'key': 'lastServerReportedMonitoringLevelChange', 'type': 'iso-8601'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'machine_id': {'key': 'machineId', 'type': 'str'}, + 'machine_name': {'key': 'machineName', 'type': 'str'}, + 'monitoring_configurations_computed': {'key': 'monitoringConfigurationsComputed', 'type': 'object'}, + 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': 'object'}, + 'os_name': {'key': 'osName', 'type': 'str'}, + 'os_version': {'key': 'osVersion', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'recommended_qfes': {'key': 'recommendedQfes', 'type': 'object'}, + 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, + 'role': {'key': 'role', 'type': 'str'}, + 'server_reported_monitoring_level': {'key': 'serverReportedMonitoringLevel', 'type': 'MonitoringLevel'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, *, service_member_id: str=None, service_id: str=None, tenant_id: str=None, active_alerts: int=None, additional_information: str=None, created_date=None, dimensions=None, disabled: bool=None, disabled_reason: int=None, installed_qfes=None, last_disabled=None, last_reboot=None, last_server_reported_monitoring_level_change=None, last_updated=None, machine_id: str=None, machine_name: str=None, monitoring_configurations_computed=None, monitoring_configurations_customized=None, os_name: str=None, os_version: str=None, properties=None, recommended_qfes=None, resolved_alerts: int=None, role: str=None, server_reported_monitoring_level=None, status: str=None, **kwargs) -> None: + super(ServiceMember, self).__init__(**kwargs) + self.service_member_id = service_member_id + self.service_id = service_id + self.tenant_id = tenant_id + self.active_alerts = active_alerts + self.additional_information = additional_information + self.created_date = created_date + self.dimensions = dimensions + self.disabled = disabled + self.disabled_reason = disabled_reason + self.installed_qfes = installed_qfes + self.last_disabled = last_disabled + self.last_reboot = last_reboot + self.last_server_reported_monitoring_level_change = last_server_reported_monitoring_level_change + self.last_updated = last_updated + self.machine_id = machine_id + self.machine_name = machine_name + self.monitoring_configurations_computed = monitoring_configurations_computed + self.monitoring_configurations_customized = monitoring_configurations_customized + self.os_name = os_name + self.os_version = os_version + self.properties = properties + self.recommended_qfes = recommended_qfes + self.resolved_alerts = resolved_alerts + self.role = role + self.server_reported_monitoring_level = server_reported_monitoring_level + self.status = status diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py new file mode 100644 index 000000000000..6d857a32f1db --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py @@ -0,0 +1,140 @@ +# 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 ServiceProperties(Model): + """The service properties for a given service. + + :param id: The id of the service. + :type id: str + :param active_alerts: The count of alerts that are currently active for + the service. + :type active_alerts: int + :param additional_information: The additional information related to the + service. + :type additional_information: str + :param created_date: The date and time, in UTC, when the service was + onboarded to Azure Active Directory Connect Health. + :type created_date: datetime + :param custom_notification_emails: The list of additional emails that are + configured to recieve notifications about the service. + :type custom_notification_emails: list[str] + :param disabled: Indicates if the service is disabled or not. + :type disabled: bool + :param display_name: The display name of the service. + :type display_name: str + :param health: The health of the service. + :type health: str + :param last_disabled: The date and time, in UTC, when the service was last + disabled. + :type last_disabled: datetime + :param last_updated: The date or time , in UTC, when the service + properties were last updated. + :type last_updated: datetime + :param monitoring_configurations_computed: The monitoring configuration of + the service which determines what activities are monitored by Azure Active + Directory Connect Health. + :type monitoring_configurations_computed: object + :param monitoring_configurations_customized: The customized monitoring + configuration of the service which determines what activities are + monitored by Azure Active Directory Connect Health. + :type monitoring_configurations_customized: object + :param notification_email_enabled: Indicates if email notification is + enabled or not. + :type notification_email_enabled: bool + :param notification_email_enabled_for_global_admins: Indicates if email + notification is enabled for global administrators of the tenant. + :type notification_email_enabled_for_global_admins: bool + :param notification_emails_enabled_for_global_admins: Indicates if email + notification is enabled for global administrators of the tenant. + :type notification_emails_enabled_for_global_admins: bool + :param notification_emails: The list of emails to whom service + notifications will be sent. + :type notification_emails: list[str] + :param original_disabled_state: Gets the original disable state. + :type original_disabled_state: bool + :param resolved_alerts: The total count of alerts that has been resolved + for the service. + :type resolved_alerts: int + :param service_id: The id of the service. + :type service_id: str + :param service_name: The name of the service. + :type service_name: str + :param signature: The signature of the service. + :type signature: str + :param simple_properties: List of service specific configuration + properties. + :type simple_properties: object + :param tenant_id: The id of the tenant to which the service is registered + to. + :type tenant_id: str + :param type: The service type for the services onboarded to Azure Active + Directory Connect Health. Depending on whether the service is monitoring, + ADFS, Sync or ADDS roles, the service type can either be + AdFederationService or AadSyncService or AdDomainService. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, + 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'custom_notification_emails': {'key': 'customNotificationEmails', 'type': '[str]'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'health': {'key': 'health', 'type': 'str'}, + 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'monitoring_configurations_computed': {'key': 'monitoringConfigurationsComputed', 'type': 'object'}, + 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': 'object'}, + 'notification_email_enabled': {'key': 'notificationEmailEnabled', 'type': 'bool'}, + 'notification_email_enabled_for_global_admins': {'key': 'notificationEmailEnabledForGlobalAdmins', 'type': 'bool'}, + 'notification_emails_enabled_for_global_admins': {'key': 'notificationEmailsEnabledForGlobalAdmins', 'type': 'bool'}, + 'notification_emails': {'key': 'notificationEmails', 'type': '[str]'}, + 'original_disabled_state': {'key': 'originalDisabledState', 'type': 'bool'}, + 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'service_name': {'key': 'serviceName', 'type': 'str'}, + 'signature': {'key': 'signature', 'type': 'str'}, + 'simple_properties': {'key': 'simpleProperties', 'type': 'object'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceProperties, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.active_alerts = kwargs.get('active_alerts', None) + self.additional_information = kwargs.get('additional_information', None) + self.created_date = kwargs.get('created_date', None) + self.custom_notification_emails = kwargs.get('custom_notification_emails', None) + self.disabled = kwargs.get('disabled', None) + self.display_name = kwargs.get('display_name', None) + self.health = kwargs.get('health', None) + self.last_disabled = kwargs.get('last_disabled', None) + self.last_updated = kwargs.get('last_updated', None) + self.monitoring_configurations_computed = kwargs.get('monitoring_configurations_computed', None) + self.monitoring_configurations_customized = kwargs.get('monitoring_configurations_customized', None) + self.notification_email_enabled = kwargs.get('notification_email_enabled', None) + self.notification_email_enabled_for_global_admins = kwargs.get('notification_email_enabled_for_global_admins', None) + self.notification_emails_enabled_for_global_admins = kwargs.get('notification_emails_enabled_for_global_admins', None) + self.notification_emails = kwargs.get('notification_emails', None) + self.original_disabled_state = kwargs.get('original_disabled_state', None) + self.resolved_alerts = kwargs.get('resolved_alerts', None) + self.service_id = kwargs.get('service_id', None) + self.service_name = kwargs.get('service_name', None) + self.signature = kwargs.get('signature', None) + self.simple_properties = kwargs.get('simple_properties', None) + self.tenant_id = kwargs.get('tenant_id', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_paged.py new file mode 100644 index 000000000000..e9b71906ed48 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_paged.py @@ -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 ServicePropertiesPaged(Paged): + """ + A paging container for iterating over a list of :class:`ServiceProperties ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ServiceProperties]'} + } + + def __init__(self, *args, **kwargs): + + super(ServicePropertiesPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_py3.py new file mode 100644 index 000000000000..09deee65fdb6 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_py3.py @@ -0,0 +1,140 @@ +# 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 ServiceProperties(Model): + """The service properties for a given service. + + :param id: The id of the service. + :type id: str + :param active_alerts: The count of alerts that are currently active for + the service. + :type active_alerts: int + :param additional_information: The additional information related to the + service. + :type additional_information: str + :param created_date: The date and time, in UTC, when the service was + onboarded to Azure Active Directory Connect Health. + :type created_date: datetime + :param custom_notification_emails: The list of additional emails that are + configured to recieve notifications about the service. + :type custom_notification_emails: list[str] + :param disabled: Indicates if the service is disabled or not. + :type disabled: bool + :param display_name: The display name of the service. + :type display_name: str + :param health: The health of the service. + :type health: str + :param last_disabled: The date and time, in UTC, when the service was last + disabled. + :type last_disabled: datetime + :param last_updated: The date or time , in UTC, when the service + properties were last updated. + :type last_updated: datetime + :param monitoring_configurations_computed: The monitoring configuration of + the service which determines what activities are monitored by Azure Active + Directory Connect Health. + :type monitoring_configurations_computed: object + :param monitoring_configurations_customized: The customized monitoring + configuration of the service which determines what activities are + monitored by Azure Active Directory Connect Health. + :type monitoring_configurations_customized: object + :param notification_email_enabled: Indicates if email notification is + enabled or not. + :type notification_email_enabled: bool + :param notification_email_enabled_for_global_admins: Indicates if email + notification is enabled for global administrators of the tenant. + :type notification_email_enabled_for_global_admins: bool + :param notification_emails_enabled_for_global_admins: Indicates if email + notification is enabled for global administrators of the tenant. + :type notification_emails_enabled_for_global_admins: bool + :param notification_emails: The list of emails to whom service + notifications will be sent. + :type notification_emails: list[str] + :param original_disabled_state: Gets the original disable state. + :type original_disabled_state: bool + :param resolved_alerts: The total count of alerts that has been resolved + for the service. + :type resolved_alerts: int + :param service_id: The id of the service. + :type service_id: str + :param service_name: The name of the service. + :type service_name: str + :param signature: The signature of the service. + :type signature: str + :param simple_properties: List of service specific configuration + properties. + :type simple_properties: object + :param tenant_id: The id of the tenant to which the service is registered + to. + :type tenant_id: str + :param type: The service type for the services onboarded to Azure Active + Directory Connect Health. Depending on whether the service is monitoring, + ADFS, Sync or ADDS roles, the service type can either be + AdFederationService or AadSyncService or AdDomainService. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, + 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'custom_notification_emails': {'key': 'customNotificationEmails', 'type': '[str]'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'health': {'key': 'health', 'type': 'str'}, + 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'monitoring_configurations_computed': {'key': 'monitoringConfigurationsComputed', 'type': 'object'}, + 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': 'object'}, + 'notification_email_enabled': {'key': 'notificationEmailEnabled', 'type': 'bool'}, + 'notification_email_enabled_for_global_admins': {'key': 'notificationEmailEnabledForGlobalAdmins', 'type': 'bool'}, + 'notification_emails_enabled_for_global_admins': {'key': 'notificationEmailsEnabledForGlobalAdmins', 'type': 'bool'}, + 'notification_emails': {'key': 'notificationEmails', 'type': '[str]'}, + 'original_disabled_state': {'key': 'originalDisabledState', 'type': 'bool'}, + 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'service_name': {'key': 'serviceName', 'type': 'str'}, + 'signature': {'key': 'signature', 'type': 'str'}, + 'simple_properties': {'key': 'simpleProperties', 'type': 'object'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, active_alerts: int=None, additional_information: str=None, created_date=None, custom_notification_emails=None, disabled: bool=None, display_name: str=None, health: str=None, last_disabled=None, last_updated=None, monitoring_configurations_computed=None, monitoring_configurations_customized=None, notification_email_enabled: bool=None, notification_email_enabled_for_global_admins: bool=None, notification_emails_enabled_for_global_admins: bool=None, notification_emails=None, original_disabled_state: bool=None, resolved_alerts: int=None, service_id: str=None, service_name: str=None, signature: str=None, simple_properties=None, tenant_id: str=None, type: str=None, **kwargs) -> None: + super(ServiceProperties, self).__init__(**kwargs) + self.id = id + self.active_alerts = active_alerts + self.additional_information = additional_information + self.created_date = created_date + self.custom_notification_emails = custom_notification_emails + self.disabled = disabled + self.display_name = display_name + self.health = health + self.last_disabled = last_disabled + self.last_updated = last_updated + self.monitoring_configurations_computed = monitoring_configurations_computed + self.monitoring_configurations_customized = monitoring_configurations_customized + self.notification_email_enabled = notification_email_enabled + self.notification_email_enabled_for_global_admins = notification_email_enabled_for_global_admins + self.notification_emails_enabled_for_global_admins = notification_emails_enabled_for_global_admins + self.notification_emails = notification_emails + self.original_disabled_state = original_disabled_state + self.resolved_alerts = resolved_alerts + self.service_id = service_id + self.service_name = service_name + self.signature = signature + self.simple_properties = simple_properties + self.tenant_id = tenant_id + self.type = type diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error.py new file mode 100644 index 000000000000..7f76f6135a35 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error.py @@ -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 TabularExportError(Model): + """The details for export error. + + :param service_id: The service Id. + :type service_id: str + :param service_member_id: The server Id. + :type service_member_id: str + :param merged_entity_id: The merged entity Id. + :type merged_entity_id: str + :param tabular_export_error_data: The export error data. + :type tabular_export_error_data: str + """ + + _attribute_map = { + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'merged_entity_id': {'key': 'mergedEntityId', 'type': 'str'}, + 'tabular_export_error_data': {'key': 'tabularExportErrorData', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TabularExportError, self).__init__(**kwargs) + self.service_id = kwargs.get('service_id', None) + self.service_member_id = kwargs.get('service_member_id', None) + self.merged_entity_id = kwargs.get('merged_entity_id', None) + self.tabular_export_error_data = kwargs.get('tabular_export_error_data', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error_py3.py new file mode 100644 index 000000000000..3b6773d13cfd --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error_py3.py @@ -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 TabularExportError(Model): + """The details for export error. + + :param service_id: The service Id. + :type service_id: str + :param service_member_id: The server Id. + :type service_member_id: str + :param merged_entity_id: The merged entity Id. + :type merged_entity_id: str + :param tabular_export_error_data: The export error data. + :type tabular_export_error_data: str + """ + + _attribute_map = { + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'merged_entity_id': {'key': 'mergedEntityId', 'type': 'str'}, + 'tabular_export_error_data': {'key': 'tabularExportErrorData', 'type': 'str'}, + } + + def __init__(self, *, service_id: str=None, service_member_id: str=None, merged_entity_id: str=None, tabular_export_error_data: str=None, **kwargs) -> None: + super(TabularExportError, self).__init__(**kwargs) + self.service_id = service_id + self.service_member_id = service_member_id + self.merged_entity_id = merged_entity_id + self.tabular_export_error_data = tabular_export_error_data diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py new file mode 100644 index 000000000000..09c5f6608af3 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py @@ -0,0 +1,126 @@ +# 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 Tenant(Model): + """The details of the onboarded tenant. + + :param tenant_id: The Id of the tenant. + :type tenant_id: str + :param aad_license: The Azure Active Directory license of the tenant. + :type aad_license: str + :param aad_premium: Indicate if the tenant has Azure Active Directory + Premium license or not. + :type aad_premium: bool + :param agent_auto_update: Indicates if the tenant is configured to + automatically receive updates for Azure Active Directory Connect Health + client side features. + :type agent_auto_update: bool + :param alert_suppression_time_in_mins: The time in minutues after which an + alert will be autosupressed. + :type alert_suppression_time_in_mins: int + :param consented_to_microsoft_dev_ops: Indicates if the tenant data can be + seen by Microsoft through Azure portal. + :type consented_to_microsoft_dev_ops: bool + :param country_letter_code: The country letter code of the tenant. + :type country_letter_code: str + :param created_date: The date, in UTC, when the tenant was onboarded to + Azure Active Directory Connect Health. + :type created_date: datetime + :param dev_ops_ttl: The date and time, in UTC, till when the tenant data + can be seen by Microsoft through Azure portal. + :type dev_ops_ttl: datetime + :param disabled: Indicates if the tenant is disabled in Azure Active + Directory Connect Health. + :type disabled: bool + :param disabled_reason: The reason due to which the tenant was disabled in + Azure Active Directory Connect Health. + :type disabled_reason: int + :param global_admins_email: The list of golbal administrators for the + tenant. + :type global_admins_email: object + :param initial_domain: The initial domain of the tenant. + :type initial_domain: str + :param last_disabled: The date and time, in UTC, when the tenant was last + disabled in Azure Active Directory Connect Health. + :type last_disabled: datetime + :param last_verified: The date and time, in UTC, when the tenant + onboarding status in Azure Active Directory Connect Health was last + verified. + :type last_verified: datetime + :param onboarding_allowed: Indicates if the tenant is allowed to onboard + to Azure Active Directory Connect Health. + :type onboarding_allowed: bool + :param onboarded: Indicates if the tenant is already onboarded to Azure + Active Directory Connect Health. + :type onboarded: bool + :param pks_certificate: The certificate associated with the tenant to + onboard data to Azure Active Directory Connect Health. + :type pks_certificate: object + :param private_preview_tenant: Indicates if the tenant has signed up for + private preview of Azure Active Directory Connect Health features. + :type private_preview_tenant: bool + :param tenant_in_quarantine: Indicates if data collection for this tenant + is disabled or not. + :type tenant_in_quarantine: bool + :param tenant_name: The name of the tenant. + :type tenant_name: str + """ + + _attribute_map = { + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'aad_license': {'key': 'aadLicense', 'type': 'str'}, + 'aad_premium': {'key': 'aadPremium', 'type': 'bool'}, + 'agent_auto_update': {'key': 'agentAutoUpdate', 'type': 'bool'}, + 'alert_suppression_time_in_mins': {'key': 'alertSuppressionTimeInMins', 'type': 'int'}, + 'consented_to_microsoft_dev_ops': {'key': 'consentedToMicrosoftDevOps', 'type': 'bool'}, + 'country_letter_code': {'key': 'countryLetterCode', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'dev_ops_ttl': {'key': 'devOpsTtl', 'type': 'iso-8601'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'disabled_reason': {'key': 'disabledReason', 'type': 'int'}, + 'global_admins_email': {'key': 'globalAdminsEmail', 'type': 'object'}, + 'initial_domain': {'key': 'initialDomain', 'type': 'str'}, + 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, + 'last_verified': {'key': 'lastVerified', 'type': 'iso-8601'}, + 'onboarding_allowed': {'key': 'onboardingAllowed', 'type': 'bool'}, + 'onboarded': {'key': 'onboarded', 'type': 'bool'}, + 'pks_certificate': {'key': 'pksCertificate', 'type': 'object'}, + 'private_preview_tenant': {'key': 'privatePreviewTenant', 'type': 'bool'}, + 'tenant_in_quarantine': {'key': 'tenantInQuarantine', 'type': 'bool'}, + 'tenant_name': {'key': 'tenantName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Tenant, self).__init__(**kwargs) + self.tenant_id = kwargs.get('tenant_id', None) + self.aad_license = kwargs.get('aad_license', None) + self.aad_premium = kwargs.get('aad_premium', None) + self.agent_auto_update = kwargs.get('agent_auto_update', None) + self.alert_suppression_time_in_mins = kwargs.get('alert_suppression_time_in_mins', None) + self.consented_to_microsoft_dev_ops = kwargs.get('consented_to_microsoft_dev_ops', None) + self.country_letter_code = kwargs.get('country_letter_code', None) + self.created_date = kwargs.get('created_date', None) + self.dev_ops_ttl = kwargs.get('dev_ops_ttl', None) + self.disabled = kwargs.get('disabled', None) + self.disabled_reason = kwargs.get('disabled_reason', None) + self.global_admins_email = kwargs.get('global_admins_email', None) + self.initial_domain = kwargs.get('initial_domain', None) + self.last_disabled = kwargs.get('last_disabled', None) + self.last_verified = kwargs.get('last_verified', None) + self.onboarding_allowed = kwargs.get('onboarding_allowed', None) + self.onboarded = kwargs.get('onboarded', None) + self.pks_certificate = kwargs.get('pks_certificate', None) + self.private_preview_tenant = kwargs.get('private_preview_tenant', None) + self.tenant_in_quarantine = kwargs.get('tenant_in_quarantine', None) + self.tenant_name = kwargs.get('tenant_name', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details.py new file mode 100644 index 000000000000..38d055b74d20 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details.py @@ -0,0 +1,35 @@ +# 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 TenantOnboardingDetails(Model): + """The tenant onboarding details. + + :param tenant_onboarded: Indicates if the tenant is onboarded to Azure + Active Directory Connect Health or not. + :type tenant_onboarded: bool + :param onboarding_display_url: The display url, to help tenant navigate or + onboard to Azure Active Directory Connect Health blade, based on tenant + onboarding status. + :type onboarding_display_url: str + """ + + _attribute_map = { + 'tenant_onboarded': {'key': 'tenantOnboarded', 'type': 'bool'}, + 'onboarding_display_url': {'key': 'onboardingDisplayUrl', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TenantOnboardingDetails, self).__init__(**kwargs) + self.tenant_onboarded = kwargs.get('tenant_onboarded', None) + self.onboarding_display_url = kwargs.get('onboarding_display_url', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details_py3.py new file mode 100644 index 000000000000..29bc35c9422e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details_py3.py @@ -0,0 +1,35 @@ +# 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 TenantOnboardingDetails(Model): + """The tenant onboarding details. + + :param tenant_onboarded: Indicates if the tenant is onboarded to Azure + Active Directory Connect Health or not. + :type tenant_onboarded: bool + :param onboarding_display_url: The display url, to help tenant navigate or + onboard to Azure Active Directory Connect Health blade, based on tenant + onboarding status. + :type onboarding_display_url: str + """ + + _attribute_map = { + 'tenant_onboarded': {'key': 'tenantOnboarded', 'type': 'bool'}, + 'onboarding_display_url': {'key': 'onboardingDisplayUrl', 'type': 'str'}, + } + + def __init__(self, *, tenant_onboarded: bool=None, onboarding_display_url: str=None, **kwargs) -> None: + super(TenantOnboardingDetails, self).__init__(**kwargs) + self.tenant_onboarded = tenant_onboarded + self.onboarding_display_url = onboarding_display_url diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py new file mode 100644 index 000000000000..3cecba14153e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py @@ -0,0 +1,126 @@ +# 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 Tenant(Model): + """The details of the onboarded tenant. + + :param tenant_id: The Id of the tenant. + :type tenant_id: str + :param aad_license: The Azure Active Directory license of the tenant. + :type aad_license: str + :param aad_premium: Indicate if the tenant has Azure Active Directory + Premium license or not. + :type aad_premium: bool + :param agent_auto_update: Indicates if the tenant is configured to + automatically receive updates for Azure Active Directory Connect Health + client side features. + :type agent_auto_update: bool + :param alert_suppression_time_in_mins: The time in minutues after which an + alert will be autosupressed. + :type alert_suppression_time_in_mins: int + :param consented_to_microsoft_dev_ops: Indicates if the tenant data can be + seen by Microsoft through Azure portal. + :type consented_to_microsoft_dev_ops: bool + :param country_letter_code: The country letter code of the tenant. + :type country_letter_code: str + :param created_date: The date, in UTC, when the tenant was onboarded to + Azure Active Directory Connect Health. + :type created_date: datetime + :param dev_ops_ttl: The date and time, in UTC, till when the tenant data + can be seen by Microsoft through Azure portal. + :type dev_ops_ttl: datetime + :param disabled: Indicates if the tenant is disabled in Azure Active + Directory Connect Health. + :type disabled: bool + :param disabled_reason: The reason due to which the tenant was disabled in + Azure Active Directory Connect Health. + :type disabled_reason: int + :param global_admins_email: The list of golbal administrators for the + tenant. + :type global_admins_email: object + :param initial_domain: The initial domain of the tenant. + :type initial_domain: str + :param last_disabled: The date and time, in UTC, when the tenant was last + disabled in Azure Active Directory Connect Health. + :type last_disabled: datetime + :param last_verified: The date and time, in UTC, when the tenant + onboarding status in Azure Active Directory Connect Health was last + verified. + :type last_verified: datetime + :param onboarding_allowed: Indicates if the tenant is allowed to onboard + to Azure Active Directory Connect Health. + :type onboarding_allowed: bool + :param onboarded: Indicates if the tenant is already onboarded to Azure + Active Directory Connect Health. + :type onboarded: bool + :param pks_certificate: The certificate associated with the tenant to + onboard data to Azure Active Directory Connect Health. + :type pks_certificate: object + :param private_preview_tenant: Indicates if the tenant has signed up for + private preview of Azure Active Directory Connect Health features. + :type private_preview_tenant: bool + :param tenant_in_quarantine: Indicates if data collection for this tenant + is disabled or not. + :type tenant_in_quarantine: bool + :param tenant_name: The name of the tenant. + :type tenant_name: str + """ + + _attribute_map = { + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'aad_license': {'key': 'aadLicense', 'type': 'str'}, + 'aad_premium': {'key': 'aadPremium', 'type': 'bool'}, + 'agent_auto_update': {'key': 'agentAutoUpdate', 'type': 'bool'}, + 'alert_suppression_time_in_mins': {'key': 'alertSuppressionTimeInMins', 'type': 'int'}, + 'consented_to_microsoft_dev_ops': {'key': 'consentedToMicrosoftDevOps', 'type': 'bool'}, + 'country_letter_code': {'key': 'countryLetterCode', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'dev_ops_ttl': {'key': 'devOpsTtl', 'type': 'iso-8601'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'disabled_reason': {'key': 'disabledReason', 'type': 'int'}, + 'global_admins_email': {'key': 'globalAdminsEmail', 'type': 'object'}, + 'initial_domain': {'key': 'initialDomain', 'type': 'str'}, + 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, + 'last_verified': {'key': 'lastVerified', 'type': 'iso-8601'}, + 'onboarding_allowed': {'key': 'onboardingAllowed', 'type': 'bool'}, + 'onboarded': {'key': 'onboarded', 'type': 'bool'}, + 'pks_certificate': {'key': 'pksCertificate', 'type': 'object'}, + 'private_preview_tenant': {'key': 'privatePreviewTenant', 'type': 'bool'}, + 'tenant_in_quarantine': {'key': 'tenantInQuarantine', 'type': 'bool'}, + 'tenant_name': {'key': 'tenantName', 'type': 'str'}, + } + + def __init__(self, *, tenant_id: str=None, aad_license: str=None, aad_premium: bool=None, agent_auto_update: bool=None, alert_suppression_time_in_mins: int=None, consented_to_microsoft_dev_ops: bool=None, country_letter_code: str=None, created_date=None, dev_ops_ttl=None, disabled: bool=None, disabled_reason: int=None, global_admins_email=None, initial_domain: str=None, last_disabled=None, last_verified=None, onboarding_allowed: bool=None, onboarded: bool=None, pks_certificate=None, private_preview_tenant: bool=None, tenant_in_quarantine: bool=None, tenant_name: str=None, **kwargs) -> None: + super(Tenant, self).__init__(**kwargs) + self.tenant_id = tenant_id + self.aad_license = aad_license + self.aad_premium = aad_premium + self.agent_auto_update = agent_auto_update + self.alert_suppression_time_in_mins = alert_suppression_time_in_mins + self.consented_to_microsoft_dev_ops = consented_to_microsoft_dev_ops + self.country_letter_code = country_letter_code + self.created_date = created_date + self.dev_ops_ttl = dev_ops_ttl + self.disabled = disabled + self.disabled_reason = disabled_reason + self.global_admins_email = global_admins_email + self.initial_domain = initial_domain + self.last_disabled = last_disabled + self.last_verified = last_verified + self.onboarding_allowed = onboarding_allowed + self.onboarded = onboarded + self.pks_certificate = pks_certificate + self.private_preview_tenant = private_preview_tenant + self.tenant_in_quarantine = tenant_in_quarantine + self.tenant_name = tenant_name diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference.py new file mode 100644 index 000000000000..e745d40d34bb --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference.py @@ -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 UserPreference(Model): + """The user preference for a given feature. + + :param metric_names: The name of the metric. + :type metric_names: list[str] + """ + + _attribute_map = { + 'metric_names': {'key': 'metricNames', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(UserPreference, self).__init__(**kwargs) + self.metric_names = kwargs.get('metric_names', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference_py3.py new file mode 100644 index 000000000000..d438bfe33692 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference_py3.py @@ -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 UserPreference(Model): + """The user preference for a given feature. + + :param metric_names: The name of the metric. + :type metric_names: list[str] + """ + + _attribute_map = { + 'metric_names': {'key': 'metricNames', 'type': '[str]'}, + } + + def __init__(self, *, metric_names=None, **kwargs) -> None: + super(UserPreference, self).__init__(**kwargs) + self.metric_names = metric_names diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta.py new file mode 100644 index 000000000000..56483aeb90b8 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta.py @@ -0,0 +1,34 @@ +# 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 ValueDelta(Model): + """The value of the delta. + + :param operation_type: The operation type. Possible values include: + 'Undefined', 'Add', 'Update', 'Delete' + :type operation_type: str or + ~azure.mgmt.adhybridhealthservice.models.ValueDeltaOperationType + :param value: The value of the delta. + :type value: str + """ + + _attribute_map = { + 'operation_type': {'key': 'operationType', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ValueDelta, self).__init__(**kwargs) + self.operation_type = kwargs.get('operation_type', None) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta_py3.py new file mode 100644 index 000000000000..e2857f6df8c5 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta_py3.py @@ -0,0 +1,34 @@ +# 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 ValueDelta(Model): + """The value of the delta. + + :param operation_type: The operation type. Possible values include: + 'Undefined', 'Add', 'Update', 'Delete' + :type operation_type: str or + ~azure.mgmt.adhybridhealthservice.models.ValueDeltaOperationType + :param value: The value of the delta. + :type value: str + """ + + _attribute_map = { + 'operation_type': {'key': 'operationType', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, operation_type=None, value: str=None, **kwargs) -> None: + super(ValueDelta, self).__init__(**kwargs) + self.operation_type = operation_type + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py new file mode 100644 index 000000000000..4ab28ba65e08 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py @@ -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 .adds_services_operations import AddsServicesOperations +from .alerts_operations import AlertsOperations +from .configuration_operations import ConfigurationOperations +from .dimensions_operations import DimensionsOperations +from .adds_service_members_operations import AddsServiceMembersOperations +from .ad_domain_service_members_operations import AdDomainServiceMembersOperations +from .adds_services_user_preference_operations import AddsServicesUserPreferenceOperations +from .adds_service_operations import AddsServiceOperations +from .adds_services_replication_status_operations import AddsServicesReplicationStatusOperations +from .adds_services_service_members_operations import AddsServicesServiceMembersOperations +from .operations import Operations +from .reports_operations import ReportsOperations +from .services_operations import ServicesOperations +from .service_operations import ServiceOperations +from .service_members_operations import ServiceMembersOperations + +__all__ = [ + 'AddsServicesOperations', + 'AlertsOperations', + 'ConfigurationOperations', + 'DimensionsOperations', + 'AddsServiceMembersOperations', + 'AdDomainServiceMembersOperations', + 'AddsServicesUserPreferenceOperations', + 'AddsServiceOperations', + 'AddsServicesReplicationStatusOperations', + 'AddsServicesServiceMembersOperations', + 'Operations', + 'ReportsOperations', + 'ServicesOperations', + 'ServiceOperations', + 'ServiceMembersOperations', +] diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/ad_domain_service_members_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/ad_domain_service_members_operations.py new file mode 100644 index 000000000000..6e8f968d0023 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/ad_domain_service_members_operations.py @@ -0,0 +1,128 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AdDomainServiceMembersOperations(object): + """AdDomainServiceMembersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar next_partition_key: The next partition key to query for. Constant value: "". + :ivar next_row_key: The next row key to query for. Constant value: "". + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.next_partition_key = "" + self.next_row_key = "" + self.api_version = "2014-01-01" + + self.config = config + + def list( + self, service_name, is_groupby_site, filter=None, query=None, take_count=None, custom_headers=None, raw=False, **operation_config): + """Gets the details of the servers, for a given Active Directory Domain + Service, that are onboarded to Azure Active Directory Connect Health. + + :param service_name: The name of the service. + :type service_name: str + :param is_groupby_site: Indicates if the result should be grouped by + site or not. + :type is_groupby_site: bool + :param filter: The server property filter to apply. + :type filter: str + :param query: The custom query. + :type query: str + :param take_count: The take count , which specifies the number of + elements that can be returned from a sequence. + :type take_count: int + :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 AddsServiceMember + :rtype: + ~azure.mgmt.adhybridhealthservice.models.AddsServiceMemberPaged[~azure.mgmt.adhybridhealthservice.models.AddsServiceMember] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + query_parameters['isGroupbySite'] = self._serialize.query("is_groupby_site", is_groupby_site, 'bool') + if query is not None: + query_parameters['query'] = self._serialize.query("query", query, 'str') + query_parameters['nextPartitionKey'] = self._serialize.query("self.next_partition_key", self.next_partition_key, 'str') + query_parameters['nextRowKey'] = self._serialize.query("self.next_row_key", self.next_row_key, 'str') + if take_count is not None: + query_parameters['takeCount'] = self._serialize.query("take_count", take_count, 'int') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AddsServiceMemberPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AddsServiceMemberPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/addomainservicemembers'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_members_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_members_operations.py new file mode 100644 index 000000000000..63141e5e9b9b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_members_operations.py @@ -0,0 +1,307 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AddsServiceMembersOperations(object): + """AddsServiceMembersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def list( + self, service_name, filter=None, custom_headers=None, raw=False, **operation_config): + """Gets the details of the Active Directory Domain servers, for a given + Active Directory Domain Service, that are onboarded to Azure Active + Directory Connect Health. + + :param service_name: The name of the service. + :type service_name: str + :param filter: The server property filter to apply. + :type filter: 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 AddsServiceMember + :rtype: + ~azure.mgmt.adhybridhealthservice.models.AddsServiceMemberPaged[~azure.mgmt.adhybridhealthservice.models.AddsServiceMember] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AddsServiceMemberPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AddsServiceMemberPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/addsservicemembers'} + + def get( + self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): + """Gets the details of a server, for a given Active Directory Domain + Controller service, that are onboarded to Azure Active Directory + Connect Health Service. + + :param service_name: The name of the service. + :type service_name: str + :param service_member_id: The server Id. + :type service_member_id: 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: ServiceMember or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceMember or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceMember', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}'} + + def delete( + self, service_name, service_member_id, confirm=None, custom_headers=None, raw=False, **operation_config): + """Deletes a Active Directory Domain Controller server that has been + onboarded to Azure Active Directory Connect Health Service. + + :param service_name: The name of the service. + :type service_name: str + :param service_member_id: The server Id. + :type service_member_id: str + :param confirm: Indicates if the server will be permanently deleted or + disabled. True indicates that the server will be permanently deleted + and False indicates that the server will be marked disabled and then + deleted after 30 days, if it is not re-registered. + :type confirm: bool + :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: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if confirm is not None: + query_parameters['confirm'] = self._serialize.query("confirm", confirm, 'bool') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + 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.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}'} + + def list_credentials( + self, service_name, service_member_id, filter=None, custom_headers=None, raw=False, **operation_config): + """Gets the credentials of the server which is needed by the agent to + connect to Azure Active Directory Connect Health Service. + + :param service_name: The name of the service. + :type service_name: str + :param service_member_id: The server Id. + :type service_member_id: str + :param filter: The property filter to apply. + :type filter: 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 Credential + :rtype: + ~azure.mgmt.adhybridhealthservice.models.CredentialPaged[~azure.mgmt.adhybridhealthservice.models.Credential] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_credentials.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.CredentialPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.CredentialPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_credentials.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}/credentials'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_operations.py new file mode 100644 index 000000000000..d02b84357dc5 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_operations.py @@ -0,0 +1,115 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AddsServiceOperations(object): + """AddsServiceOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def get_metrics( + self, service_name, metric_name, group_name, group_key=None, from_date=None, to_date=None, custom_headers=None, raw=False, **operation_config): + """Gets the server related metrics for a given metric and group + combination. + + :param service_name: The name of the service. + :type service_name: str + :param metric_name: The metric name + :type metric_name: str + :param group_name: The group name + :type group_name: str + :param group_key: The group key + :type group_key: str + :param from_date: The start date. + :type from_date: datetime + :param to_date: The end date. + :type to_date: datetime + :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: MetricSets or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricSets or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_metrics.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'metricName': self._serialize.url("metric_name", metric_name, 'str'), + 'groupName': self._serialize.url("group_name", group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if group_key is not None: + query_parameters['groupKey'] = self._serialize.query("group_key", group_key, 'str') + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query("from_date", from_date, 'iso-8601') + if to_date is not None: + query_parameters['toDate'] = self._serialize.query("to_date", to_date, 'iso-8601') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('MetricSets', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_metrics.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py new file mode 100644 index 000000000000..9a75595fbaf1 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py @@ -0,0 +1,1122 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AddsServicesOperations(object): + """AddsServicesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + :ivar next_partition_key: The next partition key to query for. Constant value: "". + :ivar next_row_key: The next row key to query for. Constant value: "". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + self.next_partition_key = "" + self.next_row_key = "" + + self.config = config + + def list( + self, filter=None, service_type=None, skip_count=None, take_count=None, custom_headers=None, raw=False, **operation_config): + """Gets the details of Active Directory Domain Service, for a tenant, that + are onboarded to Azure Active Directory Connect Health. + + :param filter: The service property filter to apply. + :type filter: str + :param service_type: The service type for the services onboarded to + Azure Active Directory Connect Health. Depending on whether the + service is monitoring, ADFS, Sync or ADDS roles, the service type can + either be AdFederationService or AadSyncService or AdDomainService. + :type service_type: str + :param skip_count: The skip count, which specifies the number of + elements that can be bypassed from a sequence and then return the + remaining elements. + :type skip_count: int + :param take_count: The take count , which specifies the number of + elements that can be returned from a sequence. + :type take_count: int + :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 ServiceProperties + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ServicePropertiesPaged[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if service_type is not None: + query_parameters['serviceType'] = self._serialize.query("service_type", service_type, 'str') + if skip_count is not None: + query_parameters['skipCount'] = self._serialize.query("skip_count", skip_count, 'int') + if take_count is not None: + query_parameters['takeCount'] = self._serialize.query("take_count", take_count, 'int') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices'} + + def add( + self, service, custom_headers=None, raw=False, **operation_config): + """Onboards a service for a given tenant in Azure Active Directory Connect + Health. + + :param service: The service object. + :type service: + ~azure.mgmt.adhybridhealthservice.models.ServiceProperties + :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: ServiceProperties or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.add.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(service, 'ServiceProperties') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceProperties', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices'} + + def get( + self, service_name, custom_headers=None, raw=False, **operation_config): + """Gets the details of an Active Directory Domain Service for a tenant + having Azure AD Premium license and is onboarded to Azure Active + Directory Connect Health. + + :param service_name: The name of the service. + :type service_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: ServiceProperties or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceProperties', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} + + def delete( + self, service_name, confirm=None, custom_headers=None, raw=False, **operation_config): + """Deletes an Active Directory Domain Service which is onboarded to Azure + Active Directory Connect Health. + + :param service_name: The name of the service which needs to be + deleted. + :type service_name: str + :param confirm: Indicates if the service will be permanently deleted + or disabled. True indicates that the service will be permanently + deleted and False indicates that the service will be marked disabled + and then deleted after 30 days, if it is not re-registered. + :type confirm: bool + :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: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if confirm is not None: + query_parameters['confirm'] = self._serialize.query("confirm", confirm, 'bool') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + 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.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} + + def update( + self, service_name, service, custom_headers=None, raw=False, **operation_config): + """Updates an Active Directory Domain Service properties of an onboarded + service. + + :param service_name: The name of the service which needs to be + deleted. + :type service_name: str + :param service: The service object. + :type service: + ~azure.mgmt.adhybridhealthservice.models.ServiceProperties + :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: ServiceProperties or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(service, 'ServiceProperties') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceProperties', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} + + def get_forest_summary( + self, service_name, custom_headers=None, raw=False, **operation_config): + """Gets the forest summary for a given Active Directory Domain Service, + that is onboarded to Azure Active Directory Connect Health. + + :param service_name: The name of the service. + :type service_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: ForestSummary or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ForestSummary or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_forest_summary.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ForestSummary', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_forest_summary.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/forestsummary'} + + def list_metrics_average( + self, service_name, metric_name, group_name, custom_headers=None, raw=False, **operation_config): + """Gets the average of the metric values for a given metric and group + combination. + + :param service_name: The name of the service. + :type service_name: str + :param metric_name: The metric name + :type metric_name: str + :param group_name: The group name + :type group_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 Item + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_metrics_average.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'metricName': self._serialize.url("metric_name", metric_name, 'str'), + 'groupName': self._serialize.url("group_name", group_name, '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_metrics_average.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}/average'} + + def list_metrics_sum( + self, service_name, metric_name, group_name, custom_headers=None, raw=False, **operation_config): + """Gets the sum of the metric values for a given metric and group + combination. + + :param service_name: The name of the service. + :type service_name: str + :param metric_name: The metric name + :type metric_name: str + :param group_name: The group name + :type group_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 Item + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_metrics_sum.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'metricName': self._serialize.url("metric_name", metric_name, 'str'), + 'groupName': self._serialize.url("group_name", group_name, '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_metrics_sum.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}/sum'} + + def list_metric_metadata( + self, service_name, filter=None, perf_counter=None, custom_headers=None, raw=False, **operation_config): + """Gets the service related metrics information. + + :param service_name: The name of the service. + :type service_name: str + :param filter: The metric metadata property filter to apply. + :type filter: str + :param perf_counter: Indicates if only performance counter metrics are + requested. + :type perf_counter: bool + :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 MetricMetadata + :rtype: + ~azure.mgmt.adhybridhealthservice.models.MetricMetadataPaged[~azure.mgmt.adhybridhealthservice.models.MetricMetadata] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_metric_metadata.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if perf_counter is not None: + query_parameters['perfCounter'] = self._serialize.query("perf_counter", perf_counter, 'bool') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.MetricMetadataPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.MetricMetadataPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata'} + + def get_metric_metadata( + self, service_name, metric_name, custom_headers=None, raw=False, **operation_config): + """Gets the service related metric information. + + :param service_name: The name of the service. + :type service_name: str + :param metric_name: The metric name + :type metric_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: MetricMetadata or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricMetadata or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_metric_metadata.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'metricName': self._serialize.url("metric_name", metric_name, '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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('MetricMetadata', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}'} + + def get_metric_metadata_for_group( + self, service_name, metric_name, group_name, group_key=None, from_date=None, to_date=None, custom_headers=None, raw=False, **operation_config): + """Gets the service related metrics for a given metric and group + combination. + + :param service_name: The name of the service. + :type service_name: str + :param metric_name: The metric name + :type metric_name: str + :param group_name: The group name + :type group_name: str + :param group_key: The group key + :type group_key: str + :param from_date: The start date. + :type from_date: datetime + :param to_date: The end date. + :type to_date: datetime + :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: MetricSets or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricSets or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_metric_metadata_for_group.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'metricName': self._serialize.url("metric_name", metric_name, 'str'), + 'groupName': self._serialize.url("group_name", group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if group_key is not None: + query_parameters['groupKey'] = self._serialize.query("group_key", group_key, 'str') + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query("from_date", from_date, 'iso-8601') + if to_date is not None: + query_parameters['toDate'] = self._serialize.query("to_date", to_date, 'iso-8601') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('MetricSets', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_metric_metadata_for_group.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} + + def list_replication_details( + self, service_name, filter=None, with_details=None, custom_headers=None, raw=False, **operation_config): + """Gets complete domain controller list along with replication details for + a given Active Directory Domain Service, that is onboarded to Azure + Active Directory Connect Health. + + :param service_name: The name of the service. + :type service_name: str + :param filter: The server property filter to apply. + :type filter: str + :param with_details: Indicates if InboundReplicationNeighbor details + are required or not. + :type with_details: bool + :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 ReplicationSummary + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ReplicationSummaryPaged[~azure.mgmt.adhybridhealthservice.models.ReplicationSummary] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_replication_details.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if with_details is not None: + query_parameters['withDetails'] = self._serialize.query("with_details", with_details, 'bool') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ReplicationSummaryPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ReplicationSummaryPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_replication_details.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationdetails'} + + def list_replication_summary( + self, service_name, is_groupby_site, query, filter=None, take_count=None, custom_headers=None, raw=False, **operation_config): + """Gets complete domain controller list along with replication details for + a given Active Directory Domain Service, that is onboarded to Azure + Active Directory Connect Health. + + :param service_name: The name of the service. + :type service_name: str + :param is_groupby_site: Indicates if the result should be grouped by + site or not. + :type is_groupby_site: bool + :param query: The custom query. + :type query: str + :param filter: The server property filter to apply. + :type filter: str + :param take_count: The take count , which specifies the number of + elements that can be returned from a sequence. + :type take_count: int + :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 ReplicationSummary + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ReplicationSummaryPaged[~azure.mgmt.adhybridhealthservice.models.ReplicationSummary] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_replication_summary.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + query_parameters['isGroupbySite'] = self._serialize.query("is_groupby_site", is_groupby_site, 'bool') + query_parameters['query'] = self._serialize.query("query", query, 'str') + query_parameters['nextPartitionKey'] = self._serialize.query("self.next_partition_key", self.next_partition_key, 'str') + query_parameters['nextRowKey'] = self._serialize.query("self.next_row_key", self.next_row_key, 'str') + if take_count is not None: + query_parameters['takeCount'] = self._serialize.query("take_count", take_count, 'int') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ReplicationSummaryPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ReplicationSummaryPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_replication_summary.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationsummary'} + + def list_server_alerts( + self, service_member_id, service_name, filter=None, state=None, from_parameter=None, to=None, custom_headers=None, raw=False, **operation_config): + """Gets the details of an alert for a given Active Directory Domain + Controller service and server combination. + + :param service_member_id: The server Id for which the alert details + needs to be queried. + :type service_member_id: str + :param service_name: The name of the service. + :type service_name: str + :param filter: The alert property filter to apply. + :type filter: str + :param state: The alert state to query for. + :type state: str + :param from_parameter: The start date to query for. + :type from_parameter: datetime + :param to: The end date till when to query for. + :type to: datetime + :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 Alert + :rtype: + ~azure.mgmt.adhybridhealthservice.models.AlertPaged[~azure.mgmt.adhybridhealthservice.models.Alert] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_server_alerts.metadata['url'] + path_format_arguments = { + 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str'), + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if state is not None: + query_parameters['state'] = self._serialize.query("state", state, 'str') + if from_parameter is not None: + query_parameters['from'] = self._serialize.query("from_parameter", from_parameter, 'iso-8601') + if to is not None: + query_parameters['to'] = self._serialize.query("to", to, 'iso-8601') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AlertPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AlertPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_server_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}/alerts'} + + def list_premium_services( + self, filter=None, service_type=None, skip_count=None, take_count=None, custom_headers=None, raw=False, **operation_config): + """Gets the details of Active Directory Domain Services for a tenant + having Azure AD Premium license and is onboarded to Azure Active + Directory Connect Health. + + :param filter: The service property filter to apply. + :type filter: str + :param service_type: The service type for the services onboarded to + Azure Active Directory Connect Health. Depending on whether the + service is monitoring, ADFS, Sync or ADDS roles, the service type can + either be AdFederationService or AadSyncService or AdDomainService. + :type service_type: str + :param skip_count: The skip count, which specifies the number of + elements that can be bypassed from a sequence and then return the + remaining elements. + :type skip_count: int + :param take_count: The take count , which specifies the number of + elements that can be returned from a sequence. + :type take_count: int + :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 ServiceProperties + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ServicePropertiesPaged[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_premium_services.metadata['url'] + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if service_type is not None: + query_parameters['serviceType'] = self._serialize.query("service_type", service_type, 'str') + if skip_count is not None: + query_parameters['skipCount'] = self._serialize.query("skip_count", skip_count, 'int') + if take_count is not None: + query_parameters['takeCount'] = self._serialize.query("take_count", take_count, 'int') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_premium_services.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/premiumCheck'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_replication_status_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_replication_status_operations.py new file mode 100644 index 000000000000..e802458db673 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_replication_status_operations.py @@ -0,0 +1,97 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AddsServicesReplicationStatusOperations(object): + """AddsServicesReplicationStatusOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def get( + self, service_name, custom_headers=None, raw=False, **operation_config): + """Gets Replication status for a given Active Directory Domain Service, + that is onboarded to Azure Active Directory Connect Health. + + :param service_name: The name of the service. + :type service_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: ReplicationStatus or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ReplicationStatus or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ReplicationStatus', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationstatus'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_service_members_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_service_members_operations.py new file mode 100644 index 000000000000..ed072c481d5c --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_service_members_operations.py @@ -0,0 +1,185 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AddsServicesServiceMembersOperations(object): + """AddsServicesServiceMembersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def list( + self, service_name, filter=None, dimension_type=None, dimension_signature=None, custom_headers=None, raw=False, **operation_config): + """Gets the details of the servers, for a given Active Directory Domain + Controller service, that are onboarded to Azure Active Directory + Connect Health Service. + + :param service_name: The name of the service. + :type service_name: str + :param filter: The server property filter to apply. + :type filter: str + :param dimension_type: The server specific dimension. + :type dimension_type: str + :param dimension_signature: The value of the dimension. + :type dimension_signature: 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 ServiceMember + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ServiceMemberPaged[~azure.mgmt.adhybridhealthservice.models.ServiceMember] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if dimension_type is not None: + query_parameters['dimensionType'] = self._serialize.query("dimension_type", dimension_type, 'str') + if dimension_signature is not None: + query_parameters['dimensionSignature'] = self._serialize.query("dimension_signature", dimension_signature, 'str') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ServiceMemberPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServiceMemberPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers'} + + def add( + self, service_name, service_member, custom_headers=None, raw=False, **operation_config): + """Onboards a server, for a given Active Directory Domain Controller + service, to Azure Active Directory Connect Health Service. + + :param service_name: The name of the service under which the server is + to be onboarded. + :type service_name: str + :param service_member: The server object. + :type service_member: + ~azure.mgmt.adhybridhealthservice.models.ServiceMember + :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: ServiceMember or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceMember or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.add.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(service_member, 'ServiceMember') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceMember', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_user_preference_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_user_preference_operations.py new file mode 100644 index 000000000000..c04b247bb5ce --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_user_preference_operations.py @@ -0,0 +1,211 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AddsServicesUserPreferenceOperations(object): + """AddsServicesUserPreferenceOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def get( + self, service_name, feature_name, custom_headers=None, raw=False, **operation_config): + """Gets the user preferences for a given feature. + + :param service_name: The name of the service. + :type service_name: str + :param feature_name: The name of the feature. + :type feature_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: UserPreference or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.UserPreference or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'featureName': self._serialize.url("feature_name", feature_name, '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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('UserPreference', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference'} + + def delete( + self, service_name, feature_name, custom_headers=None, raw=False, **operation_config): + """Deletes the user preferences for a given feature. + + :param service_name: The name of the service. + :type service_name: str + :param feature_name: The name of the feature. + :type feature_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: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'featureName': self._serialize.url("feature_name", feature_name, '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') + + # Construct headers + header_parameters = {} + 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.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference'} + + def add( + self, service_name, feature_name, metric_names=None, custom_headers=None, raw=False, **operation_config): + """Adds the user preferences for a given feature. + + :param service_name: The name of the service. + :type service_name: str + :param feature_name: The name of the feature. + :type feature_name: str + :param metric_names: The name of the metric. + :type metric_names: list[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: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + setting = models.UserPreference(metric_names=metric_names) + + # Construct URL + url = self.add.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'featureName': self._serialize.url("feature_name", feature_name, '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') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(setting, 'UserPreference') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/alerts_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/alerts_operations.py new file mode 100644 index 000000000000..05b5bf8d280e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/alerts_operations.py @@ -0,0 +1,120 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AlertsOperations(object): + """AlertsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def list_adds_alerts( + self, service_name, filter=None, state=None, from_parameter=None, to=None, custom_headers=None, raw=False, **operation_config): + """Gets the alerts for a given Active Directory Domain Service. + + :param service_name: The name of the service. + :type service_name: str + :param filter: The alert property filter to apply. + :type filter: str + :param state: The alert state to query for. + :type state: str + :param from_parameter: The start date to query for. + :type from_parameter: datetime + :param to: The end date till when to query for. + :type to: datetime + :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 Alert + :rtype: + ~azure.mgmt.adhybridhealthservice.models.AlertPaged[~azure.mgmt.adhybridhealthservice.models.Alert] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_adds_alerts.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if state is not None: + query_parameters['state'] = self._serialize.query("state", state, 'str') + if from_parameter is not None: + query_parameters['from'] = self._serialize.query("from_parameter", from_parameter, 'iso-8601') + if to is not None: + query_parameters['to'] = self._serialize.query("to", to, 'iso-8601') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AlertPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AlertPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_adds_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/alerts'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py new file mode 100644 index 000000000000..5d9a53fb6376 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py @@ -0,0 +1,272 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ConfigurationOperations(object): + """ConfigurationOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def list_adds_configurations( + self, service_name, grouping=None, custom_headers=None, raw=False, **operation_config): + """Gets the service configurations. + + :param service_name: The name of the service. + :type service_name: str + :param grouping: The grouping for configurations. + :type grouping: 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 Item + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_adds_configurations.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if grouping is not None: + query_parameters['grouping'] = self._serialize.query("grouping", grouping, '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_adds_configurations.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/configuration'} + + def add( + self, custom_headers=None, raw=False, **operation_config): + """Onboards a tenant in Azure Active Directory Connect Health. + + :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: Tenant or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Tenant or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.add.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # 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.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Tenant', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} + + def get( + self, custom_headers=None, raw=False, **operation_config): + """Gets the details of a tenant onboarded to Azure Active Directory + Connect Health. + + :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: Tenant or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Tenant or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Tenant', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} + + def update( + self, tenant, custom_headers=None, raw=False, **operation_config): + """Updates tenant properties for tenants onboarded to Azure Active + Directory Connect Health. + + :param tenant: The tenant object with the properties set to the + updated value. + :type tenant: ~azure.mgmt.adhybridhealthservice.models.Tenant + :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: Tenant or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Tenant or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.update.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(tenant, 'Tenant') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Tenant', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/dimensions_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/dimensions_operations.py new file mode 100644 index 000000000000..84e6ccda02ad --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/dimensions_operations.py @@ -0,0 +1,107 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class DimensionsOperations(object): + """DimensionsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def list_adds_dimensions( + self, service_name, dimension, custom_headers=None, raw=False, **operation_config): + """Gets the dimensions for a given dimension type in a server. + + :param service_name: The name of the service. + :type service_name: str + :param dimension: The dimension type. + :type dimension: 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 Dimension + :rtype: + ~azure.mgmt.adhybridhealthservice.models.DimensionPaged[~azure.mgmt.adhybridhealthservice.models.Dimension] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_adds_dimensions.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'dimension': self._serialize.url("dimension", dimension, '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.DimensionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.DimensionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_adds_dimensions.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/dimensions/{dimension}'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py new file mode 100644 index 000000000000..95d2f314289c --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py @@ -0,0 +1,98 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class Operations(object): + """Operations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists the available Azure Data Factory API operations. + + :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 Operation + :rtype: + ~azure.mgmt.adhybridhealthservice.models.OperationPaged[~azure.mgmt.adhybridhealthservice.models.Operation] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/operations'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/reports_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/reports_operations.py new file mode 100644 index 000000000000..d4f8af6e9411 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/reports_operations.py @@ -0,0 +1,90 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ReportsOperations(object): + """ReportsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def get_dev_ops( + self, custom_headers=None, raw=False, **operation_config): + """Checks if the user is enabled for Dev Ops access. + + :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: Result or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Result or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_dev_ops.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Result', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_dev_ops.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/reports/DevOps/IsDevOps'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py new file mode 100644 index 000000000000..48892cf0c5d5 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py @@ -0,0 +1,938 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ServiceMembersOperations(object): + """ServiceMembersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def list( + self, service_name, filter=None, dimension_type=None, dimension_signature=None, custom_headers=None, raw=False, **operation_config): + """Gets the details of the servers, for a given service, that are + onboarded to Azure Active Directory Connect Health Service. + + :param service_name: The name of the service. + :type service_name: str + :param filter: The server property filter to apply. + :type filter: str + :param dimension_type: The server specific dimension. + :type dimension_type: str + :param dimension_signature: The value of the dimension. + :type dimension_signature: 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 ServiceMember + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ServiceMemberPaged[~azure.mgmt.adhybridhealthservice.models.ServiceMember] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if dimension_type is not None: + query_parameters['dimensionType'] = self._serialize.query("dimension_type", dimension_type, 'str') + if dimension_signature is not None: + query_parameters['dimensionSignature'] = self._serialize.query("dimension_signature", dimension_signature, 'str') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ServiceMemberPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServiceMemberPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers'} + + def add( + self, service_name, service_member, custom_headers=None, raw=False, **operation_config): + """Onboards a server, for a given service, to Azure Active Directory + Connect Health Service. + + :param service_name: The name of the service under which the server is + to be onboarded. + :type service_name: str + :param service_member: The server object. + :type service_member: + ~azure.mgmt.adhybridhealthservice.models.ServiceMember + :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: ServiceMember or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceMember or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.add.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(service_member, 'ServiceMember') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceMember', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers'} + + def get( + self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): + """Gets the details of a server, for a given service, that are onboarded + to Azure Active Directory Connect Health Service. + + :param service_name: The name of the service. + :type service_name: str + :param service_member_id: The server Id. + :type service_member_id: 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: ServiceMember or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceMember or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceMember', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}'} + + def delete( + self, service_name, service_member_id, confirm=None, custom_headers=None, raw=False, **operation_config): + """Deletes a server that has been onboarded to Azure Active Directory + Connect Health Service. + + :param service_name: The name of the service. + :type service_name: str + :param service_member_id: The server Id. + :type service_member_id: str + :param confirm: Indicates if the server will be permanently deleted or + disabled. True indicates that the server will be permanently deleted + and False indicates that the server will be marked disabled and then + deleted after 30 days, if it is not re-registered. + :type confirm: bool + :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: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if confirm is not None: + query_parameters['confirm'] = self._serialize.query("confirm", confirm, 'bool') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + 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.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}'} + + def list_alerts( + self, service_member_id, service_name, filter=None, state=None, from_parameter=None, to=None, custom_headers=None, raw=False, **operation_config): + """Gets the details of an alert for a given service and server + combination. + + :param service_member_id: The server Id for which the laert details + needs to be queried. + :type service_member_id: str + :param service_name: The name of the service. + :type service_name: str + :param filter: The alert property filter to apply. + :type filter: str + :param state: The alert state to query for. + :type state: str + :param from_parameter: The start date to query for. + :type from_parameter: datetime + :param to: The end date till when to query for. + :type to: datetime + :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 Alert + :rtype: + ~azure.mgmt.adhybridhealthservice.models.AlertPaged[~azure.mgmt.adhybridhealthservice.models.Alert] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_alerts.metadata['url'] + path_format_arguments = { + 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str'), + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if state is not None: + query_parameters['state'] = self._serialize.query("state", state, 'str') + if from_parameter is not None: + query_parameters['from'] = self._serialize.query("from_parameter", from_parameter, 'iso-8601') + if to is not None: + query_parameters['to'] = self._serialize.query("to", to, 'iso-8601') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AlertPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AlertPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/alerts'} + + def list_connectors( + self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): + """Gets the connector details for a service. + + :param service_name: The name of the service. + :type service_name: str + :param service_member_id: The server Id. + :type service_member_id: 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 Connector + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ConnectorPaged[~azure.mgmt.adhybridhealthservice.models.Connector] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_connectors.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ConnectorPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ConnectorPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_connectors.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/service/{serviceName}/servicemembers/{serviceMemberId}/connectors'} + + def list_credentials( + self, service_name, service_member_id, filter=None, custom_headers=None, raw=False, **operation_config): + """Gets the credentials of the server which is needed by the agent to + connect to Azure Active Directory Connect Health Service. + + :param service_name: The name of the service. + :type service_name: str + :param service_member_id: The server Id. + :type service_member_id: str + :param filter: The property filter to apply. + :type filter: 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 Credential + :rtype: + ~azure.mgmt.adhybridhealthservice.models.CredentialPaged[~azure.mgmt.adhybridhealthservice.models.Credential] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_credentials.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.CredentialPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.CredentialPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_credentials.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/credentials'} + + def delete_data( + self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): + """Deletes the data uploaded by the server to Azure Active Directory + Connect Health Service. + + :param service_name: The name of the service. + :type service_name: str + :param service_member_id: The server Id. + :type service_member_id: 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: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.delete_data.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_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') + + # Construct headers + header_parameters = {} + 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.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete_data.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/data'} + + def list_data_freshness( + self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): + """Gets the last time when the server uploaded data to Azure Active + Directory Connect Health Service. + + :param service_name: The name of the service. + :type service_name: str + :param service_member_id: The server Id. + :type service_member_id: 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 Item + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_data_freshness.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_data_freshness.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/datafreshness'} + + def list_export_status( + self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): + """Gets the export status. + + :param service_name: The name of the service. + :type service_name: str + :param service_member_id: The server Id. + :type service_member_id: 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 ExportStatus + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ExportStatusPaged[~azure.mgmt.adhybridhealthservice.models.ExportStatus] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_export_status.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExportStatusPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExportStatusPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_export_status.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/exportstatus'} + + def list_global_configuration( + self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): + """Gets the global configuration. + + :param service_name: The name of the service. + :type service_name: str + :param service_member_id: The server id. + :type service_member_id: 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 GlobalConfiguration + :rtype: + ~azure.mgmt.adhybridhealthservice.models.GlobalConfigurationPaged[~azure.mgmt.adhybridhealthservice.models.GlobalConfiguration] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_global_configuration.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.GlobalConfigurationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.GlobalConfigurationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_global_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/globalconfiguration'} + + def get_metrics( + self, service_name, metric_name, group_name, service_member_id, group_key=None, from_date=None, to_date=None, custom_headers=None, raw=False, **operation_config): + """Gets the server related metrics for a given metric and group + combination. + + :param service_name: The name of the service. + :type service_name: str + :param metric_name: The metric name + :type metric_name: str + :param group_name: The group name + :type group_name: str + :param service_member_id: The server id. + :type service_member_id: str + :param group_key: The group key + :type group_key: str + :param from_date: The start date. + :type from_date: datetime + :param to_date: The end date. + :type to_date: datetime + :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: MetricSets or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricSets or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_metrics.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'metricName': self._serialize.url("metric_name", metric_name, 'str'), + 'groupName': self._serialize.url("group_name", group_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if group_key is not None: + query_parameters['groupKey'] = self._serialize.query("group_key", group_key, 'str') + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query("from_date", from_date, 'iso-8601') + if to_date is not None: + query_parameters['toDate'] = self._serialize.query("to_date", to_date, 'iso-8601') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('MetricSets', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_metrics.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/metrics/{metricName}/groups/{groupName}'} + + def get_service_configuration( + self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): + """Gets the service configuration. + + :param service_name: The name of the service. + :type service_name: str + :param service_member_id: The server Id. + :type service_member_id: 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: ServiceConfiguration or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceConfiguration + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_service_configuration.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'serviceMemberId': self._serialize.url("service_member_id", service_member_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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_service_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/serviceconfiguration'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_operations.py new file mode 100644 index 000000000000..d89bdf1f1bf6 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_operations.py @@ -0,0 +1,115 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ServiceOperations(object): + """ServiceOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def get_metrics( + self, service_name, metric_name, group_name, group_key=None, from_date=None, to_date=None, custom_headers=None, raw=False, **operation_config): + """Gets the server related metrics for a given metric and group + combination. + + :param service_name: The name of the service. + :type service_name: str + :param metric_name: The metric name + :type metric_name: str + :param group_name: The group name + :type group_name: str + :param group_key: The group key + :type group_key: str + :param from_date: The start date. + :type from_date: datetime + :param to_date: The end date. + :type to_date: datetime + :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: MetricSets or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricSets or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_metrics.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'metricName': self._serialize.url("metric_name", metric_name, 'str'), + 'groupName': self._serialize.url("group_name", group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if group_key is not None: + query_parameters['groupKey'] = self._serialize.query("group_key", group_key, 'str') + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query("from_date", from_date, 'iso-8601') + if to_date is not None: + query_parameters['toDate'] = self._serialize.query("to_date", to_date, 'iso-8601') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('MetricSets', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_metrics.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py new file mode 100644 index 000000000000..d1afdea4f643 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py @@ -0,0 +1,1542 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ServicesOperations(object): + """ServicesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2014-01-01" + + self.config = config + + def list( + self, filter=None, service_type=None, skip_count=None, take_count=None, custom_headers=None, raw=False, **operation_config): + """Gets the details of services, for a tenant, that are onboarded to Azure + Active Directory Connect Health. + + :param filter: The service property filter to apply. + :type filter: str + :param service_type: The service type for the services onboarded to + Azure Active Directory Connect Health. Depending on whether the + service is monitoring, ADFS, Sync or ADDS roles, the service type can + either be AdFederationService or AadSyncService or AdDomainService. + :type service_type: str + :param skip_count: The skip count, which specifies the number of + elements that can be bypassed from a sequence and then return the + remaining elements. + :type skip_count: int + :param take_count: The take count , which specifies the number of + elements that can be returned from a sequence. + :type take_count: int + :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 ServiceProperties + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ServicePropertiesPaged[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if service_type is not None: + query_parameters['serviceType'] = self._serialize.query("service_type", service_type, 'str') + if skip_count is not None: + query_parameters['skipCount'] = self._serialize.query("skip_count", skip_count, 'int') + if take_count is not None: + query_parameters['takeCount'] = self._serialize.query("take_count", take_count, 'int') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services'} + + def add( + self, service, custom_headers=None, raw=False, **operation_config): + """Onboards a service for a given tenant in Azure Active Directory Connect + Health. + + :param service: The service object. + :type service: + ~azure.mgmt.adhybridhealthservice.models.ServiceProperties + :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: ServiceProperties or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.add.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(service, 'ServiceProperties') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceProperties', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services'} + + def list_premium( + self, filter=None, service_type=None, skip_count=None, take_count=None, custom_headers=None, raw=False, **operation_config): + """Gets the details of services for a tenant having Azure AD Premium + license and is onboarded to Azure Active Directory Connect Health. + + :param filter: The service property filter to apply. + :type filter: str + :param service_type: The service type for the services onboarded to + Azure Active Directory Connect Health. Depending on whether the + service is monitoring, ADFS, Sync or ADDS roles, the service type can + either be AdFederationService or AadSyncService or AdDomainService. + :type service_type: str + :param skip_count: The skip count, which specifies the number of + elements that can be bypassed from a sequence and then return the + remaining elements. + :type skip_count: int + :param take_count: The take count , which specifies the number of + elements that can be returned from a sequence. + :type take_count: int + :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 ServiceProperties + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ServicePropertiesPaged[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_premium.metadata['url'] + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if service_type is not None: + query_parameters['serviceType'] = self._serialize.query("service_type", service_type, 'str') + if skip_count is not None: + query_parameters['skipCount'] = self._serialize.query("skip_count", skip_count, 'int') + if take_count is not None: + query_parameters['takeCount'] = self._serialize.query("take_count", take_count, 'int') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_premium.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/premiumCheck'} + + def get( + self, service_name, custom_headers=None, raw=False, **operation_config): + """Gets the details of a service for a tenant having Azure AD Premium + license and is onboarded to Azure Active Directory Connect Health. + + :param service_name: The name of the service. + :type service_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: ServiceProperties or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceProperties', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} + + def delete( + self, service_name, confirm=None, custom_headers=None, raw=False, **operation_config): + """Deletes a service which is onboarded to Azure Active Directory Connect + Health. + + :param service_name: The name of the service which needs to be + deleted. + :type service_name: str + :param confirm: Indicates if the service will be permanently deleted + or disabled. True indicates that the service will be permanently + deleted and False indicates that the service will be marked disabled + and then deleted after 30 days, if it is not re-registered. + :type confirm: bool + :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: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if confirm is not None: + query_parameters['confirm'] = self._serialize.query("confirm", confirm, 'bool') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + 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.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} + + def update( + self, service_name, service, custom_headers=None, raw=False, **operation_config): + """Updates the service properties of an onboarded service. + + :param service_name: The name of the service which needs to be + deleted. + :type service_name: str + :param service: The service object. + :type service: + ~azure.mgmt.adhybridhealthservice.models.ServiceProperties + :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: ServiceProperties or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(service, 'ServiceProperties') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceProperties', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} + + def list_alerts( + self, service_name, filter=None, state=None, from_parameter=None, to=None, custom_headers=None, raw=False, **operation_config): + """Gets the alerts for a given service. + + :param service_name: The name of the service. + :type service_name: str + :param filter: The alert property filter to apply. + :type filter: str + :param state: The alert state to query for. + :type state: str + :param from_parameter: The start date to query for. + :type from_parameter: datetime + :param to: The end date till when to query for. + :type to: datetime + :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 Alert + :rtype: + ~azure.mgmt.adhybridhealthservice.models.AlertPaged[~azure.mgmt.adhybridhealthservice.models.Alert] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_alerts.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if state is not None: + query_parameters['state'] = self._serialize.query("state", state, 'str') + if from_parameter is not None: + query_parameters['from'] = self._serialize.query("from_parameter", from_parameter, 'iso-8601') + if to is not None: + query_parameters['to'] = self._serialize.query("to", to, 'iso-8601') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AlertPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AlertPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/alerts'} + + def get_feature_availibility( + self, service_name, feature_name, custom_headers=None, raw=False, **operation_config): + """Checks if the service has all the pre-requisites met to use a feature. + + :param service_name: The name of the service. + :type service_name: str + :param feature_name: The name of the feature. + :type feature_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: Result or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Result or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_feature_availibility.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'featureName': self._serialize.url("feature_name", feature_name, '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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Result', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_feature_availibility.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/checkServiceFeatureAvailibility/{featureName}'} + + def list_export_errors( + self, service_name, custom_headers=None, raw=False, **operation_config): + """Gets the count of latest AAD export errors. + + :param service_name: The name of the service. + :type service_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 ErrorCount + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ErrorCountPaged[~azure.mgmt.adhybridhealthservice.models.ErrorCount] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_export_errors.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ErrorCountPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ErrorCountPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_export_errors.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exporterrors/counts'} + + def list_export_errors_v2( + self, service_name, error_bucket, custom_headers=None, raw=False, **operation_config): + """Gets the categorized export errors. + + :param service_name: The name of the service. + :type service_name: str + :param error_bucket: The error category to query for. + :type error_bucket: 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 MergedExportError + :rtype: + ~azure.mgmt.adhybridhealthservice.models.MergedExportErrorPaged[~azure.mgmt.adhybridhealthservice.models.MergedExportError] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_export_errors_v2.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['errorBucket'] = self._serialize.query("error_bucket", error_bucket, 'str') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.MergedExportErrorPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.MergedExportErrorPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_export_errors_v2.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exporterrors/listV2'} + + def list_export_status( + self, service_name, custom_headers=None, raw=False, **operation_config): + """Gets the export status. + + :param service_name: The name of the service. + :type service_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 ExportStatus + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ExportStatusPaged[~azure.mgmt.adhybridhealthservice.models.ExportStatus] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_export_status.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExportStatusPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExportStatusPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_export_status.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exportstatus'} + + def add_alert_feedback( + self, service_name, alert_feedback, custom_headers=None, raw=False, **operation_config): + """Adds an alert feedback submitted by customer. + + :param service_name: The name of the service. + :type service_name: str + :param alert_feedback: The alert feedback. + :type alert_feedback: + ~azure.mgmt.adhybridhealthservice.models.AlertFeedback + :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: AlertFeedback or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.AlertFeedback or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.add_alert_feedback.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(alert_feedback, 'AlertFeedback') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('AlertFeedback', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + add_alert_feedback.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/feedbacktype/alerts/feedback'} + + def list_alert_feedback( + self, service_name, short_name, custom_headers=None, raw=False, **operation_config): + """Gets a list of all alert feedback for a given tenant and alert type. + + :param service_name: The name of the service. + :type service_name: str + :param short_name: The name of the alert. + :type short_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 AlertFeedback + :rtype: + ~azure.mgmt.adhybridhealthservice.models.AlertFeedbackPaged[~azure.mgmt.adhybridhealthservice.models.AlertFeedback] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_alert_feedback.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'shortName': self._serialize.url("short_name", short_name, '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AlertFeedbackPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AlertFeedbackPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_alert_feedback.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/feedbacktype/alerts/{shortName}/alertfeedback'} + + def list_metrics_average( + self, service_name, metric_name, group_name, custom_headers=None, raw=False, **operation_config): + """Gets the average of the metric values for a given metric and group + combination. + + :param service_name: The name of the service. + :type service_name: str + :param metric_name: The metric name + :type metric_name: str + :param group_name: The group name + :type group_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 Item + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_metrics_average.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'metricName': self._serialize.url("metric_name", metric_name, 'str'), + 'groupName': self._serialize.url("group_name", group_name, '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_metrics_average.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}/average'} + + def list_metrics_sum( + self, service_name, metric_name, group_name, custom_headers=None, raw=False, **operation_config): + """Gets the sum of the metric values for a given metric and group + combination. + + :param service_name: The name of the service. + :type service_name: str + :param metric_name: The metric name + :type metric_name: str + :param group_name: The group name + :type group_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 Item + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_metrics_sum.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'metricName': self._serialize.url("metric_name", metric_name, 'str'), + 'groupName': self._serialize.url("group_name", group_name, '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_metrics_sum.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}/sum'} + + def list_metric_metadata( + self, service_name, filter=None, perf_counter=None, custom_headers=None, raw=False, **operation_config): + """Gets the service related metrics information. + + :param service_name: The name of the service. + :type service_name: str + :param filter: The metric metadata property filter to apply. + :type filter: str + :param perf_counter: Indicates if only performance counter metrics are + requested. + :type perf_counter: bool + :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 MetricMetadata + :rtype: + ~azure.mgmt.adhybridhealthservice.models.MetricMetadataPaged[~azure.mgmt.adhybridhealthservice.models.MetricMetadata] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_metric_metadata.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if perf_counter is not None: + query_parameters['perfCounter'] = self._serialize.query("perf_counter", perf_counter, 'bool') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.MetricMetadataPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.MetricMetadataPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata'} + + def get_metric_metadata( + self, service_name, metric_name, custom_headers=None, raw=False, **operation_config): + """Gets the service related metrics information. + + :param service_name: The name of the service. + :type service_name: str + :param metric_name: The metric name + :type metric_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: MetricMetadata or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricMetadata or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_metric_metadata.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'metricName': self._serialize.url("metric_name", metric_name, '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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('MetricMetadata', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata/{metricName}'} + + def get_metric_metadata_for_group( + self, service_name, metric_name, group_name, group_key=None, from_date=None, to_date=None, custom_headers=None, raw=False, **operation_config): + """Gets the service related metrics for a given metric and group + combination. + + :param service_name: The name of the service. + :type service_name: str + :param metric_name: The metric name + :type metric_name: str + :param group_name: The group name + :type group_name: str + :param group_key: The group key + :type group_key: str + :param from_date: The start date. + :type from_date: datetime + :param to_date: The end date. + :type to_date: datetime + :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: MetricSets or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricSets or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_metric_metadata_for_group.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'metricName': self._serialize.url("metric_name", metric_name, 'str'), + 'groupName': self._serialize.url("group_name", group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if group_key is not None: + query_parameters['groupKey'] = self._serialize.query("group_key", group_key, 'str') + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query("from_date", from_date, 'iso-8601') + if to_date is not None: + query_parameters['toDate'] = self._serialize.query("to_date", to_date, 'iso-8601') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('MetricSets', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_metric_metadata_for_group.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} + + def update_monitoring_configuration( + self, service_name, key=None, value=None, custom_headers=None, raw=False, **operation_config): + """Updates the service level monitoring configuration. + + :param service_name: The name of the service. + :type service_name: str + :param key: The key for the property. + :type key: str + :param value: The value for the key. + :type value: 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: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + configuration_setting = models.Item(key=key, value=value) + + # Construct URL + url = self.update_monitoring_configuration.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(configuration_setting, 'Item') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + update_monitoring_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/monitoringconfiguration'} + + def list_monitoring_configurations( + self, service_name, custom_headers=None, raw=False, **operation_config): + """Gets the service level monitoring configurations. + + :param service_name: The name of the service. + :type service_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 Item + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_monitoring_configurations.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, '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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_monitoring_configurations.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/monitoringconfigurations'} + + def list_user_bad_password_report( + self, service_name, data_source=None, custom_headers=None, raw=False, **operation_config): + """Gets the bad password login attempt report for an user. + + :param service_name: The name of the service. + :type service_name: str + :param data_source: The source of data, if its test data or customer + data. + :type data_source: 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 ErrorReportUsersEntry + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntryPaged[~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntry] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_user_bad_password_report.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if data_source is not None: + query_parameters['dataSource'] = self._serialize.query("data_source", data_source, 'str') + 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ErrorReportUsersEntryPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ErrorReportUsersEntryPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_user_bad_password_report.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/reports/badpassword/details/user'} + + def get_tenant_whitelisting( + self, service_name, feature_name, custom_headers=None, raw=False, **operation_config): + """Checks if the tenant, to which a service is registered, is whitelisted + to use a feature. + + :param service_name: The name of the service. + :type service_name: str + :param feature_name: The name of the feature. + :type feature_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: Result or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Result or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_tenant_whitelisting.metadata['url'] + path_format_arguments = { + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'featureName': self._serialize.url("feature_name", feature_name, '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') + + # 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Result', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_tenant_whitelisting.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/TenantWhitelisting/{featureName}'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/version.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/version.py new file mode 100644 index 000000000000..44e69c49c178 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/version.py @@ -0,0 +1,13 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "1.0.1" + diff --git a/azure-mgmt-adhybridhealthservice/sdk_packaging.toml b/azure-mgmt-adhybridhealthservice/sdk_packaging.toml new file mode 100644 index 000000000000..7bc55d716531 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/sdk_packaging.toml @@ -0,0 +1,7 @@ +[packaging] +package_name = "azure-mgmt-adhybridhealthservice" +package_nspkg = "azure-mgmt-nspkg" +package_pprint_name = "MyService Management" +package_doc_id = "" +is_stable = false +is_arm = true diff --git a/azure-mgmt-adhybridhealthservice/setup.cfg b/azure-mgmt-adhybridhealthservice/setup.cfg new file mode 100644 index 000000000000..3c6e79cf31da --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 diff --git a/azure-mgmt-adhybridhealthservice/setup.py b/azure-mgmt-adhybridhealthservice/setup.py new file mode 100644 index 000000000000..677a7c072f87 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/setup.py @@ -0,0 +1,87 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +#-------------------------------------------------------------------------- + +import re +import os.path +from io import open +from setuptools import find_packages, setup + +# Change the PACKAGE_NAME only to change folder and different name +PACKAGE_NAME = "azure-mgmt-adhybridhealthservice" +PACKAGE_PPRINT_NAME = "MyService Management" + +# a-b-c => a/b/c +package_folder_path = PACKAGE_NAME.replace('-', '/') +# a-b-c => a.b.c +namespace_name = PACKAGE_NAME.replace('-', '.') + +# azure v0.x is not compatible with this package +# azure v0.x used to have a __version__ attribute (newer versions don't) +try: + import azure + try: + ver = azure.__version__ + raise Exception( + 'This package is incompatible with azure=={}. '.format(ver) + + 'Uninstall it with "pip uninstall azure".' + ) + except AttributeError: + pass +except ImportError: + pass + +# Version extraction inspired from 'requests' +with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: + version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', + fd.read(), re.MULTILINE).group(1) + +if not version: + raise RuntimeError('Cannot find version information') + +with open('README.rst', encoding='utf-8') as f: + readme = f.read() +with open('HISTORY.rst', encoding='utf-8') as f: + history = f.read() + +setup( + name=PACKAGE_NAME, + version=version, + description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), + long_description=readme + '\n\n' + history, + license='MIT License', + author='Microsoft Corporation', + author_email='azpysdkhelp@microsoft.com', + url='https://github.com/Azure/azure-sdk-for-python', + classifiers=[ + 'Development Status :: 4 - Beta', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'License :: OSI Approved :: MIT License', + ], + zip_safe=False, + packages=find_packages(exclude=[ + 'tests', + # Exclude packages that will be covered by PEP420 or nspkg + 'azure', + 'azure.mgmt', + ]), + install_requires=[ + 'msrest>=0.5.0', + 'msrestazure>=0.4.32,<2.0.0', + 'azure-common~=1.1', + ], + extras_require={ + ":python_version<'3.0'": ['azure-mgmt-nspkg'], + } +) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/virtual_networks_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/virtual_networks_operations.py index b153a6796482..10d82fa4e93d 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/virtual_networks_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/virtual_networks_operations.py @@ -522,15 +522,15 @@ def internal_paging(next_link=None, raw=False): list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks'} def check_ip_address_availability( - self, resource_group_name, virtual_network_name, ip_address, custom_headers=None, raw=False, **operation_config): + self, ip_address, resource_group_name, virtual_network_name, custom_headers=None, raw=False, **operation_config): """Checks whether a private IP address is available for use. + :param ip_address: The private IP address to be verified. + :type ip_address: str :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_name: The name of the virtual network. :type virtual_network_name: str - :param ip_address: The private IP address to be verified. - :type ip_address: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response From cd56fc0b7b889fb88876c1dc42e16aa2de02ac02 Mon Sep 17 00:00:00 2001 From: azuresdkci Date: Tue, 6 Nov 2018 17:54:07 +0000 Subject: [PATCH 4/7] Packaging update of azure-mgmt-network --- azure-mgmt-network/MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-mgmt-network/MANIFEST.in b/azure-mgmt-network/MANIFEST.in index ac87972df424..6ceb27f7a96e 100644 --- a/azure-mgmt-network/MANIFEST.in +++ b/azure-mgmt-network/MANIFEST.in @@ -1,3 +1,4 @@ include *.rst include azure/__init__.py include azure/mgmt/__init__.py + From 48c8d091f49991bec6e3a58cb89418b440ccd142 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 7 Nov 2018 01:16:22 +0000 Subject: [PATCH 5/7] Rebuild by https://github.com/Azure/azure-sdk-for-python/pull/3617 --- .../v2018_08_01/operations/virtual_networks_operations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/virtual_networks_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/virtual_networks_operations.py index 10d82fa4e93d..b153a6796482 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/virtual_networks_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/virtual_networks_operations.py @@ -522,15 +522,15 @@ def internal_paging(next_link=None, raw=False): list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks'} def check_ip_address_availability( - self, ip_address, resource_group_name, virtual_network_name, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, virtual_network_name, ip_address, custom_headers=None, raw=False, **operation_config): """Checks whether a private IP address is available for use. - :param ip_address: The private IP address to be verified. - :type ip_address: str :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_name: The name of the virtual network. :type virtual_network_name: str + :param ip_address: The private IP address to be verified. + :type ip_address: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response From a8d58c2b10c1c918c5c324527d6b7b9da0037b80 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 7 Nov 2018 16:12:13 -0800 Subject: [PATCH 6/7] Remove azure-mgmt-adhybridhealthservice by mistake on Network service PR --- azure-mgmt-adhybridhealthservice/HISTORY.rst | 9 - azure-mgmt-adhybridhealthservice/MANIFEST.in | 4 - azure-mgmt-adhybridhealthservice/README.rst | 49 - .../azure/__init__.py | 1 - .../azure/mgmt/__init__.py | 1 - .../mgmt/adhybridhealthservice/__init__.py | 18 - .../ad_hybrid_health_service.py | 144 -- .../adhybridhealthservice/models/__init__.py | 269 --- .../models/ad_hybrid_health_service_enums.py | 115 -- .../models/additional_information.py | 41 - .../models/additional_information_py3.py | 41 - .../models/adds_service_member.py | 181 -- .../models/adds_service_member_paged.py | 27 - .../models/adds_service_member_py3.py | 181 -- .../adhybridhealthservice/models/agent.py | 53 - .../adhybridhealthservice/models/agent_py3.py | 53 - .../adhybridhealthservice/models/alert.py | 114 -- .../models/alert_feedback.py | 59 - .../models/alert_feedback_paged.py | 27 - .../models/alert_feedback_py3.py | 59 - .../models/alert_paged.py | 27 - .../adhybridhealthservice/models/alert_py3.py | 114 -- .../models/associated_object.py | 72 - .../models/associated_object_py3.py | 72 - .../models/attribute_delta.py | 49 - .../models/attribute_delta_py3.py | 49 - .../models/attribute_mapping.py | 43 - .../models/attribute_mapping_py3.py | 43 - .../models/attribute_mpping_source.py | 40 - .../models/attribute_mpping_source_py3.py | 40 - .../models/change_not_reimported.py | 34 - .../models/change_not_reimported_delta.py | 45 - .../models/change_not_reimported_delta_py3.py | 45 - .../models/change_not_reimported_entry.py | 54 - .../models/change_not_reimported_entry_py3.py | 54 - .../models/change_not_reimported_py3.py | 34 - .../adhybridhealthservice/models/connector.py | 88 - .../models/connector_connection_error.py | 56 - .../models/connector_connection_error_py3.py | 56 - .../models/connector_connection_errors.py | 29 - .../models/connector_connection_errors_py3.py | 29 - .../models/connector_object_error.py | 80 - .../models/connector_object_error_py3.py | 80 - .../models/connector_object_errors.py | 29 - .../models/connector_object_errors_py3.py | 29 - .../models/connector_paged.py | 27 - .../models/connector_py3.py | 88 - .../models/credential.py | 36 - .../models/credential_paged.py | 27 - .../models/credential_py3.py | 36 - .../adhybridhealthservice/models/dimension.py | 69 - .../models/dimension_paged.py | 27 - .../models/dimension_py3.py | 69 - .../adhybridhealthservice/models/display.py | 37 - .../models/display_py3.py | 37 - .../models/error_count.py | 36 - .../models/error_count_paged.py | 27 - .../models/error_count_py3.py | 36 - .../models/error_detail.py | 47 - .../models/error_detail_py3.py | 47 - .../models/error_report_users_entry.py | 45 - .../models/error_report_users_entry_paged.py | 27 - .../models/error_report_users_entry_py3.py | 45 - .../models/export_error.py | 177 -- .../models/export_error_py3.py | 177 -- .../models/export_errors.py | 28 - .../models/export_errors_py3.py | 28 - .../models/export_status.py | 42 - .../models/export_status_paged.py | 27 - .../models/export_status_py3.py | 42 - .../models/extension_error_info.py | 36 - .../models/extension_error_info_py3.py | 36 - .../models/forest_summary.py | 53 - .../models/forest_summary_py3.py | 53 - .../models/global_configuration.py | 45 - .../models/global_configuration_paged.py | 27 - .../models/global_configuration_py3.py | 45 - .../adhybridhealthservice/models/help_link.py | 32 - .../models/help_link_py3.py | 32 - .../adhybridhealthservice/models/hotfix.py | 37 - .../models/hotfix_py3.py | 37 - .../adhybridhealthservice/models/hotfixes.py | 28 - .../models/hotfixes_py3.py | 28 - .../models/import_error.py | 84 - .../models/import_error_py3.py | 84 - .../models/import_errors.py | 28 - .../models/import_errors_py3.py | 28 - .../models/inbound_replication_neighbor.py | 79 - .../inbound_replication_neighbor_py3.py | 79 - .../models/inbound_replication_neighbors.py | 29 - .../inbound_replication_neighbors_py3.py | 29 - .../mgmt/adhybridhealthservice/models/item.py | 32 - .../models/item_paged.py | 27 - .../adhybridhealthservice/models/item_py3.py | 32 - .../models/merged_export_error.py | 116 -- .../models/merged_export_error_paged.py | 27 - .../models/merged_export_error_py3.py | 116 -- .../models/metric_group.py | 37 - .../models/metric_group_py3.py | 37 - .../models/metric_metadata.py | 73 - .../models/metric_metadata_paged.py | 27 - .../models/metric_metadata_py3.py | 73 - .../models/metric_set.py | 33 - .../models/metric_set_py3.py | 33 - .../models/metric_sets.py | 33 - .../models/metric_sets_py3.py | 33 - .../models/module_configuration.py | 38 - .../models/module_configuration_py3.py | 38 - .../models/module_configurations.py | 29 - .../models/module_configurations_py3.py | 29 - .../models/object_with_sync_error.py | 89 - .../models/object_with_sync_error_py3.py | 89 - .../adhybridhealthservice/models/operation.py | 32 - .../models/operation_paged.py | 27 - .../models/operation_py3.py | 32 - .../adhybridhealthservice/models/partition.py | 62 - .../models/partition_py3.py | 62 - .../models/partition_scope.py | 40 - .../models/partition_scope_py3.py | 40 - .../password_hash_sync_configuration.py | 33 - .../password_hash_sync_configuration_py3.py | 33 - .../models/password_management_settings.py | 69 - .../password_management_settings_py3.py | 69 - .../models/replication_status.py | 38 - .../models/replication_status_py3.py | 38 - .../models/replication_summary.py | 56 - .../models/replication_summary_paged.py | 27 - .../models/replication_summary_py3.py | 56 - .../adhybridhealthservice/models/result.py | 28 - .../models/result_py3.py | 28 - .../models/rule_error_info.py | 45 - .../models/rule_error_info_py3.py | 45 - .../models/run_profile.py | 36 - .../models/run_profile_py3.py | 36 - .../models/run_profiles.py | 28 - .../models/run_profiles_py3.py | 28 - .../adhybridhealthservice/models/run_step.py | 53 - .../models/run_step_py3.py | 53 - .../models/service_configuration.py | 60 - .../models/service_configuration_py3.py | 60 - .../models/service_member.py | 143 -- .../models/service_member_paged.py | 27 - .../models/service_member_py3.py | 143 -- .../models/service_properties.py | 140 -- .../models/service_properties_paged.py | 27 - .../models/service_properties_py3.py | 140 -- .../models/tabular_export_error.py | 40 - .../models/tabular_export_error_py3.py | 40 - .../adhybridhealthservice/models/tenant.py | 126 -- .../models/tenant_onboarding_details.py | 35 - .../models/tenant_onboarding_details_py3.py | 35 - .../models/tenant_py3.py | 126 -- .../models/user_preference.py | 28 - .../models/user_preference_py3.py | 28 - .../models/value_delta.py | 34 - .../models/value_delta_py3.py | 34 - .../operations/__init__.py | 44 - .../ad_domain_service_members_operations.py | 128 -- .../adds_service_members_operations.py | 307 ---- .../operations/adds_service_operations.py | 115 -- .../operations/adds_services_operations.py | 1122 ------------ ..._services_replication_status_operations.py | 97 -- ...dds_services_service_members_operations.py | 185 -- ...dds_services_user_preference_operations.py | 211 --- .../operations/alerts_operations.py | 120 -- .../operations/configuration_operations.py | 272 --- .../operations/dimensions_operations.py | 107 -- .../operations/operations.py | 98 -- .../operations/reports_operations.py | 90 - .../operations/service_members_operations.py | 938 ---------- .../operations/service_operations.py | 115 -- .../operations/services_operations.py | 1542 ----------------- .../mgmt/adhybridhealthservice/version.py | 13 - .../sdk_packaging.toml | 7 - azure-mgmt-adhybridhealthservice/setup.cfg | 2 - azure-mgmt-adhybridhealthservice/setup.py | 87 - 176 files changed, 13951 deletions(-) delete mode 100644 azure-mgmt-adhybridhealthservice/HISTORY.rst delete mode 100644 azure-mgmt-adhybridhealthservice/MANIFEST.in delete mode 100644 azure-mgmt-adhybridhealthservice/README.rst delete mode 100644 azure-mgmt-adhybridhealthservice/azure/__init__.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/__init__.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/__init__.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/ad_hybrid_health_service_enums.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_paged.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta_py3.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/ad_domain_service_members_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_members_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_replication_status_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_service_members_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_user_preference_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/alerts_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/dimensions_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/reports_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/version.py delete mode 100644 azure-mgmt-adhybridhealthservice/sdk_packaging.toml delete mode 100644 azure-mgmt-adhybridhealthservice/setup.cfg delete mode 100644 azure-mgmt-adhybridhealthservice/setup.py diff --git a/azure-mgmt-adhybridhealthservice/HISTORY.rst b/azure-mgmt-adhybridhealthservice/HISTORY.rst deleted file mode 100644 index 8924d5d6c445..000000000000 --- a/azure-mgmt-adhybridhealthservice/HISTORY.rst +++ /dev/null @@ -1,9 +0,0 @@ -.. :changelog: - -Release History -=============== - -0.1.0 (1970-01-01) -++++++++++++++++++ - -* Initial Release diff --git a/azure-mgmt-adhybridhealthservice/MANIFEST.in b/azure-mgmt-adhybridhealthservice/MANIFEST.in deleted file mode 100644 index 6ceb27f7a96e..000000000000 --- a/azure-mgmt-adhybridhealthservice/MANIFEST.in +++ /dev/null @@ -1,4 +0,0 @@ -include *.rst -include azure/__init__.py -include azure/mgmt/__init__.py - diff --git a/azure-mgmt-adhybridhealthservice/README.rst b/azure-mgmt-adhybridhealthservice/README.rst deleted file mode 100644 index 45de4e6b43dd..000000000000 --- a/azure-mgmt-adhybridhealthservice/README.rst +++ /dev/null @@ -1,49 +0,0 @@ -Microsoft Azure SDK for Python -============================== - -This is the Microsoft Azure MyService Management Client Library. - -Azure Resource Manager (ARM) is the next generation of management APIs that -replace the old Azure Service Management (ASM). - -This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. - -For the older Azure Service Management (ASM) libraries, see -`azure-servicemanagement-legacy `__ library. - -For a more complete set of Azure libraries, see the `azure `__ bundle package. - - -Compatibility -============= - -**IMPORTANT**: If you have an earlier version of the azure package -(version < 1.0), you should uninstall it before installing this package. - -You can check the version using pip: - -.. code:: shell - - pip freeze - -If you see azure==0.11.0 (or any version below 1.0), uninstall it first: - -.. code:: shell - - pip uninstall azure - - -Usage -===== - -For code examples, see `MyService Management -`__ -on docs.microsoft.com. - - -Provide Feedback -================ - -If you encounter any bugs or have suggestions, please file an issue in the -`Issues `__ -section of the project. diff --git a/azure-mgmt-adhybridhealthservice/azure/__init__.py b/azure-mgmt-adhybridhealthservice/azure/__init__.py deleted file mode 100644 index 0260537a02bb..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/__init__.py deleted file mode 100644 index 0260537a02bb..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/__init__.py deleted file mode 100644 index 480bcde84789..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -# 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 .ad_hybrid_health_service import ADHybridHealthService -from .version import VERSION - -__all__ = ['ADHybridHealthService'] - -__version__ = VERSION - diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py deleted file mode 100644 index ae2fa156c1b3..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py +++ /dev/null @@ -1,144 +0,0 @@ -# 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.service_client import SDKClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.adds_services_operations import AddsServicesOperations -from .operations.alerts_operations import AlertsOperations -from .operations.configuration_operations import ConfigurationOperations -from .operations.dimensions_operations import DimensionsOperations -from .operations.adds_service_members_operations import AddsServiceMembersOperations -from .operations.ad_domain_service_members_operations import AdDomainServiceMembersOperations -from .operations.adds_services_user_preference_operations import AddsServicesUserPreferenceOperations -from .operations.adds_service_operations import AddsServiceOperations -from .operations.adds_services_replication_status_operations import AddsServicesReplicationStatusOperations -from .operations.adds_services_service_members_operations import AddsServicesServiceMembersOperations -from .operations.operations import Operations -from .operations.reports_operations import ReportsOperations -from .operations.services_operations import ServicesOperations -from .operations.service_operations import ServiceOperations -from .operations.service_members_operations import ServiceMembersOperations -from . import models - - -class ADHybridHealthServiceConfiguration(AzureConfiguration): - """Configuration for ADHybridHealthService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param str base_url: Service URL - """ - - def __init__( - self, credentials, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ADHybridHealthServiceConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-adhybridhealthservice/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - - -class ADHybridHealthService(SDKClient): - """REST APIs for Azure Active Drectory Connect Health - - :ivar config: Configuration for client. - :vartype config: ADHybridHealthServiceConfiguration - - :ivar adds_services: AddsServices operations - :vartype adds_services: azure.mgmt.adhybridhealthservice.operations.AddsServicesOperations - :ivar alerts: Alerts operations - :vartype alerts: azure.mgmt.adhybridhealthservice.operations.AlertsOperations - :ivar configuration: Configuration operations - :vartype configuration: azure.mgmt.adhybridhealthservice.operations.ConfigurationOperations - :ivar dimensions: Dimensions operations - :vartype dimensions: azure.mgmt.adhybridhealthservice.operations.DimensionsOperations - :ivar adds_service_members: AddsServiceMembers operations - :vartype adds_service_members: azure.mgmt.adhybridhealthservice.operations.AddsServiceMembersOperations - :ivar ad_domain_service_members: AdDomainServiceMembers operations - :vartype ad_domain_service_members: azure.mgmt.adhybridhealthservice.operations.AdDomainServiceMembersOperations - :ivar adds_services_user_preference: AddsServicesUserPreference operations - :vartype adds_services_user_preference: azure.mgmt.adhybridhealthservice.operations.AddsServicesUserPreferenceOperations - :ivar adds_service: AddsService operations - :vartype adds_service: azure.mgmt.adhybridhealthservice.operations.AddsServiceOperations - :ivar adds_services_replication_status: AddsServicesReplicationStatus operations - :vartype adds_services_replication_status: azure.mgmt.adhybridhealthservice.operations.AddsServicesReplicationStatusOperations - :ivar adds_services_service_members: AddsServicesServiceMembers operations - :vartype adds_services_service_members: azure.mgmt.adhybridhealthservice.operations.AddsServicesServiceMembersOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.adhybridhealthservice.operations.Operations - :ivar reports: Reports operations - :vartype reports: azure.mgmt.adhybridhealthservice.operations.ReportsOperations - :ivar services: Services operations - :vartype services: azure.mgmt.adhybridhealthservice.operations.ServicesOperations - :ivar service: Service operations - :vartype service: azure.mgmt.adhybridhealthservice.operations.ServiceOperations - :ivar service_members: ServiceMembers operations - :vartype service_members: azure.mgmt.adhybridhealthservice.operations.ServiceMembersOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param str base_url: Service URL - """ - - def __init__( - self, credentials, base_url=None): - - self.config = ADHybridHealthServiceConfiguration(credentials, base_url) - super(ADHybridHealthService, self).__init__(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2014-01-01' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.adds_services = AddsServicesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.alerts = AlertsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.configuration = ConfigurationOperations( - self._client, self.config, self._serialize, self._deserialize) - self.dimensions = DimensionsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.adds_service_members = AddsServiceMembersOperations( - self._client, self.config, self._serialize, self._deserialize) - self.ad_domain_service_members = AdDomainServiceMembersOperations( - self._client, self.config, self._serialize, self._deserialize) - self.adds_services_user_preference = AddsServicesUserPreferenceOperations( - self._client, self.config, self._serialize, self._deserialize) - self.adds_service = AddsServiceOperations( - self._client, self.config, self._serialize, self._deserialize) - self.adds_services_replication_status = AddsServicesReplicationStatusOperations( - self._client, self.config, self._serialize, self._deserialize) - self.adds_services_service_members = AddsServicesServiceMembersOperations( - self._client, self.config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self.config, self._serialize, self._deserialize) - self.reports = ReportsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.services = ServicesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.service = ServiceOperations( - self._client, self.config, self._serialize, self._deserialize) - self.service_members = ServiceMembersOperations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py deleted file mode 100644 index 1c1d06898c38..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ /dev/null @@ -1,269 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -try: - from .item_py3 import Item - from .additional_information_py3 import AdditionalInformation - from .hotfix_py3 import Hotfix - from .adds_service_member_py3 import AddsServiceMember - from .agent_py3 import Agent - from .help_link_py3 import HelpLink - from .alert_py3 import Alert - from .alert_feedback_py3 import AlertFeedback - from .associated_object_py3 import AssociatedObject - from .value_delta_py3 import ValueDelta - from .attribute_delta_py3 import AttributeDelta - from .attribute_mpping_source_py3 import AttributeMppingSource - from .attribute_mapping_py3 import AttributeMapping - from .change_not_reimported_delta_py3 import ChangeNotReimportedDelta - from .change_not_reimported_entry_py3 import ChangeNotReimportedEntry - from .change_not_reimported_py3 import ChangeNotReimported - from .partition_scope_py3 import PartitionScope - from .partition_py3 import Partition - from .run_step_py3 import RunStep - from .run_profile_py3 import RunProfile - from .connector_py3 import Connector - from .connector_connection_error_py3 import ConnectorConnectionError - from .connector_connection_errors_py3 import ConnectorConnectionErrors - from .connector_object_error_py3 import ConnectorObjectError - from .connector_object_errors_py3 import ConnectorObjectErrors - from .credential_py3 import Credential - from .dimension_py3 import Dimension - from .display_py3 import Display - from .error_count_py3 import ErrorCount - from .object_with_sync_error_py3 import ObjectWithSyncError - from .merged_export_error_py3 import MergedExportError - from .error_detail_py3 import ErrorDetail - from .export_error_py3 import ExportError - from .export_errors_py3 import ExportErrors - from .error_report_users_entry_py3 import ErrorReportUsersEntry - from .export_status_py3 import ExportStatus - from .extension_error_info_py3 import ExtensionErrorInfo - from .forest_summary_py3 import ForestSummary - from .global_configuration_py3 import GlobalConfiguration - from .hotfixes_py3 import Hotfixes - from .rule_error_info_py3 import RuleErrorInfo - from .import_error_py3 import ImportError - from .import_errors_py3 import ImportErrors - from .inbound_replication_neighbor_py3 import InboundReplicationNeighbor - from .inbound_replication_neighbors_py3 import InboundReplicationNeighbors - from .metric_group_py3 import MetricGroup - from .metric_metadata_py3 import MetricMetadata - from .metric_set_py3 import MetricSet - from .metric_sets_py3 import MetricSets - from .module_configuration_py3 import ModuleConfiguration - from .module_configurations_py3 import ModuleConfigurations - from .operation_py3 import Operation - from .password_management_settings_py3 import PasswordManagementSettings - from .password_hash_sync_configuration_py3 import PasswordHashSyncConfiguration - from .replication_summary_py3 import ReplicationSummary - from .replication_status_py3 import ReplicationStatus - from .result_py3 import Result - from .run_profiles_py3 import RunProfiles - from .service_configuration_py3 import ServiceConfiguration - from .service_properties_py3 import ServiceProperties - from .service_member_py3 import ServiceMember - from .tabular_export_error_py3 import TabularExportError - from .tenant_py3 import Tenant - from .tenant_onboarding_details_py3 import TenantOnboardingDetails - from .user_preference_py3 import UserPreference -except (SyntaxError, ImportError): - from .item import Item - from .additional_information import AdditionalInformation - from .hotfix import Hotfix - from .adds_service_member import AddsServiceMember - from .agent import Agent - from .help_link import HelpLink - from .alert import Alert - from .alert_feedback import AlertFeedback - from .associated_object import AssociatedObject - from .value_delta import ValueDelta - from .attribute_delta import AttributeDelta - from .attribute_mpping_source import AttributeMppingSource - from .attribute_mapping import AttributeMapping - from .change_not_reimported_delta import ChangeNotReimportedDelta - from .change_not_reimported_entry import ChangeNotReimportedEntry - from .change_not_reimported import ChangeNotReimported - from .partition_scope import PartitionScope - from .partition import Partition - from .run_step import RunStep - from .run_profile import RunProfile - from .connector import Connector - from .connector_connection_error import ConnectorConnectionError - from .connector_connection_errors import ConnectorConnectionErrors - from .connector_object_error import ConnectorObjectError - from .connector_object_errors import ConnectorObjectErrors - from .credential import Credential - from .dimension import Dimension - from .display import Display - from .error_count import ErrorCount - from .object_with_sync_error import ObjectWithSyncError - from .merged_export_error import MergedExportError - from .error_detail import ErrorDetail - from .export_error import ExportError - from .export_errors import ExportErrors - from .error_report_users_entry import ErrorReportUsersEntry - from .export_status import ExportStatus - from .extension_error_info import ExtensionErrorInfo - from .forest_summary import ForestSummary - from .global_configuration import GlobalConfiguration - from .hotfixes import Hotfixes - from .rule_error_info import RuleErrorInfo - from .import_error import ImportError - from .import_errors import ImportErrors - from .inbound_replication_neighbor import InboundReplicationNeighbor - from .inbound_replication_neighbors import InboundReplicationNeighbors - from .metric_group import MetricGroup - from .metric_metadata import MetricMetadata - from .metric_set import MetricSet - from .metric_sets import MetricSets - from .module_configuration import ModuleConfiguration - from .module_configurations import ModuleConfigurations - from .operation import Operation - from .password_management_settings import PasswordManagementSettings - from .password_hash_sync_configuration import PasswordHashSyncConfiguration - from .replication_summary import ReplicationSummary - from .replication_status import ReplicationStatus - from .result import Result - from .run_profiles import RunProfiles - from .service_configuration import ServiceConfiguration - from .service_properties import ServiceProperties - from .service_member import ServiceMember - from .tabular_export_error import TabularExportError - from .tenant import Tenant - from .tenant_onboarding_details import TenantOnboardingDetails - from .user_preference import UserPreference -from .service_properties_paged import ServicePropertiesPaged -from .item_paged import ItemPaged -from .metric_metadata_paged import MetricMetadataPaged -from .replication_summary_paged import ReplicationSummaryPaged -from .alert_paged import AlertPaged -from .dimension_paged import DimensionPaged -from .adds_service_member_paged import AddsServiceMemberPaged -from .credential_paged import CredentialPaged -from .service_member_paged import ServiceMemberPaged -from .operation_paged import OperationPaged -from .error_count_paged import ErrorCountPaged -from .merged_export_error_paged import MergedExportErrorPaged -from .export_status_paged import ExportStatusPaged -from .alert_feedback_paged import AlertFeedbackPaged -from .error_report_users_entry_paged import ErrorReportUsersEntryPaged -from .connector_paged import ConnectorPaged -from .global_configuration_paged import GlobalConfigurationPaged -from .ad_hybrid_health_service_enums import ( - MonitoringLevel, - Level, - State, - ValueDeltaOperationType, - AttributeDeltaOperationType, - ValueType, - AttributeMappingType, - DeltaOperationType, - HealthStatus, - AlgorithmStepType, - PasswordOperationTypes, -) - -__all__ = [ - 'Item', - 'AdditionalInformation', - 'Hotfix', - 'AddsServiceMember', - 'Agent', - 'HelpLink', - 'Alert', - 'AlertFeedback', - 'AssociatedObject', - 'ValueDelta', - 'AttributeDelta', - 'AttributeMppingSource', - 'AttributeMapping', - 'ChangeNotReimportedDelta', - 'ChangeNotReimportedEntry', - 'ChangeNotReimported', - 'PartitionScope', - 'Partition', - 'RunStep', - 'RunProfile', - 'Connector', - 'ConnectorConnectionError', - 'ConnectorConnectionErrors', - 'ConnectorObjectError', - 'ConnectorObjectErrors', - 'Credential', - 'Dimension', - 'Display', - 'ErrorCount', - 'ObjectWithSyncError', - 'MergedExportError', - 'ErrorDetail', - 'ExportError', - 'ExportErrors', - 'ErrorReportUsersEntry', - 'ExportStatus', - 'ExtensionErrorInfo', - 'ForestSummary', - 'GlobalConfiguration', - 'Hotfixes', - 'RuleErrorInfo', - 'ImportError', - 'ImportErrors', - 'InboundReplicationNeighbor', - 'InboundReplicationNeighbors', - 'MetricGroup', - 'MetricMetadata', - 'MetricSet', - 'MetricSets', - 'ModuleConfiguration', - 'ModuleConfigurations', - 'Operation', - 'PasswordManagementSettings', - 'PasswordHashSyncConfiguration', - 'ReplicationSummary', - 'ReplicationStatus', - 'Result', - 'RunProfiles', - 'ServiceConfiguration', - 'ServiceProperties', - 'ServiceMember', - 'TabularExportError', - 'Tenant', - 'TenantOnboardingDetails', - 'UserPreference', - 'ServicePropertiesPaged', - 'ItemPaged', - 'MetricMetadataPaged', - 'ReplicationSummaryPaged', - 'AlertPaged', - 'DimensionPaged', - 'AddsServiceMemberPaged', - 'CredentialPaged', - 'ServiceMemberPaged', - 'OperationPaged', - 'ErrorCountPaged', - 'MergedExportErrorPaged', - 'ExportStatusPaged', - 'AlertFeedbackPaged', - 'ErrorReportUsersEntryPaged', - 'ConnectorPaged', - 'GlobalConfigurationPaged', - 'MonitoringLevel', - 'Level', - 'State', - 'ValueDeltaOperationType', - 'AttributeDeltaOperationType', - 'ValueType', - 'AttributeMappingType', - 'DeltaOperationType', - 'HealthStatus', - 'AlgorithmStepType', - 'PasswordOperationTypes', -] diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/ad_hybrid_health_service_enums.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/ad_hybrid_health_service_enums.py deleted file mode 100644 index ac5e34c7f127..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/ad_hybrid_health_service_enums.py +++ /dev/null @@ -1,115 +0,0 @@ -# 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 enum import Enum - - -class MonitoringLevel(str, Enum): - - partial = "Partial" - full = "Full" - off = "Off" - - -class Level(str, Enum): - - warning = "Warning" - error = "Error" - pre_warning = "PreWarning" - - -class State(str, Enum): - - active = "Active" - resolved_by_positive_result = "ResolvedByPositiveResult" - resolved_manually = "ResolvedManually" - resolved_by_timer = "ResolvedByTimer" - resolved_by_state_change = "ResolvedByStateChange" - - -class ValueDeltaOperationType(str, Enum): - - undefined = "Undefined" - add = "Add" - update = "Update" - delete = "Delete" - - -class AttributeDeltaOperationType(str, Enum): - - undefined = "Undefined" - add = "Add" - replace = "Replace" - update = "Update" - delete = "Delete" - - -class ValueType(str, Enum): - - undefined = "Undefined" - dn = "Dn" - binary = "Binary" - string = "String" - integer = "Integer" - boolean = "Boolean" - - -class AttributeMappingType(str, Enum): - - constant = "Constant" - direct = "Direct" - dn_part = "DnPart" - script = "Script" - - -class DeltaOperationType(str, Enum): - - undefined = "Undefined" - none = "None" - add = "Add" - replace = "Replace" - update = "Update" - delete = "Delete" - obsolete = "Obsolete" - delet_add = "DeletAdd" - - -class HealthStatus(str, Enum): - - healthy = "Healthy" - warning = "Warning" - error = "Error" - not_monitored = "NotMonitored" - missing = "Missing" - - -class AlgorithmStepType(str, Enum): - - undefined = "Undefined" - staging = "Staging" - connector_filter = "ConnectorFilter" - join = "Join" - projection = "Projection" - import_flow = "ImportFlow" - provisioning = "Provisioning" - validate_connector_filter = "ValidateConnectorFilter" - deprovisioning = "Deprovisioning" - export_flow = "ExportFlow" - mv_deletion = "MvDeletion" - recall = "Recall" - mv_object_type_change = "MvObjectTypeChange" - - -class PasswordOperationTypes(str, Enum): - - undefined = "Undefined" - set = "Set" - change = "Change" diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.py deleted file mode 100644 index a0c56481b679..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 AdditionalInformation(Model): - """The addtional information for a property. - - :param title_name: The title name for the property. - :type title_name: str - :param title_value: The title value for the property. - :type title_value: str - :param properties: The list of properties which are included in the - additional information. - :type properties: object - :param has_properties: Indicates if properties are present or not. - :type has_properties: bool - """ - - _attribute_map = { - 'title_name': {'key': 'titleName', 'type': 'str'}, - 'title_value': {'key': 'titleValue', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'has_properties': {'key': 'hasProperties', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(AdditionalInformation, self).__init__(**kwargs) - self.title_name = kwargs.get('title_name', None) - self.title_value = kwargs.get('title_value', None) - self.properties = kwargs.get('properties', None) - self.has_properties = kwargs.get('has_properties', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information_py3.py deleted file mode 100644 index 88435d894f70..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 AdditionalInformation(Model): - """The addtional information for a property. - - :param title_name: The title name for the property. - :type title_name: str - :param title_value: The title value for the property. - :type title_value: str - :param properties: The list of properties which are included in the - additional information. - :type properties: object - :param has_properties: Indicates if properties are present or not. - :type has_properties: bool - """ - - _attribute_map = { - 'title_name': {'key': 'titleName', 'type': 'str'}, - 'title_value': {'key': 'titleValue', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'has_properties': {'key': 'hasProperties', 'type': 'bool'}, - } - - def __init__(self, *, title_name: str=None, title_value: str=None, properties=None, has_properties: bool=None, **kwargs) -> None: - super(AdditionalInformation, self).__init__(**kwargs) - self.title_name = title_name - self.title_value = title_value - self.properties = properties - self.has_properties = has_properties diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py deleted file mode 100644 index 741d6b2c314b..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py +++ /dev/null @@ -1,181 +0,0 @@ -# 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 AddsServiceMember(Model): - """The server details for ADDS service. - - :param domain_name: The domain name. - :type domain_name: str - :param site_name: The site name. - :type site_name: str - :param adds_roles: The list of ADDS roles. - :type adds_roles: list[str] - :param gc_reachable: Indicates if the global catalog for this domain is - reachable or not. - :type gc_reachable: bool - :param is_advertising: Indicates if the Dc is advertising or not. - :type is_advertising: bool - :param pdc_reachable: Indicates if the primary domain controller is - reachable or not. - :type pdc_reachable: bool - :param sysvol_state: Indicates if the SYSVOL state is healthy or not. - :type sysvol_state: bool - :param dc_types: The list of domain controller types. - :type dc_types: list[str] - :param service_member_id: The id of the server. - :type service_member_id: str - :param service_id: The service id to whom this server belongs. - :type service_id: str - :param tenant_id: The tenant id to whom this server belongs. - :type tenant_id: str - :param active_alerts: The total number of alerts that are currently active - for the server. - :type active_alerts: int - :param additional_information: The additional information, if any, for the - server. - :type additional_information: str - :param created_date: The date time , in UTC, when the server was - onboaraded to Azure Active Directory Connect Health. - :type created_date: datetime - :param dimensions: The server specific configuration related dimensions. - :type dimensions: list[~azure.mgmt.adhybridhealthservice.models.Item] - :param disabled: Indicates if the server is disabled or not. - :type disabled: bool - :param disabled_reason: The reason for disabling the server. - :type disabled_reason: int - :param installed_qfes: The list of installed QFEs for the server. - :type installed_qfes: - list[~azure.mgmt.adhybridhealthservice.models.Hotfix] - :param last_disabled: The date and time , in UTC, when the server was last - disabled. - :type last_disabled: datetime - :param last_reboot: The date and time, in UTC, when the server was last - rebooted. - :type last_reboot: datetime - :param last_server_reported_monitoring_level_change: The date and time, in - UTC, when the server's data monitoring configuration was last changed. - :type last_server_reported_monitoring_level_change: datetime - :param last_updated: The date and time, in UTC, when the server proeprties - were last updated. - :type last_updated: datetime - :param machine_id: The id of the machine. - :type machine_id: str - :param machine_name: The name of the server. - :type machine_name: str - :param monitoring_configurations_computed: The monitoring configuration of - the server which determines what activities are monitored by Azure Active - Directory Connect Health. - :type monitoring_configurations_computed: - list[~azure.mgmt.adhybridhealthservice.models.Item] - :param monitoring_configurations_customized: The customized monitoring - configuration of the server which determines what activities are monitored - by Azure Active Directory Connect Health. - :type monitoring_configurations_customized: - list[~azure.mgmt.adhybridhealthservice.models.Item] - :param os_name: The name of the operating system installed in the machine. - :type os_name: str - :param os_version: The version of the operating system installed in the - machine. - :type os_version: str - :param properties: Server specific properties. - :type properties: list[~azure.mgmt.adhybridhealthservice.models.Item] - :param recommended_qfes: The list of recommended hotfixes for the server. - :type recommended_qfes: - list[~azure.mgmt.adhybridhealthservice.models.Hotfix] - :param resolved_alerts: The total count of alerts that are resolved for - this server. - :type resolved_alerts: int - :param role: The service role that is being monitored in the server. - :type role: str - :param server_reported_monitoring_level: The monitoring level reported by - the server. Possible values include: 'Partial', 'Full', 'Off' - :type server_reported_monitoring_level: str or - ~azure.mgmt.adhybridhealthservice.models.MonitoringLevel - :param status: The health status of the server. - :type status: str - """ - - _attribute_map = { - 'domain_name': {'key': 'domainName', 'type': 'str'}, - 'site_name': {'key': 'siteName', 'type': 'str'}, - 'adds_roles': {'key': 'addsRoles', 'type': '[str]'}, - 'gc_reachable': {'key': 'gcReachable', 'type': 'bool'}, - 'is_advertising': {'key': 'isAdvertising', 'type': 'bool'}, - 'pdc_reachable': {'key': 'pdcReachable', 'type': 'bool'}, - 'sysvol_state': {'key': 'sysvolState', 'type': 'bool'}, - 'dc_types': {'key': 'dcTypes', 'type': '[str]'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, - 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'dimensions': {'key': 'dimensions', 'type': '[Item]'}, - 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'disabled_reason': {'key': 'disabledReason', 'type': 'int'}, - 'installed_qfes': {'key': 'installedQfes', 'type': '[Hotfix]'}, - 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, - 'last_reboot': {'key': 'lastReboot', 'type': 'iso-8601'}, - 'last_server_reported_monitoring_level_change': {'key': 'lastServerReportedMonitoringLevelChange', 'type': 'iso-8601'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'machine_id': {'key': 'machineId', 'type': 'str'}, - 'machine_name': {'key': 'machineName', 'type': 'str'}, - 'monitoring_configurations_computed': {'key': 'monitoringConfigurationsComputed', 'type': '[Item]'}, - 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': '[Item]'}, - 'os_name': {'key': 'osName', 'type': 'str'}, - 'os_version': {'key': 'osVersion', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '[Item]'}, - 'recommended_qfes': {'key': 'recommendedQfes', 'type': '[Hotfix]'}, - 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, - 'role': {'key': 'role', 'type': 'str'}, - 'server_reported_monitoring_level': {'key': 'serverReportedMonitoringLevel', 'type': 'MonitoringLevel'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AddsServiceMember, self).__init__(**kwargs) - self.domain_name = kwargs.get('domain_name', None) - self.site_name = kwargs.get('site_name', None) - self.adds_roles = kwargs.get('adds_roles', None) - self.gc_reachable = kwargs.get('gc_reachable', None) - self.is_advertising = kwargs.get('is_advertising', None) - self.pdc_reachable = kwargs.get('pdc_reachable', None) - self.sysvol_state = kwargs.get('sysvol_state', None) - self.dc_types = kwargs.get('dc_types', None) - self.service_member_id = kwargs.get('service_member_id', None) - self.service_id = kwargs.get('service_id', None) - self.tenant_id = kwargs.get('tenant_id', None) - self.active_alerts = kwargs.get('active_alerts', None) - self.additional_information = kwargs.get('additional_information', None) - self.created_date = kwargs.get('created_date', None) - self.dimensions = kwargs.get('dimensions', None) - self.disabled = kwargs.get('disabled', None) - self.disabled_reason = kwargs.get('disabled_reason', None) - self.installed_qfes = kwargs.get('installed_qfes', None) - self.last_disabled = kwargs.get('last_disabled', None) - self.last_reboot = kwargs.get('last_reboot', None) - self.last_server_reported_monitoring_level_change = kwargs.get('last_server_reported_monitoring_level_change', None) - self.last_updated = kwargs.get('last_updated', None) - self.machine_id = kwargs.get('machine_id', None) - self.machine_name = kwargs.get('machine_name', None) - self.monitoring_configurations_computed = kwargs.get('monitoring_configurations_computed', None) - self.monitoring_configurations_customized = kwargs.get('monitoring_configurations_customized', None) - self.os_name = kwargs.get('os_name', None) - self.os_version = kwargs.get('os_version', None) - self.properties = kwargs.get('properties', None) - self.recommended_qfes = kwargs.get('recommended_qfes', None) - self.resolved_alerts = kwargs.get('resolved_alerts', None) - self.role = kwargs.get('role', None) - self.server_reported_monitoring_level = kwargs.get('server_reported_monitoring_level', None) - self.status = kwargs.get('status', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_paged.py deleted file mode 100644 index 476f3b7d97c4..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 AddsServiceMemberPaged(Paged): - """ - A paging container for iterating over a list of :class:`AddsServiceMember ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[AddsServiceMember]'} - } - - def __init__(self, *args, **kwargs): - - super(AddsServiceMemberPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_py3.py deleted file mode 100644 index 276a5e2c3e42..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_py3.py +++ /dev/null @@ -1,181 +0,0 @@ -# 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 AddsServiceMember(Model): - """The server details for ADDS service. - - :param domain_name: The domain name. - :type domain_name: str - :param site_name: The site name. - :type site_name: str - :param adds_roles: The list of ADDS roles. - :type adds_roles: list[str] - :param gc_reachable: Indicates if the global catalog for this domain is - reachable or not. - :type gc_reachable: bool - :param is_advertising: Indicates if the Dc is advertising or not. - :type is_advertising: bool - :param pdc_reachable: Indicates if the primary domain controller is - reachable or not. - :type pdc_reachable: bool - :param sysvol_state: Indicates if the SYSVOL state is healthy or not. - :type sysvol_state: bool - :param dc_types: The list of domain controller types. - :type dc_types: list[str] - :param service_member_id: The id of the server. - :type service_member_id: str - :param service_id: The service id to whom this server belongs. - :type service_id: str - :param tenant_id: The tenant id to whom this server belongs. - :type tenant_id: str - :param active_alerts: The total number of alerts that are currently active - for the server. - :type active_alerts: int - :param additional_information: The additional information, if any, for the - server. - :type additional_information: str - :param created_date: The date time , in UTC, when the server was - onboaraded to Azure Active Directory Connect Health. - :type created_date: datetime - :param dimensions: The server specific configuration related dimensions. - :type dimensions: list[~azure.mgmt.adhybridhealthservice.models.Item] - :param disabled: Indicates if the server is disabled or not. - :type disabled: bool - :param disabled_reason: The reason for disabling the server. - :type disabled_reason: int - :param installed_qfes: The list of installed QFEs for the server. - :type installed_qfes: - list[~azure.mgmt.adhybridhealthservice.models.Hotfix] - :param last_disabled: The date and time , in UTC, when the server was last - disabled. - :type last_disabled: datetime - :param last_reboot: The date and time, in UTC, when the server was last - rebooted. - :type last_reboot: datetime - :param last_server_reported_monitoring_level_change: The date and time, in - UTC, when the server's data monitoring configuration was last changed. - :type last_server_reported_monitoring_level_change: datetime - :param last_updated: The date and time, in UTC, when the server proeprties - were last updated. - :type last_updated: datetime - :param machine_id: The id of the machine. - :type machine_id: str - :param machine_name: The name of the server. - :type machine_name: str - :param monitoring_configurations_computed: The monitoring configuration of - the server which determines what activities are monitored by Azure Active - Directory Connect Health. - :type monitoring_configurations_computed: - list[~azure.mgmt.adhybridhealthservice.models.Item] - :param monitoring_configurations_customized: The customized monitoring - configuration of the server which determines what activities are monitored - by Azure Active Directory Connect Health. - :type monitoring_configurations_customized: - list[~azure.mgmt.adhybridhealthservice.models.Item] - :param os_name: The name of the operating system installed in the machine. - :type os_name: str - :param os_version: The version of the operating system installed in the - machine. - :type os_version: str - :param properties: Server specific properties. - :type properties: list[~azure.mgmt.adhybridhealthservice.models.Item] - :param recommended_qfes: The list of recommended hotfixes for the server. - :type recommended_qfes: - list[~azure.mgmt.adhybridhealthservice.models.Hotfix] - :param resolved_alerts: The total count of alerts that are resolved for - this server. - :type resolved_alerts: int - :param role: The service role that is being monitored in the server. - :type role: str - :param server_reported_monitoring_level: The monitoring level reported by - the server. Possible values include: 'Partial', 'Full', 'Off' - :type server_reported_monitoring_level: str or - ~azure.mgmt.adhybridhealthservice.models.MonitoringLevel - :param status: The health status of the server. - :type status: str - """ - - _attribute_map = { - 'domain_name': {'key': 'domainName', 'type': 'str'}, - 'site_name': {'key': 'siteName', 'type': 'str'}, - 'adds_roles': {'key': 'addsRoles', 'type': '[str]'}, - 'gc_reachable': {'key': 'gcReachable', 'type': 'bool'}, - 'is_advertising': {'key': 'isAdvertising', 'type': 'bool'}, - 'pdc_reachable': {'key': 'pdcReachable', 'type': 'bool'}, - 'sysvol_state': {'key': 'sysvolState', 'type': 'bool'}, - 'dc_types': {'key': 'dcTypes', 'type': '[str]'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, - 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'dimensions': {'key': 'dimensions', 'type': '[Item]'}, - 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'disabled_reason': {'key': 'disabledReason', 'type': 'int'}, - 'installed_qfes': {'key': 'installedQfes', 'type': '[Hotfix]'}, - 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, - 'last_reboot': {'key': 'lastReboot', 'type': 'iso-8601'}, - 'last_server_reported_monitoring_level_change': {'key': 'lastServerReportedMonitoringLevelChange', 'type': 'iso-8601'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'machine_id': {'key': 'machineId', 'type': 'str'}, - 'machine_name': {'key': 'machineName', 'type': 'str'}, - 'monitoring_configurations_computed': {'key': 'monitoringConfigurationsComputed', 'type': '[Item]'}, - 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': '[Item]'}, - 'os_name': {'key': 'osName', 'type': 'str'}, - 'os_version': {'key': 'osVersion', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '[Item]'}, - 'recommended_qfes': {'key': 'recommendedQfes', 'type': '[Hotfix]'}, - 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, - 'role': {'key': 'role', 'type': 'str'}, - 'server_reported_monitoring_level': {'key': 'serverReportedMonitoringLevel', 'type': 'MonitoringLevel'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, domain_name: str=None, site_name: str=None, adds_roles=None, gc_reachable: bool=None, is_advertising: bool=None, pdc_reachable: bool=None, sysvol_state: bool=None, dc_types=None, service_member_id: str=None, service_id: str=None, tenant_id: str=None, active_alerts: int=None, additional_information: str=None, created_date=None, dimensions=None, disabled: bool=None, disabled_reason: int=None, installed_qfes=None, last_disabled=None, last_reboot=None, last_server_reported_monitoring_level_change=None, last_updated=None, machine_id: str=None, machine_name: str=None, monitoring_configurations_computed=None, monitoring_configurations_customized=None, os_name: str=None, os_version: str=None, properties=None, recommended_qfes=None, resolved_alerts: int=None, role: str=None, server_reported_monitoring_level=None, status: str=None, **kwargs) -> None: - super(AddsServiceMember, self).__init__(**kwargs) - self.domain_name = domain_name - self.site_name = site_name - self.adds_roles = adds_roles - self.gc_reachable = gc_reachable - self.is_advertising = is_advertising - self.pdc_reachable = pdc_reachable - self.sysvol_state = sysvol_state - self.dc_types = dc_types - self.service_member_id = service_member_id - self.service_id = service_id - self.tenant_id = tenant_id - self.active_alerts = active_alerts - self.additional_information = additional_information - self.created_date = created_date - self.dimensions = dimensions - self.disabled = disabled - self.disabled_reason = disabled_reason - self.installed_qfes = installed_qfes - self.last_disabled = last_disabled - self.last_reboot = last_reboot - self.last_server_reported_monitoring_level_change = last_server_reported_monitoring_level_change - self.last_updated = last_updated - self.machine_id = machine_id - self.machine_name = machine_name - self.monitoring_configurations_computed = monitoring_configurations_computed - self.monitoring_configurations_customized = monitoring_configurations_customized - self.os_name = os_name - self.os_version = os_version - self.properties = properties - self.recommended_qfes = recommended_qfes - self.resolved_alerts = resolved_alerts - self.role = role - self.server_reported_monitoring_level = server_reported_monitoring_level - self.status = status diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent.py deleted file mode 100644 index 15c18103da71..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 Agent(Model): - """The agent details. - - :param tenant_id: The tenant Id. - :type tenant_id: str - :param machine_id: The machine Id. - :type machine_id: str - :param credential: The agent credential details. - :type credential: object - :param machine_name: The machine name. - :type machine_name: str - :param agent_version: The agent version. - :type agent_version: str - :param created_date: The date and time, in UTC, when the agent was - created. - :type created_date: datetime - :param key: The connector hash key. - :type key: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'machine_id': {'key': 'machineId', 'type': 'str'}, - 'credential': {'key': 'credential', 'type': 'object'}, - 'machine_name': {'key': 'machineName', 'type': 'str'}, - 'agent_version': {'key': 'agentVersion', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'key': {'key': 'key', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Agent, self).__init__(**kwargs) - self.tenant_id = kwargs.get('tenant_id', None) - self.machine_id = kwargs.get('machine_id', None) - self.credential = kwargs.get('credential', None) - self.machine_name = kwargs.get('machine_name', None) - self.agent_version = kwargs.get('agent_version', None) - self.created_date = kwargs.get('created_date', None) - self.key = kwargs.get('key', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent_py3.py deleted file mode 100644 index ee318b643b1e..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/agent_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 Agent(Model): - """The agent details. - - :param tenant_id: The tenant Id. - :type tenant_id: str - :param machine_id: The machine Id. - :type machine_id: str - :param credential: The agent credential details. - :type credential: object - :param machine_name: The machine name. - :type machine_name: str - :param agent_version: The agent version. - :type agent_version: str - :param created_date: The date and time, in UTC, when the agent was - created. - :type created_date: datetime - :param key: The connector hash key. - :type key: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'machine_id': {'key': 'machineId', 'type': 'str'}, - 'credential': {'key': 'credential', 'type': 'object'}, - 'machine_name': {'key': 'machineName', 'type': 'str'}, - 'agent_version': {'key': 'agentVersion', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'key': {'key': 'key', 'type': 'str'}, - } - - def __init__(self, *, tenant_id: str=None, machine_id: str=None, credential=None, machine_name: str=None, agent_version: str=None, created_date=None, key: str=None, **kwargs) -> None: - super(Agent, self).__init__(**kwargs) - self.tenant_id = tenant_id - self.machine_id = machine_id - self.credential = credential - self.machine_name = machine_name - self.agent_version = agent_version - self.created_date = created_date - self.key = key diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py deleted file mode 100644 index fa60b8e1bdae..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py +++ /dev/null @@ -1,114 +0,0 @@ -# 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 Alert(Model): - """The alert details indicating an issue with service or server. - - :param alert_id: The alert Id. - :type alert_id: str - :param level: The alert level which indicates the severity of the alert. - Possible values include: 'Warning', 'Error', 'PreWarning' - :type level: str or ~azure.mgmt.adhybridhealthservice.models.Level - :param state: The alert state which can be either active or resolved with - multile resolution types. Possible values include: 'Active', - 'ResolvedByPositiveResult', 'ResolvedManually', 'ResolvedByTimer', - 'ResolvedByStateChange' - :type state: str or ~azure.mgmt.adhybridhealthservice.models.State - :param short_name: The alert short name. - :type short_name: str - :param display_name: The display name for the alert. - :type display_name: str - :param description: The alert description. - :type description: str - :param remediation: The alert remediation. - :type remediation: str - :param related_links: The help links to get more information related to - the alert. - :type related_links: - list[~azure.mgmt.adhybridhealthservice.models.HelpLink] - :param scope: The scope of the alert. Indicates if it is a service or a - server related alert. - :type scope: str - :param additional_information: Additional information related to the - alert. - :type additional_information: - list[~azure.mgmt.adhybridhealthservice.models.AdditionalInformation] - :param created_date: The date and time,in UTC,when the alert was created. - :type created_date: datetime - :param resolved_date: The date and time, in UTC, when the alert was - resolved. - :type resolved_date: datetime - :param last_updated: The date and time, in UTC, when the alert was last - updated. - :type last_updated: datetime - :param monitor_role_type: The monitoring role type for which the alert was - raised. - :type monitor_role_type: str - :param active_alert_properties: The active alert properties. - :type active_alert_properties: - list[~azure.mgmt.adhybridhealthservice.models.Item] - :param resolved_alert_properties: The resolved alert properties. - :type resolved_alert_properties: - list[~azure.mgmt.adhybridhealthservice.models.Item] - :param tenant_id: The tenant Id. - :type tenant_id: str - :param service_id: The service Id. - :type service_id: str - :param service_member_id: The server Id. - :type service_member_id: str - """ - - _attribute_map = { - 'alert_id': {'key': 'alertId', 'type': 'str'}, - 'level': {'key': 'level', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'short_name': {'key': 'shortName', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'remediation': {'key': 'remediation', 'type': 'str'}, - 'related_links': {'key': 'relatedLinks', 'type': '[HelpLink]'}, - 'scope': {'key': 'scope', 'type': 'str'}, - 'additional_information': {'key': 'additionalInformation', 'type': '[AdditionalInformation]'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'resolved_date': {'key': 'resolvedDate', 'type': 'iso-8601'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'monitor_role_type': {'key': 'monitorRoleType', 'type': 'str'}, - 'active_alert_properties': {'key': 'activeAlertProperties', 'type': '[Item]'}, - 'resolved_alert_properties': {'key': 'resolvedAlertProperties', 'type': '[Item]'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Alert, self).__init__(**kwargs) - self.alert_id = kwargs.get('alert_id', None) - self.level = kwargs.get('level', None) - self.state = kwargs.get('state', None) - self.short_name = kwargs.get('short_name', None) - self.display_name = kwargs.get('display_name', None) - self.description = kwargs.get('description', None) - self.remediation = kwargs.get('remediation', None) - self.related_links = kwargs.get('related_links', None) - self.scope = kwargs.get('scope', None) - self.additional_information = kwargs.get('additional_information', None) - self.created_date = kwargs.get('created_date', None) - self.resolved_date = kwargs.get('resolved_date', None) - self.last_updated = kwargs.get('last_updated', None) - self.monitor_role_type = kwargs.get('monitor_role_type', None) - self.active_alert_properties = kwargs.get('active_alert_properties', None) - self.resolved_alert_properties = kwargs.get('resolved_alert_properties', None) - self.tenant_id = kwargs.get('tenant_id', None) - self.service_id = kwargs.get('service_id', None) - self.service_member_id = kwargs.get('service_member_id', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback.py deleted file mode 100644 index aeb1d48509a9..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback.py +++ /dev/null @@ -1,59 +0,0 @@ -# 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 AlertFeedback(Model): - """The alert feedback details. - - :param level: The alert level which indicates the severity of the alert. - :type level: str - :param state: The alert state which can be either active or resolved with - multile resolution types. - :type state: str - :param short_name: The alert short name. - :type short_name: str - :param feedback: The feedback for the alert which indicates if the - customer likes or dislikes the alert. - :type feedback: str - :param comment: Additional comments related to the alert. - :type comment: str - :param consented_to_share: Indicates if the alert feedback can be shared - from product team. - :type consented_to_share: bool - :param service_member_id: The server Id of the alert. - :type service_member_id: str - :param created_date: The date and time,in UTC,when the alert was created. - :type created_date: datetime - """ - - _attribute_map = { - 'level': {'key': 'level', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'short_name': {'key': 'shortName', 'type': 'str'}, - 'feedback': {'key': 'feedback', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'consented_to_share': {'key': 'consentedToShare', 'type': 'bool'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(AlertFeedback, self).__init__(**kwargs) - self.level = kwargs.get('level', None) - self.state = kwargs.get('state', None) - self.short_name = kwargs.get('short_name', None) - self.feedback = kwargs.get('feedback', None) - self.comment = kwargs.get('comment', None) - self.consented_to_share = kwargs.get('consented_to_share', None) - self.service_member_id = kwargs.get('service_member_id', None) - self.created_date = kwargs.get('created_date', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_paged.py deleted file mode 100644 index 5c252b506778..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 AlertFeedbackPaged(Paged): - """ - A paging container for iterating over a list of :class:`AlertFeedback ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[AlertFeedback]'} - } - - def __init__(self, *args, **kwargs): - - super(AlertFeedbackPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_py3.py deleted file mode 100644 index 69980083737e..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_py3.py +++ /dev/null @@ -1,59 +0,0 @@ -# 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 AlertFeedback(Model): - """The alert feedback details. - - :param level: The alert level which indicates the severity of the alert. - :type level: str - :param state: The alert state which can be either active or resolved with - multile resolution types. - :type state: str - :param short_name: The alert short name. - :type short_name: str - :param feedback: The feedback for the alert which indicates if the - customer likes or dislikes the alert. - :type feedback: str - :param comment: Additional comments related to the alert. - :type comment: str - :param consented_to_share: Indicates if the alert feedback can be shared - from product team. - :type consented_to_share: bool - :param service_member_id: The server Id of the alert. - :type service_member_id: str - :param created_date: The date and time,in UTC,when the alert was created. - :type created_date: datetime - """ - - _attribute_map = { - 'level': {'key': 'level', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'short_name': {'key': 'shortName', 'type': 'str'}, - 'feedback': {'key': 'feedback', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'consented_to_share': {'key': 'consentedToShare', 'type': 'bool'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - } - - def __init__(self, *, level: str=None, state: str=None, short_name: str=None, feedback: str=None, comment: str=None, consented_to_share: bool=None, service_member_id: str=None, created_date=None, **kwargs) -> None: - super(AlertFeedback, self).__init__(**kwargs) - self.level = level - self.state = state - self.short_name = short_name - self.feedback = feedback - self.comment = comment - self.consented_to_share = consented_to_share - self.service_member_id = service_member_id - self.created_date = created_date diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_paged.py deleted file mode 100644 index a9185fe635af..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 AlertPaged(Paged): - """ - A paging container for iterating over a list of :class:`Alert ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Alert]'} - } - - def __init__(self, *args, **kwargs): - - super(AlertPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py deleted file mode 100644 index 4489168ae8b5..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py +++ /dev/null @@ -1,114 +0,0 @@ -# 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 Alert(Model): - """The alert details indicating an issue with service or server. - - :param alert_id: The alert Id. - :type alert_id: str - :param level: The alert level which indicates the severity of the alert. - Possible values include: 'Warning', 'Error', 'PreWarning' - :type level: str or ~azure.mgmt.adhybridhealthservice.models.Level - :param state: The alert state which can be either active or resolved with - multile resolution types. Possible values include: 'Active', - 'ResolvedByPositiveResult', 'ResolvedManually', 'ResolvedByTimer', - 'ResolvedByStateChange' - :type state: str or ~azure.mgmt.adhybridhealthservice.models.State - :param short_name: The alert short name. - :type short_name: str - :param display_name: The display name for the alert. - :type display_name: str - :param description: The alert description. - :type description: str - :param remediation: The alert remediation. - :type remediation: str - :param related_links: The help links to get more information related to - the alert. - :type related_links: - list[~azure.mgmt.adhybridhealthservice.models.HelpLink] - :param scope: The scope of the alert. Indicates if it is a service or a - server related alert. - :type scope: str - :param additional_information: Additional information related to the - alert. - :type additional_information: - list[~azure.mgmt.adhybridhealthservice.models.AdditionalInformation] - :param created_date: The date and time,in UTC,when the alert was created. - :type created_date: datetime - :param resolved_date: The date and time, in UTC, when the alert was - resolved. - :type resolved_date: datetime - :param last_updated: The date and time, in UTC, when the alert was last - updated. - :type last_updated: datetime - :param monitor_role_type: The monitoring role type for which the alert was - raised. - :type monitor_role_type: str - :param active_alert_properties: The active alert properties. - :type active_alert_properties: - list[~azure.mgmt.adhybridhealthservice.models.Item] - :param resolved_alert_properties: The resolved alert properties. - :type resolved_alert_properties: - list[~azure.mgmt.adhybridhealthservice.models.Item] - :param tenant_id: The tenant Id. - :type tenant_id: str - :param service_id: The service Id. - :type service_id: str - :param service_member_id: The server Id. - :type service_member_id: str - """ - - _attribute_map = { - 'alert_id': {'key': 'alertId', 'type': 'str'}, - 'level': {'key': 'level', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'short_name': {'key': 'shortName', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'remediation': {'key': 'remediation', 'type': 'str'}, - 'related_links': {'key': 'relatedLinks', 'type': '[HelpLink]'}, - 'scope': {'key': 'scope', 'type': 'str'}, - 'additional_information': {'key': 'additionalInformation', 'type': '[AdditionalInformation]'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'resolved_date': {'key': 'resolvedDate', 'type': 'iso-8601'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'monitor_role_type': {'key': 'monitorRoleType', 'type': 'str'}, - 'active_alert_properties': {'key': 'activeAlertProperties', 'type': '[Item]'}, - 'resolved_alert_properties': {'key': 'resolvedAlertProperties', 'type': '[Item]'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - } - - def __init__(self, *, alert_id: str=None, level=None, state=None, short_name: str=None, display_name: str=None, description: str=None, remediation: str=None, related_links=None, scope: str=None, additional_information=None, created_date=None, resolved_date=None, last_updated=None, monitor_role_type: str=None, active_alert_properties=None, resolved_alert_properties=None, tenant_id: str=None, service_id: str=None, service_member_id: str=None, **kwargs) -> None: - super(Alert, self).__init__(**kwargs) - self.alert_id = alert_id - self.level = level - self.state = state - self.short_name = short_name - self.display_name = display_name - self.description = description - self.remediation = remediation - self.related_links = related_links - self.scope = scope - self.additional_information = additional_information - self.created_date = created_date - self.resolved_date = resolved_date - self.last_updated = last_updated - self.monitor_role_type = monitor_role_type - self.active_alert_properties = active_alert_properties - self.resolved_alert_properties = resolved_alert_properties - self.tenant_id = tenant_id - self.service_id = service_id - self.service_member_id = service_member_id diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object.py deleted file mode 100644 index a6a547c2c03b..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 AssociatedObject(Model): - """Object that hold sync object details. - - :param display_name: The display name of the object. - :type display_name: str - :param distinguished_name: The distinguished name of the object. - :type distinguished_name: str - :param last_dir_sync_time: The last dirSync time. - :type last_dir_sync_time: datetime - :param mail: The email of the object. - :type mail: str - :param object_guid: The object guid. - :type object_guid: str - :param object_type: The object type. - :type object_type: str - :param onpremises_user_principal_name: The On-premises UPN. - :type onpremises_user_principal_name: str - :param proxy_addresses: The proxy addresses. - :type proxy_addresses: str - :param source_anchor: The source anchor. - :type source_anchor: str - :param source_of_authority: The source of authority. - :type source_of_authority: str - :param time_occurred: The time of the error. - :type time_occurred: datetime - :param user_principal_name: The UPN. - :type user_principal_name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'distinguished_name': {'key': 'distinguishedName', 'type': 'str'}, - 'last_dir_sync_time': {'key': 'lastDirSyncTime', 'type': 'iso-8601'}, - 'mail': {'key': 'mail', 'type': 'str'}, - 'object_guid': {'key': 'objectGuid', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'onpremises_user_principal_name': {'key': 'onpremisesUserPrincipalName', 'type': 'str'}, - 'proxy_addresses': {'key': 'proxyAddresses', 'type': 'str'}, - 'source_anchor': {'key': 'sourceAnchor', 'type': 'str'}, - 'source_of_authority': {'key': 'sourceOfAuthority', 'type': 'str'}, - 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, - 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AssociatedObject, self).__init__(**kwargs) - self.display_name = kwargs.get('display_name', None) - self.distinguished_name = kwargs.get('distinguished_name', None) - self.last_dir_sync_time = kwargs.get('last_dir_sync_time', None) - self.mail = kwargs.get('mail', None) - self.object_guid = kwargs.get('object_guid', None) - self.object_type = kwargs.get('object_type', None) - self.onpremises_user_principal_name = kwargs.get('onpremises_user_principal_name', None) - self.proxy_addresses = kwargs.get('proxy_addresses', None) - self.source_anchor = kwargs.get('source_anchor', None) - self.source_of_authority = kwargs.get('source_of_authority', None) - self.time_occurred = kwargs.get('time_occurred', None) - self.user_principal_name = kwargs.get('user_principal_name', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object_py3.py deleted file mode 100644 index fe343cc6e2bb..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object_py3.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 AssociatedObject(Model): - """Object that hold sync object details. - - :param display_name: The display name of the object. - :type display_name: str - :param distinguished_name: The distinguished name of the object. - :type distinguished_name: str - :param last_dir_sync_time: The last dirSync time. - :type last_dir_sync_time: datetime - :param mail: The email of the object. - :type mail: str - :param object_guid: The object guid. - :type object_guid: str - :param object_type: The object type. - :type object_type: str - :param onpremises_user_principal_name: The On-premises UPN. - :type onpremises_user_principal_name: str - :param proxy_addresses: The proxy addresses. - :type proxy_addresses: str - :param source_anchor: The source anchor. - :type source_anchor: str - :param source_of_authority: The source of authority. - :type source_of_authority: str - :param time_occurred: The time of the error. - :type time_occurred: datetime - :param user_principal_name: The UPN. - :type user_principal_name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'distinguished_name': {'key': 'distinguishedName', 'type': 'str'}, - 'last_dir_sync_time': {'key': 'lastDirSyncTime', 'type': 'iso-8601'}, - 'mail': {'key': 'mail', 'type': 'str'}, - 'object_guid': {'key': 'objectGuid', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'onpremises_user_principal_name': {'key': 'onpremisesUserPrincipalName', 'type': 'str'}, - 'proxy_addresses': {'key': 'proxyAddresses', 'type': 'str'}, - 'source_anchor': {'key': 'sourceAnchor', 'type': 'str'}, - 'source_of_authority': {'key': 'sourceOfAuthority', 'type': 'str'}, - 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, - 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, - } - - def __init__(self, *, display_name: str=None, distinguished_name: str=None, last_dir_sync_time=None, mail: str=None, object_guid: str=None, object_type: str=None, onpremises_user_principal_name: str=None, proxy_addresses: str=None, source_anchor: str=None, source_of_authority: str=None, time_occurred=None, user_principal_name: str=None, **kwargs) -> None: - super(AssociatedObject, self).__init__(**kwargs) - self.display_name = display_name - self.distinguished_name = distinguished_name - self.last_dir_sync_time = last_dir_sync_time - self.mail = mail - self.object_guid = object_guid - self.object_type = object_type - self.onpremises_user_principal_name = onpremises_user_principal_name - self.proxy_addresses = proxy_addresses - self.source_anchor = source_anchor - self.source_of_authority = source_of_authority - self.time_occurred = time_occurred - self.user_principal_name = user_principal_name diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta.py deleted file mode 100644 index 18d39fbc6f61..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 AttributeDelta(Model): - """The delta attributes. - - :param values: The delta values. - :type values: list[~azure.mgmt.adhybridhealthservice.models.ValueDelta] - :param name: The name of the attribute delta. - :type name: str - :param operation_type: The attribute delta operation type. Possible values - include: 'Undefined', 'Add', 'Replace', 'Update', 'Delete' - :type operation_type: str or - ~azure.mgmt.adhybridhealthservice.models.AttributeDeltaOperationType - :param value_type: The value type. Possible values include: 'Undefined', - 'Dn', 'Binary', 'String', 'Integer', 'Boolean' - :type value_type: str or - ~azure.mgmt.adhybridhealthservice.models.ValueType - :param multi_valued: Indicates if the attribute delta is multivalued or - not. - :type multi_valued: bool - """ - - _attribute_map = { - 'values': {'key': 'values', 'type': '[ValueDelta]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - 'value_type': {'key': 'valueType', 'type': 'str'}, - 'multi_valued': {'key': 'multiValued', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(AttributeDelta, self).__init__(**kwargs) - self.values = kwargs.get('values', None) - self.name = kwargs.get('name', None) - self.operation_type = kwargs.get('operation_type', None) - self.value_type = kwargs.get('value_type', None) - self.multi_valued = kwargs.get('multi_valued', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta_py3.py deleted file mode 100644 index b4eacda96ce0..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_delta_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 AttributeDelta(Model): - """The delta attributes. - - :param values: The delta values. - :type values: list[~azure.mgmt.adhybridhealthservice.models.ValueDelta] - :param name: The name of the attribute delta. - :type name: str - :param operation_type: The attribute delta operation type. Possible values - include: 'Undefined', 'Add', 'Replace', 'Update', 'Delete' - :type operation_type: str or - ~azure.mgmt.adhybridhealthservice.models.AttributeDeltaOperationType - :param value_type: The value type. Possible values include: 'Undefined', - 'Dn', 'Binary', 'String', 'Integer', 'Boolean' - :type value_type: str or - ~azure.mgmt.adhybridhealthservice.models.ValueType - :param multi_valued: Indicates if the attribute delta is multivalued or - not. - :type multi_valued: bool - """ - - _attribute_map = { - 'values': {'key': 'values', 'type': '[ValueDelta]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - 'value_type': {'key': 'valueType', 'type': 'str'}, - 'multi_valued': {'key': 'multiValued', 'type': 'bool'}, - } - - def __init__(self, *, values=None, name: str=None, operation_type=None, value_type=None, multi_valued: bool=None, **kwargs) -> None: - super(AttributeDelta, self).__init__(**kwargs) - self.values = values - self.name = name - self.operation_type = operation_type - self.value_type = value_type - self.multi_valued = multi_valued diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping.py deleted file mode 100644 index 8bf8e0a5521c..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 AttributeMapping(Model): - """The attribute mapping details. - - :param mapping_source: The mapping source. - :type mapping_source: - ~azure.mgmt.adhybridhealthservice.models.AttributeMppingSource - :param type: The attribute mapping type. Possible values include: - 'Constant', 'Direct', 'DnPart', 'Script' - :type type: str or - ~azure.mgmt.adhybridhealthservice.models.AttributeMappingType - :param destination_attribute: The destination attribute. - :type destination_attribute: str - :param context_id: The context Id. - :type context_id: str - """ - - _attribute_map = { - 'mapping_source': {'key': 'mappingSource', 'type': 'AttributeMppingSource'}, - 'type': {'key': 'type', 'type': 'str'}, - 'destination_attribute': {'key': 'destinationAttribute', 'type': 'str'}, - 'context_id': {'key': 'contextId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AttributeMapping, self).__init__(**kwargs) - self.mapping_source = kwargs.get('mapping_source', None) - self.type = kwargs.get('type', None) - self.destination_attribute = kwargs.get('destination_attribute', None) - self.context_id = kwargs.get('context_id', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping_py3.py deleted file mode 100644 index 6a1a196c5b03..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mapping_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 AttributeMapping(Model): - """The attribute mapping details. - - :param mapping_source: The mapping source. - :type mapping_source: - ~azure.mgmt.adhybridhealthservice.models.AttributeMppingSource - :param type: The attribute mapping type. Possible values include: - 'Constant', 'Direct', 'DnPart', 'Script' - :type type: str or - ~azure.mgmt.adhybridhealthservice.models.AttributeMappingType - :param destination_attribute: The destination attribute. - :type destination_attribute: str - :param context_id: The context Id. - :type context_id: str - """ - - _attribute_map = { - 'mapping_source': {'key': 'mappingSource', 'type': 'AttributeMppingSource'}, - 'type': {'key': 'type', 'type': 'str'}, - 'destination_attribute': {'key': 'destinationAttribute', 'type': 'str'}, - 'context_id': {'key': 'contextId', 'type': 'str'}, - } - - def __init__(self, *, mapping_source=None, type=None, destination_attribute: str=None, context_id: str=None, **kwargs) -> None: - super(AttributeMapping, self).__init__(**kwargs) - self.mapping_source = mapping_source - self.type = type - self.destination_attribute = destination_attribute - self.context_id = context_id diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source.py deleted file mode 100644 index 1f040a7058a4..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 AttributeMppingSource(Model): - """The attribute mapping source. - - :param source_attribute: The source attribute. - :type source_attribute: list[str] - :param dn_part: The value for dn part. - :type dn_part: int - :param script_context: The script context. - :type script_context: str - :param constant_value: The constant value. - :type constant_value: str - """ - - _attribute_map = { - 'source_attribute': {'key': 'sourceAttribute', 'type': '[str]'}, - 'dn_part': {'key': 'dnPart', 'type': 'int'}, - 'script_context': {'key': 'scriptContext', 'type': 'str'}, - 'constant_value': {'key': 'constantValue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AttributeMppingSource, self).__init__(**kwargs) - self.source_attribute = kwargs.get('source_attribute', None) - self.dn_part = kwargs.get('dn_part', None) - self.script_context = kwargs.get('script_context', None) - self.constant_value = kwargs.get('constant_value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source_py3.py deleted file mode 100644 index d5b99dd774da..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/attribute_mpping_source_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 AttributeMppingSource(Model): - """The attribute mapping source. - - :param source_attribute: The source attribute. - :type source_attribute: list[str] - :param dn_part: The value for dn part. - :type dn_part: int - :param script_context: The script context. - :type script_context: str - :param constant_value: The constant value. - :type constant_value: str - """ - - _attribute_map = { - 'source_attribute': {'key': 'sourceAttribute', 'type': '[str]'}, - 'dn_part': {'key': 'dnPart', 'type': 'int'}, - 'script_context': {'key': 'scriptContext', 'type': 'str'}, - 'constant_value': {'key': 'constantValue', 'type': 'str'}, - } - - def __init__(self, *, source_attribute=None, dn_part: int=None, script_context: str=None, constant_value: str=None, **kwargs) -> None: - super(AttributeMppingSource, self).__init__(**kwargs) - self.source_attribute = source_attribute - self.dn_part = dn_part - self.script_context = script_context - self.constant_value = constant_value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported.py deleted file mode 100644 index a47311511328..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 ChangeNotReimported(Model): - """The changes which are not re-imported. - - :param delta: The delta changes that is not re-imported. - :type delta: - ~azure.mgmt.adhybridhealthservice.models.ChangeNotReimportedDelta - :param entry: The object entry in a change that is not re-imported. - :type entry: - ~azure.mgmt.adhybridhealthservice.models.ChangeNotReimportedEntry - """ - - _attribute_map = { - 'delta': {'key': 'delta', 'type': 'ChangeNotReimportedDelta'}, - 'entry': {'key': 'entry', 'type': 'ChangeNotReimportedEntry'}, - } - - def __init__(self, **kwargs): - super(ChangeNotReimported, self).__init__(**kwargs) - self.delta = kwargs.get('delta', None) - self.entry = kwargs.get('entry', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta.py deleted file mode 100644 index ea65d93bff36..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 ChangeNotReimportedDelta(Model): - """The delta in a change that is not re-imported. - - :param anchor: The anchor. - :type anchor: str - :param dn_attributes: The delta attributes for distinguished names. - :type dn_attributes: - list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] - :param attributes: The attributes. - :type attributes: - list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] - :param operation_type: The operation type. Possible values include: - 'Undefined', 'None', 'Add', 'Replace', 'Update', 'Delete', 'Obsolete', - 'DeletAdd' - :type operation_type: str or - ~azure.mgmt.adhybridhealthservice.models.DeltaOperationType - """ - - _attribute_map = { - 'anchor': {'key': 'anchor', 'type': 'str'}, - 'dn_attributes': {'key': 'dnAttributes', 'type': '[AttributeDelta]'}, - 'attributes': {'key': 'attributes', 'type': '[AttributeDelta]'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ChangeNotReimportedDelta, self).__init__(**kwargs) - self.anchor = kwargs.get('anchor', None) - self.dn_attributes = kwargs.get('dn_attributes', None) - self.attributes = kwargs.get('attributes', None) - self.operation_type = kwargs.get('operation_type', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta_py3.py deleted file mode 100644 index 96dd92fcb1c3..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_delta_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 ChangeNotReimportedDelta(Model): - """The delta in a change that is not re-imported. - - :param anchor: The anchor. - :type anchor: str - :param dn_attributes: The delta attributes for distinguished names. - :type dn_attributes: - list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] - :param attributes: The attributes. - :type attributes: - list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] - :param operation_type: The operation type. Possible values include: - 'Undefined', 'None', 'Add', 'Replace', 'Update', 'Delete', 'Obsolete', - 'DeletAdd' - :type operation_type: str or - ~azure.mgmt.adhybridhealthservice.models.DeltaOperationType - """ - - _attribute_map = { - 'anchor': {'key': 'anchor', 'type': 'str'}, - 'dn_attributes': {'key': 'dnAttributes', 'type': '[AttributeDelta]'}, - 'attributes': {'key': 'attributes', 'type': '[AttributeDelta]'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - def __init__(self, *, anchor: str=None, dn_attributes=None, attributes=None, operation_type=None, **kwargs) -> None: - super(ChangeNotReimportedDelta, self).__init__(**kwargs) - self.anchor = anchor - self.dn_attributes = dn_attributes - self.attributes = attributes - self.operation_type = operation_type diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry.py deleted file mode 100644 index a1761342d414..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 ChangeNotReimportedEntry(Model): - """The object entry in a change that is not re-imported. - - :param anchor: The anchor. - :type anchor: str - :param parent_anchor: The parent anchor. - :type parent_anchor: str - :param primary_object_class: The primary object class. - :type primary_object_class: str - :param object_classes: The olist of object classes. - :type object_classes: list[str] - :param dn_attributes: The delta attributes for distinguished names. - :type dn_attributes: - list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] - :param attributes: The attributes. - :type attributes: - list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] - :param dn: The distinguished name. - :type dn: str - """ - - _attribute_map = { - 'anchor': {'key': 'anchor', 'type': 'str'}, - 'parent_anchor': {'key': 'parentAnchor', 'type': 'str'}, - 'primary_object_class': {'key': 'primaryObjectClass', 'type': 'str'}, - 'object_classes': {'key': 'objectClasses', 'type': '[str]'}, - 'dn_attributes': {'key': 'dnAttributes', 'type': '[AttributeDelta]'}, - 'attributes': {'key': 'attributes', 'type': '[AttributeDelta]'}, - 'dn': {'key': 'dn', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ChangeNotReimportedEntry, self).__init__(**kwargs) - self.anchor = kwargs.get('anchor', None) - self.parent_anchor = kwargs.get('parent_anchor', None) - self.primary_object_class = kwargs.get('primary_object_class', None) - self.object_classes = kwargs.get('object_classes', None) - self.dn_attributes = kwargs.get('dn_attributes', None) - self.attributes = kwargs.get('attributes', None) - self.dn = kwargs.get('dn', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry_py3.py deleted file mode 100644 index 18a1f9ae2acb..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_entry_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 ChangeNotReimportedEntry(Model): - """The object entry in a change that is not re-imported. - - :param anchor: The anchor. - :type anchor: str - :param parent_anchor: The parent anchor. - :type parent_anchor: str - :param primary_object_class: The primary object class. - :type primary_object_class: str - :param object_classes: The olist of object classes. - :type object_classes: list[str] - :param dn_attributes: The delta attributes for distinguished names. - :type dn_attributes: - list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] - :param attributes: The attributes. - :type attributes: - list[~azure.mgmt.adhybridhealthservice.models.AttributeDelta] - :param dn: The distinguished name. - :type dn: str - """ - - _attribute_map = { - 'anchor': {'key': 'anchor', 'type': 'str'}, - 'parent_anchor': {'key': 'parentAnchor', 'type': 'str'}, - 'primary_object_class': {'key': 'primaryObjectClass', 'type': 'str'}, - 'object_classes': {'key': 'objectClasses', 'type': '[str]'}, - 'dn_attributes': {'key': 'dnAttributes', 'type': '[AttributeDelta]'}, - 'attributes': {'key': 'attributes', 'type': '[AttributeDelta]'}, - 'dn': {'key': 'dn', 'type': 'str'}, - } - - def __init__(self, *, anchor: str=None, parent_anchor: str=None, primary_object_class: str=None, object_classes=None, dn_attributes=None, attributes=None, dn: str=None, **kwargs) -> None: - super(ChangeNotReimportedEntry, self).__init__(**kwargs) - self.anchor = anchor - self.parent_anchor = parent_anchor - self.primary_object_class = primary_object_class - self.object_classes = object_classes - self.dn_attributes = dn_attributes - self.attributes = attributes - self.dn = dn diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_py3.py deleted file mode 100644 index 95a23c8a4566..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/change_not_reimported_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 ChangeNotReimported(Model): - """The changes which are not re-imported. - - :param delta: The delta changes that is not re-imported. - :type delta: - ~azure.mgmt.adhybridhealthservice.models.ChangeNotReimportedDelta - :param entry: The object entry in a change that is not re-imported. - :type entry: - ~azure.mgmt.adhybridhealthservice.models.ChangeNotReimportedEntry - """ - - _attribute_map = { - 'delta': {'key': 'delta', 'type': 'ChangeNotReimportedDelta'}, - 'entry': {'key': 'entry', 'type': 'ChangeNotReimportedEntry'}, - } - - def __init__(self, *, delta=None, entry=None, **kwargs) -> None: - super(ChangeNotReimported, self).__init__(**kwargs) - self.delta = delta - self.entry = entry diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py deleted file mode 100644 index b06c067c800e..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py +++ /dev/null @@ -1,88 +0,0 @@ -# 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 Connector(Model): - """The connect details. - - :param connector_id: The connector Id. - :type connector_id: str - :param id: The connector Id. - :type id: str - :param name: The connector name. - :type name: str - :param version: The connector version - :type version: int - :param type: The connector type. - :type type: str - :param description: The connector description. - :type description: str - :param schema_xml: The schema xml for the connector. - :type schema_xml: str - :param password_management_settings: The password management settings of - the connector. - :type password_management_settings: object - :param password_hash_sync_configuration: The password hash synchronization - configuration of the connector. - :type password_hash_sync_configuration: object - :param time_created: The date and time when this connector was created. - :type time_created: datetime - :param time_last_modified: The date and time when this connector was last - modified. - :type time_last_modified: datetime - :param partitions: The partitions of the connector. - :type partitions: list[~azure.mgmt.adhybridhealthservice.models.Partition] - :param run_profiles: The run profiles of the connector. - :type run_profiles: - list[~azure.mgmt.adhybridhealthservice.models.RunProfile] - :param classes_included: The class inclusion list of the connector. - :type classes_included: list[str] - :param attributes_included: The attribute inclusion list of the connector. - :type attributes_included: list[str] - """ - - _attribute_map = { - 'connector_id': {'key': 'connectorId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, - 'password_management_settings': {'key': 'passwordManagementSettings', 'type': 'object'}, - 'password_hash_sync_configuration': {'key': 'passwordHashSyncConfiguration', 'type': 'object'}, - 'time_created': {'key': 'timeCreated', 'type': 'iso-8601'}, - 'time_last_modified': {'key': 'timeLastModified', 'type': 'iso-8601'}, - 'partitions': {'key': 'partitions', 'type': '[Partition]'}, - 'run_profiles': {'key': 'runProfiles', 'type': '[RunProfile]'}, - 'classes_included': {'key': 'classesIncluded', 'type': '[str]'}, - 'attributes_included': {'key': 'attributesIncluded', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(Connector, self).__init__(**kwargs) - self.connector_id = kwargs.get('connector_id', None) - self.id = kwargs.get('id', None) - self.name = kwargs.get('name', None) - self.version = kwargs.get('version', None) - self.type = kwargs.get('type', None) - self.description = kwargs.get('description', None) - self.schema_xml = kwargs.get('schema_xml', None) - self.password_management_settings = kwargs.get('password_management_settings', None) - self.password_hash_sync_configuration = kwargs.get('password_hash_sync_configuration', None) - self.time_created = kwargs.get('time_created', None) - self.time_last_modified = kwargs.get('time_last_modified', None) - self.partitions = kwargs.get('partitions', None) - self.run_profiles = kwargs.get('run_profiles', None) - self.classes_included = kwargs.get('classes_included', None) - self.attributes_included = kwargs.get('attributes_included', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error.py deleted file mode 100644 index 3845f131e9e2..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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 ConnectorConnectionError(Model): - """The connector connection error. - - :param id: The error Id. - :type id: str - :param run_step_result_id: The run step result Id. - :type run_step_result_id: str - :param connector_id: The connector Id. - :type connector_id: str - :param type: The type of error. - :type type: str - :param error_code: The error code. - :type error_code: str - :param message: The message for the connection error. - :type message: str - :param time_occured: The time when the connection error occured. - :type time_occured: datetime - :param server: The server where the connection error happened. - :type server: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, - 'connector_id': {'key': 'connectorId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, - 'server': {'key': 'server', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ConnectorConnectionError, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.run_step_result_id = kwargs.get('run_step_result_id', None) - self.connector_id = kwargs.get('connector_id', None) - self.type = kwargs.get('type', None) - self.error_code = kwargs.get('error_code', None) - self.message = kwargs.get('message', None) - self.time_occured = kwargs.get('time_occured', None) - self.server = kwargs.get('server', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error_py3.py deleted file mode 100644 index 12d055d7d9b5..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_error_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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 ConnectorConnectionError(Model): - """The connector connection error. - - :param id: The error Id. - :type id: str - :param run_step_result_id: The run step result Id. - :type run_step_result_id: str - :param connector_id: The connector Id. - :type connector_id: str - :param type: The type of error. - :type type: str - :param error_code: The error code. - :type error_code: str - :param message: The message for the connection error. - :type message: str - :param time_occured: The time when the connection error occured. - :type time_occured: datetime - :param server: The server where the connection error happened. - :type server: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, - 'connector_id': {'key': 'connectorId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, - 'server': {'key': 'server', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, run_step_result_id: str=None, connector_id: str=None, type: str=None, error_code: str=None, message: str=None, time_occured=None, server: str=None, **kwargs) -> None: - super(ConnectorConnectionError, self).__init__(**kwargs) - self.id = id - self.run_step_result_id = run_step_result_id - self.connector_id = connector_id - self.type = type - self.error_code = error_code - self.message = message - self.time_occured = time_occured - self.server = server diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors.py deleted file mode 100644 index 365da9b3e344..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 ConnectorConnectionErrors(Model): - """The list of connector connection errors. - - :param value: The value returned by the operation. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.ConnectorConnectionError] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ConnectorConnectionError]'}, - } - - def __init__(self, **kwargs): - super(ConnectorConnectionErrors, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors_py3.py deleted file mode 100644 index ff631d65ec5b..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 ConnectorConnectionErrors(Model): - """The list of connector connection errors. - - :param value: The value returned by the operation. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.ConnectorConnectionError] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ConnectorConnectionError]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ConnectorConnectionErrors, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error.py deleted file mode 100644 index a189fddfc9be..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error.py +++ /dev/null @@ -1,80 +0,0 @@ -# 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 ConnectorObjectError(Model): - """The connector object error. - - :param id: The error Id. - :type id: str - :param run_step_result_id: The run step result Id. - :type run_step_result_id: str - :param connector_id: The connector Id. - :type connector_id: str - :param type: The type of error. - :type type: str - :param error_code: The error code. - :type error_code: str - :param message: The message for the object error. - :type message: str - :param entry_number: The entry number for object error occured. - :type entry_number: int - :param line_number: The line number for the object error. - :type line_number: int - :param column_number: The column number for the object error. - :type column_number: int - :param dn: The distingished name of the object. - :type dn: str - :param anchor: The name for the anchor of the object. - :type anchor: str - :param attribute_name: The attribute name of the object. - :type attribute_name: str - :param server_error_detail: The server side error details. - :type server_error_detail: str - :param values: The value corresponding to attribute name. - :type values: list[str] - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, - 'connector_id': {'key': 'connectorId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'entry_number': {'key': 'entryNumber', 'type': 'int'}, - 'line_number': {'key': 'lineNumber', 'type': 'int'}, - 'column_number': {'key': 'columnNumber', 'type': 'int'}, - 'dn': {'key': 'dn', 'type': 'str'}, - 'anchor': {'key': 'anchor', 'type': 'str'}, - 'attribute_name': {'key': 'attributeName', 'type': 'str'}, - 'server_error_detail': {'key': 'serverErrorDetail', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(ConnectorObjectError, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.run_step_result_id = kwargs.get('run_step_result_id', None) - self.connector_id = kwargs.get('connector_id', None) - self.type = kwargs.get('type', None) - self.error_code = kwargs.get('error_code', None) - self.message = kwargs.get('message', None) - self.entry_number = kwargs.get('entry_number', None) - self.line_number = kwargs.get('line_number', None) - self.column_number = kwargs.get('column_number', None) - self.dn = kwargs.get('dn', None) - self.anchor = kwargs.get('anchor', None) - self.attribute_name = kwargs.get('attribute_name', None) - self.server_error_detail = kwargs.get('server_error_detail', None) - self.values = kwargs.get('values', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error_py3.py deleted file mode 100644 index 319de7a85a05..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_error_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# 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 ConnectorObjectError(Model): - """The connector object error. - - :param id: The error Id. - :type id: str - :param run_step_result_id: The run step result Id. - :type run_step_result_id: str - :param connector_id: The connector Id. - :type connector_id: str - :param type: The type of error. - :type type: str - :param error_code: The error code. - :type error_code: str - :param message: The message for the object error. - :type message: str - :param entry_number: The entry number for object error occured. - :type entry_number: int - :param line_number: The line number for the object error. - :type line_number: int - :param column_number: The column number for the object error. - :type column_number: int - :param dn: The distingished name of the object. - :type dn: str - :param anchor: The name for the anchor of the object. - :type anchor: str - :param attribute_name: The attribute name of the object. - :type attribute_name: str - :param server_error_detail: The server side error details. - :type server_error_detail: str - :param values: The value corresponding to attribute name. - :type values: list[str] - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, - 'connector_id': {'key': 'connectorId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'entry_number': {'key': 'entryNumber', 'type': 'int'}, - 'line_number': {'key': 'lineNumber', 'type': 'int'}, - 'column_number': {'key': 'columnNumber', 'type': 'int'}, - 'dn': {'key': 'dn', 'type': 'str'}, - 'anchor': {'key': 'anchor', 'type': 'str'}, - 'attribute_name': {'key': 'attributeName', 'type': 'str'}, - 'server_error_detail': {'key': 'serverErrorDetail', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[str]'}, - } - - def __init__(self, *, id: str=None, run_step_result_id: str=None, connector_id: str=None, type: str=None, error_code: str=None, message: str=None, entry_number: int=None, line_number: int=None, column_number: int=None, dn: str=None, anchor: str=None, attribute_name: str=None, server_error_detail: str=None, values=None, **kwargs) -> None: - super(ConnectorObjectError, self).__init__(**kwargs) - self.id = id - self.run_step_result_id = run_step_result_id - self.connector_id = connector_id - self.type = type - self.error_code = error_code - self.message = message - self.entry_number = entry_number - self.line_number = line_number - self.column_number = column_number - self.dn = dn - self.anchor = anchor - self.attribute_name = attribute_name - self.server_error_detail = server_error_detail - self.values = values diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors.py deleted file mode 100644 index 77beba70f0a9..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 ConnectorObjectErrors(Model): - """The list of connector object errors. - - :param value: The value returned by the operation. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.ConnectorObjectError] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ConnectorObjectError]'}, - } - - def __init__(self, **kwargs): - super(ConnectorObjectErrors, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors_py3.py deleted file mode 100644 index be2bf709d9e5..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 ConnectorObjectErrors(Model): - """The list of connector object errors. - - :param value: The value returned by the operation. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.ConnectorObjectError] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ConnectorObjectError]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ConnectorObjectErrors, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_paged.py deleted file mode 100644 index 1960adc632bb..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 ConnectorPaged(Paged): - """ - A paging container for iterating over a list of :class:`Connector ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Connector]'} - } - - def __init__(self, *args, **kwargs): - - super(ConnectorPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py deleted file mode 100644 index 44e94c8e426d..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py +++ /dev/null @@ -1,88 +0,0 @@ -# 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 Connector(Model): - """The connect details. - - :param connector_id: The connector Id. - :type connector_id: str - :param id: The connector Id. - :type id: str - :param name: The connector name. - :type name: str - :param version: The connector version - :type version: int - :param type: The connector type. - :type type: str - :param description: The connector description. - :type description: str - :param schema_xml: The schema xml for the connector. - :type schema_xml: str - :param password_management_settings: The password management settings of - the connector. - :type password_management_settings: object - :param password_hash_sync_configuration: The password hash synchronization - configuration of the connector. - :type password_hash_sync_configuration: object - :param time_created: The date and time when this connector was created. - :type time_created: datetime - :param time_last_modified: The date and time when this connector was last - modified. - :type time_last_modified: datetime - :param partitions: The partitions of the connector. - :type partitions: list[~azure.mgmt.adhybridhealthservice.models.Partition] - :param run_profiles: The run profiles of the connector. - :type run_profiles: - list[~azure.mgmt.adhybridhealthservice.models.RunProfile] - :param classes_included: The class inclusion list of the connector. - :type classes_included: list[str] - :param attributes_included: The attribute inclusion list of the connector. - :type attributes_included: list[str] - """ - - _attribute_map = { - 'connector_id': {'key': 'connectorId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, - 'password_management_settings': {'key': 'passwordManagementSettings', 'type': 'object'}, - 'password_hash_sync_configuration': {'key': 'passwordHashSyncConfiguration', 'type': 'object'}, - 'time_created': {'key': 'timeCreated', 'type': 'iso-8601'}, - 'time_last_modified': {'key': 'timeLastModified', 'type': 'iso-8601'}, - 'partitions': {'key': 'partitions', 'type': '[Partition]'}, - 'run_profiles': {'key': 'runProfiles', 'type': '[RunProfile]'}, - 'classes_included': {'key': 'classesIncluded', 'type': '[str]'}, - 'attributes_included': {'key': 'attributesIncluded', 'type': '[str]'}, - } - - def __init__(self, *, connector_id: str=None, id: str=None, name: str=None, version: int=None, type: str=None, description: str=None, schema_xml: str=None, password_management_settings=None, password_hash_sync_configuration=None, time_created=None, time_last_modified=None, partitions=None, run_profiles=None, classes_included=None, attributes_included=None, **kwargs) -> None: - super(Connector, self).__init__(**kwargs) - self.connector_id = connector_id - self.id = id - self.name = name - self.version = version - self.type = type - self.description = description - self.schema_xml = schema_xml - self.password_management_settings = password_management_settings - self.password_hash_sync_configuration = password_hash_sync_configuration - self.time_created = time_created - self.time_last_modified = time_last_modified - self.partitions = partitions - self.run_profiles = run_profiles - self.classes_included = classes_included - self.attributes_included = attributes_included diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential.py deleted file mode 100644 index 446fc7fe12ac..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 Credential(Model): - """The credential for a given server. - - :param identifier: The credential identifier. - :type identifier: str - :param type: The type of credential. - :type type: str - :param credential_data: The credential data. - :type credential_data: list[str] - """ - - _attribute_map = { - 'identifier': {'key': 'identifier', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'credential_data': {'key': 'credentialData', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(Credential, self).__init__(**kwargs) - self.identifier = kwargs.get('identifier', None) - self.type = kwargs.get('type', None) - self.credential_data = kwargs.get('credential_data', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_paged.py deleted file mode 100644 index 8ffef1ce0e75..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 CredentialPaged(Paged): - """ - A paging container for iterating over a list of :class:`Credential ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Credential]'} - } - - def __init__(self, *args, **kwargs): - - super(CredentialPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_py3.py deleted file mode 100644 index f82642886ac3..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 Credential(Model): - """The credential for a given server. - - :param identifier: The credential identifier. - :type identifier: str - :param type: The type of credential. - :type type: str - :param credential_data: The credential data. - :type credential_data: list[str] - """ - - _attribute_map = { - 'identifier': {'key': 'identifier', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'credential_data': {'key': 'credentialData', 'type': '[str]'}, - } - - def __init__(self, *, identifier: str=None, type: str=None, credential_data=None, **kwargs) -> None: - super(Credential, self).__init__(**kwargs) - self.identifier = identifier - self.type = type - self.credential_data = credential_data diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension.py deleted file mode 100644 index adb66ea70829..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension.py +++ /dev/null @@ -1,69 +0,0 @@ -# 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 Dimension(Model): - """The connector object error. - - :param health: The health status for the domain controller. Possible - values include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' - :type health: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus - :param simple_properties: List of service specific configuration - properties. - :type simple_properties: object - :param active_alerts: The count of alerts that are currently active for - the service. - :type active_alerts: int - :param additional_information: The additional information related to the - service. - :type additional_information: str - :param last_updated: The date or time , in UTC, when the service - properties were last updated. - :type last_updated: datetime - :param display_name: The display name of the service. - :type display_name: str - :param resolved_alerts: The total count of alerts that has been resolved - for the service. - :type resolved_alerts: int - :param signature: The signature of the service. - :type signature: str - :param type: The service type for the services onboarded to Azure Active - Directory Connect Health. Depending on whether the service is monitoring, - ADFS, Sync or ADDS roles, the service type can either be - AdFederationService or AadSyncService or AdDomainService. - :type type: str - """ - - _attribute_map = { - 'health': {'key': 'health', 'type': 'str'}, - 'simple_properties': {'key': 'simpleProperties', 'type': 'object'}, - 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, - 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, - 'signature': {'key': 'signature', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Dimension, self).__init__(**kwargs) - self.health = kwargs.get('health', None) - self.simple_properties = kwargs.get('simple_properties', None) - self.active_alerts = kwargs.get('active_alerts', None) - self.additional_information = kwargs.get('additional_information', None) - self.last_updated = kwargs.get('last_updated', None) - self.display_name = kwargs.get('display_name', None) - self.resolved_alerts = kwargs.get('resolved_alerts', None) - self.signature = kwargs.get('signature', None) - self.type = kwargs.get('type', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_paged.py deleted file mode 100644 index 1f18fa53897f..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 DimensionPaged(Paged): - """ - A paging container for iterating over a list of :class:`Dimension ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Dimension]'} - } - - def __init__(self, *args, **kwargs): - - super(DimensionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py deleted file mode 100644 index ce7228d6fb1c..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py +++ /dev/null @@ -1,69 +0,0 @@ -# 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 Dimension(Model): - """The connector object error. - - :param health: The health status for the domain controller. Possible - values include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' - :type health: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus - :param simple_properties: List of service specific configuration - properties. - :type simple_properties: object - :param active_alerts: The count of alerts that are currently active for - the service. - :type active_alerts: int - :param additional_information: The additional information related to the - service. - :type additional_information: str - :param last_updated: The date or time , in UTC, when the service - properties were last updated. - :type last_updated: datetime - :param display_name: The display name of the service. - :type display_name: str - :param resolved_alerts: The total count of alerts that has been resolved - for the service. - :type resolved_alerts: int - :param signature: The signature of the service. - :type signature: str - :param type: The service type for the services onboarded to Azure Active - Directory Connect Health. Depending on whether the service is monitoring, - ADFS, Sync or ADDS roles, the service type can either be - AdFederationService or AadSyncService or AdDomainService. - :type type: str - """ - - _attribute_map = { - 'health': {'key': 'health', 'type': 'str'}, - 'simple_properties': {'key': 'simpleProperties', 'type': 'object'}, - 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, - 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, - 'signature': {'key': 'signature', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, health=None, simple_properties=None, active_alerts: int=None, additional_information: str=None, last_updated=None, display_name: str=None, resolved_alerts: int=None, signature: str=None, type: str=None, **kwargs) -> None: - super(Dimension, self).__init__(**kwargs) - self.health = health - self.simple_properties = simple_properties - self.active_alerts = active_alerts - self.additional_information = additional_information - self.last_updated = last_updated - self.display_name = display_name - self.resolved_alerts = resolved_alerts - self.signature = signature - self.type = type diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display.py deleted file mode 100644 index 27babbbb5f22..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 Display(Model): - """Displays the details related to operations supported by Azure Active - Directory Connect Health. - - :param description: The description for the operation. - :type description: str - :param operation: The details of the operation. - :type operation: str - :param provider: The provider name. - :type provider: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Display, self).__init__(**kwargs) - self.description = kwargs.get('description', None) - self.operation = kwargs.get('operation', None) - self.provider = kwargs.get('provider', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display_py3.py deleted file mode 100644 index 0b1a7b3d6625..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/display_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 Display(Model): - """Displays the details related to operations supported by Azure Active - Directory Connect Health. - - :param description: The description for the operation. - :type description: str - :param operation: The details of the operation. - :type operation: str - :param provider: The provider name. - :type provider: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - } - - def __init__(self, *, description: str=None, operation: str=None, provider: str=None, **kwargs) -> None: - super(Display, self).__init__(**kwargs) - self.description = description - self.operation = operation - self.provider = provider diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count.py deleted file mode 100644 index 4a45c001fe7c..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 ErrorCount(Model): - """The error count details. - - :param error_bucket: The error bucket. - :type error_bucket: str - :param count: The error count. - :type count: int - :param truncated: Indicates if the error count is truncated or not. - :type truncated: bool - """ - - _attribute_map = { - 'error_bucket': {'key': 'errorBucket', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'int'}, - 'truncated': {'key': 'truncated', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(ErrorCount, self).__init__(**kwargs) - self.error_bucket = kwargs.get('error_bucket', None) - self.count = kwargs.get('count', None) - self.truncated = kwargs.get('truncated', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_paged.py deleted file mode 100644 index 603405010ccc..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 ErrorCountPaged(Paged): - """ - A paging container for iterating over a list of :class:`ErrorCount ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ErrorCount]'} - } - - def __init__(self, *args, **kwargs): - - super(ErrorCountPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_py3.py deleted file mode 100644 index 61a71398c8c1..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 ErrorCount(Model): - """The error count details. - - :param error_bucket: The error bucket. - :type error_bucket: str - :param count: The error count. - :type count: int - :param truncated: Indicates if the error count is truncated or not. - :type truncated: bool - """ - - _attribute_map = { - 'error_bucket': {'key': 'errorBucket', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'int'}, - 'truncated': {'key': 'truncated', 'type': 'bool'}, - } - - def __init__(self, *, error_bucket: str=None, count: int=None, truncated: bool=None, **kwargs) -> None: - super(ErrorCount, self).__init__(**kwargs) - self.error_bucket = error_bucket - self.count = count - self.truncated = truncated diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail.py deleted file mode 100644 index 37c4db0b56d6..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 ErrorDetail(Model): - """The error details. - - :param description: The error description. - :type description: str - :param kb_url: The knowledge base article url which contains more - information about the error. - :type kb_url: str - :param detail: Additional details related to the error. - :type detail: str - :param objects_with_sync_error: The list of objects with sync errors. - :type objects_with_sync_error: - ~azure.mgmt.adhybridhealthservice.models.ObjectWithSyncError - :param object_with_sync_error: The object with sync error. - :type object_with_sync_error: - ~azure.mgmt.adhybridhealthservice.models.MergedExportError - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'kb_url': {'key': 'kbUrl', 'type': 'str'}, - 'detail': {'key': 'detail', 'type': 'str'}, - 'objects_with_sync_error': {'key': 'objectsWithSyncError', 'type': 'ObjectWithSyncError'}, - 'object_with_sync_error': {'key': 'objectWithSyncError', 'type': 'MergedExportError'}, - } - - def __init__(self, **kwargs): - super(ErrorDetail, self).__init__(**kwargs) - self.description = kwargs.get('description', None) - self.kb_url = kwargs.get('kb_url', None) - self.detail = kwargs.get('detail', None) - self.objects_with_sync_error = kwargs.get('objects_with_sync_error', None) - self.object_with_sync_error = kwargs.get('object_with_sync_error', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail_py3.py deleted file mode 100644 index fa0ace5d764e..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_detail_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 ErrorDetail(Model): - """The error details. - - :param description: The error description. - :type description: str - :param kb_url: The knowledge base article url which contains more - information about the error. - :type kb_url: str - :param detail: Additional details related to the error. - :type detail: str - :param objects_with_sync_error: The list of objects with sync errors. - :type objects_with_sync_error: - ~azure.mgmt.adhybridhealthservice.models.ObjectWithSyncError - :param object_with_sync_error: The object with sync error. - :type object_with_sync_error: - ~azure.mgmt.adhybridhealthservice.models.MergedExportError - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'kb_url': {'key': 'kbUrl', 'type': 'str'}, - 'detail': {'key': 'detail', 'type': 'str'}, - 'objects_with_sync_error': {'key': 'objectsWithSyncError', 'type': 'ObjectWithSyncError'}, - 'object_with_sync_error': {'key': 'objectWithSyncError', 'type': 'MergedExportError'}, - } - - def __init__(self, *, description: str=None, kb_url: str=None, detail: str=None, objects_with_sync_error=None, object_with_sync_error=None, **kwargs) -> None: - super(ErrorDetail, self).__init__(**kwargs) - self.description = description - self.kb_url = kb_url - self.detail = detail - self.objects_with_sync_error = objects_with_sync_error - self.object_with_sync_error = object_with_sync_error diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry.py deleted file mode 100644 index b1a3f8b59354..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 ErrorReportUsersEntry(Model): - """The bad password login attempt details. - - :param user_id: The user ID value. - :type user_id: str - :param ip_address: The Ip address corresponding to the last error event. - :type ip_address: str - :param last_updated: The date and time when the last error event was - logged. - :type last_updated: datetime - :param unique_ip_addresses: The list of unique IP addresses. - :type unique_ip_addresses: str - :param total_error_attempts: The total count of specific error events. - :type total_error_attempts: int - """ - - _attribute_map = { - 'user_id': {'key': 'userId', 'type': 'str'}, - 'ip_address': {'key': 'ipAddress', 'type': 'str'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'unique_ip_addresses': {'key': 'uniqueIpAddresses', 'type': 'str'}, - 'total_error_attempts': {'key': 'totalErrorAttempts', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ErrorReportUsersEntry, self).__init__(**kwargs) - self.user_id = kwargs.get('user_id', None) - self.ip_address = kwargs.get('ip_address', None) - self.last_updated = kwargs.get('last_updated', None) - self.unique_ip_addresses = kwargs.get('unique_ip_addresses', None) - self.total_error_attempts = kwargs.get('total_error_attempts', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_paged.py deleted file mode 100644 index dc13ce9b5c45..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 ErrorReportUsersEntryPaged(Paged): - """ - A paging container for iterating over a list of :class:`ErrorReportUsersEntry ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ErrorReportUsersEntry]'} - } - - def __init__(self, *args, **kwargs): - - super(ErrorReportUsersEntryPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_py3.py deleted file mode 100644 index 055c75321c94..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 ErrorReportUsersEntry(Model): - """The bad password login attempt details. - - :param user_id: The user ID value. - :type user_id: str - :param ip_address: The Ip address corresponding to the last error event. - :type ip_address: str - :param last_updated: The date and time when the last error event was - logged. - :type last_updated: datetime - :param unique_ip_addresses: The list of unique IP addresses. - :type unique_ip_addresses: str - :param total_error_attempts: The total count of specific error events. - :type total_error_attempts: int - """ - - _attribute_map = { - 'user_id': {'key': 'userId', 'type': 'str'}, - 'ip_address': {'key': 'ipAddress', 'type': 'str'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'unique_ip_addresses': {'key': 'uniqueIpAddresses', 'type': 'str'}, - 'total_error_attempts': {'key': 'totalErrorAttempts', 'type': 'int'}, - } - - def __init__(self, *, user_id: str=None, ip_address: str=None, last_updated=None, unique_ip_addresses: str=None, total_error_attempts: int=None, **kwargs) -> None: - super(ErrorReportUsersEntry, self).__init__(**kwargs) - self.user_id = user_id - self.ip_address = ip_address - self.last_updated = last_updated - self.unique_ip_addresses = unique_ip_addresses - self.total_error_attempts = total_error_attempts diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error.py deleted file mode 100644 index 1565c300e2d7..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error.py +++ /dev/null @@ -1,177 +0,0 @@ -# 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 ExportError(Model): - """The export error details. - - :param id: The error Id. - :type id: str - :param run_step_result_id: The run step result Id. - :type run_step_result_id: str - :param connector_id: The connector Id. - :type connector_id: str - :param type: The type of error. - :type type: str - :param error_code: The error code. - :type error_code: str - :param message: The export error message. - :type message: str - :param server_error_detail: The server error detail. - :type server_error_detail: str - :param time_first_occured: The date and time when the export error first - occured. - :type time_first_occured: datetime - :param retry_count: The retry count. - :type retry_count: int - :param cs_object_id: The cloud object Id. - :type cs_object_id: str - :param dn: The distinguished name. - :type dn: str - :param min_limit: The minimum limit. - :type min_limit: str - :param max_limit: The maximum limit. - :type max_limit: str - :param cloud_anchor: The name of the cloud anchor. - :type cloud_anchor: str - :param attribute_name: The attribute name. - :type attribute_name: str - :param attribute_value: The attribute value. - :type attribute_value: str - :param attribute_multi_value: Indicates if the attribute is multi valued - or not. - :type attribute_multi_value: bool - :param object_id_conflict: The object Id with which there was an attribute - conflict. - :type object_id_conflict: str - :param sam_account_name: The SAM account name. - :type sam_account_name: str - :param ad_object_type: The AD object type - :type ad_object_type: str - :param ad_object_guid: The AD object guid. - :type ad_object_guid: str - :param ad_display_name: The display name for the AD object. - :type ad_display_name: str - :param ad_source_of_authority: The source of authority for the AD object. - :type ad_source_of_authority: str - :param ad_source_anchor: The AD source anchor. - :type ad_source_anchor: str - :param ad_user_principal_name: The user principal name for the AD object. - :type ad_user_principal_name: str - :param ad_distinguished_name: The distinguished name for the AD object. - :type ad_distinguished_name: str - :param ad_mail: The email for the AD object. - :type ad_mail: str - :param time_occured: The date and time of occurance. - :type time_occured: datetime - :param aad_object_type: The AAD side object type. - :type aad_object_type: str - :param aad_object_guid: The AAD side object guid. - :type aad_object_guid: str - :param aad_display_name: The AAD side display name - :type aad_display_name: str - :param aad_source_of_authority: The AAD side source of authority for the - object. - :type aad_source_of_authority: str - :param aad_user_principal_name: The AAD side user principal name. - :type aad_user_principal_name: str - :param aad_distringuished_name: The AAD side distinguished name for the - object. - :type aad_distringuished_name: str - :param aad_mail: The AAD side email for the object. - :type aad_mail: str - :param last_dir_sync_time: The date and time of last sync run. - :type last_dir_sync_time: datetime - :param modified_attribute_value: The modified atttribute value. - :type modified_attribute_value: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, - 'connector_id': {'key': 'connectorId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'server_error_detail': {'key': 'serverErrorDetail', 'type': 'str'}, - 'time_first_occured': {'key': 'timeFirstOccured', 'type': 'iso-8601'}, - 'retry_count': {'key': 'retryCount', 'type': 'int'}, - 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, - 'dn': {'key': 'dn', 'type': 'str'}, - 'min_limit': {'key': 'minLimit', 'type': 'str'}, - 'max_limit': {'key': 'maxLimit', 'type': 'str'}, - 'cloud_anchor': {'key': 'cloudAnchor', 'type': 'str'}, - 'attribute_name': {'key': 'attributeName', 'type': 'str'}, - 'attribute_value': {'key': 'attributeValue', 'type': 'str'}, - 'attribute_multi_value': {'key': 'attributeMultiValue', 'type': 'bool'}, - 'object_id_conflict': {'key': 'objectIdConflict', 'type': 'str'}, - 'sam_account_name': {'key': 'samAccountName', 'type': 'str'}, - 'ad_object_type': {'key': 'adObjectType', 'type': 'str'}, - 'ad_object_guid': {'key': 'adObjectGuid', 'type': 'str'}, - 'ad_display_name': {'key': 'adDisplayName', 'type': 'str'}, - 'ad_source_of_authority': {'key': 'adSourceOfAuthority', 'type': 'str'}, - 'ad_source_anchor': {'key': 'adSourceAnchor', 'type': 'str'}, - 'ad_user_principal_name': {'key': 'adUserPrincipalName', 'type': 'str'}, - 'ad_distinguished_name': {'key': 'adDistinguishedName', 'type': 'str'}, - 'ad_mail': {'key': 'adMail', 'type': 'str'}, - 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, - 'aad_object_type': {'key': 'aadObjectType', 'type': 'str'}, - 'aad_object_guid': {'key': 'aadObjectGuid', 'type': 'str'}, - 'aad_display_name': {'key': 'aadDisplayName', 'type': 'str'}, - 'aad_source_of_authority': {'key': 'aadSourceOfAuthority', 'type': 'str'}, - 'aad_user_principal_name': {'key': 'aadUserPrincipalName', 'type': 'str'}, - 'aad_distringuished_name': {'key': 'aadDistringuishedName', 'type': 'str'}, - 'aad_mail': {'key': 'aadMail', 'type': 'str'}, - 'last_dir_sync_time': {'key': 'lastDirSyncTime', 'type': 'iso-8601'}, - 'modified_attribute_value': {'key': 'modifiedAttributeValue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ExportError, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.run_step_result_id = kwargs.get('run_step_result_id', None) - self.connector_id = kwargs.get('connector_id', None) - self.type = kwargs.get('type', None) - self.error_code = kwargs.get('error_code', None) - self.message = kwargs.get('message', None) - self.server_error_detail = kwargs.get('server_error_detail', None) - self.time_first_occured = kwargs.get('time_first_occured', None) - self.retry_count = kwargs.get('retry_count', None) - self.cs_object_id = kwargs.get('cs_object_id', None) - self.dn = kwargs.get('dn', None) - self.min_limit = kwargs.get('min_limit', None) - self.max_limit = kwargs.get('max_limit', None) - self.cloud_anchor = kwargs.get('cloud_anchor', None) - self.attribute_name = kwargs.get('attribute_name', None) - self.attribute_value = kwargs.get('attribute_value', None) - self.attribute_multi_value = kwargs.get('attribute_multi_value', None) - self.object_id_conflict = kwargs.get('object_id_conflict', None) - self.sam_account_name = kwargs.get('sam_account_name', None) - self.ad_object_type = kwargs.get('ad_object_type', None) - self.ad_object_guid = kwargs.get('ad_object_guid', None) - self.ad_display_name = kwargs.get('ad_display_name', None) - self.ad_source_of_authority = kwargs.get('ad_source_of_authority', None) - self.ad_source_anchor = kwargs.get('ad_source_anchor', None) - self.ad_user_principal_name = kwargs.get('ad_user_principal_name', None) - self.ad_distinguished_name = kwargs.get('ad_distinguished_name', None) - self.ad_mail = kwargs.get('ad_mail', None) - self.time_occured = kwargs.get('time_occured', None) - self.aad_object_type = kwargs.get('aad_object_type', None) - self.aad_object_guid = kwargs.get('aad_object_guid', None) - self.aad_display_name = kwargs.get('aad_display_name', None) - self.aad_source_of_authority = kwargs.get('aad_source_of_authority', None) - self.aad_user_principal_name = kwargs.get('aad_user_principal_name', None) - self.aad_distringuished_name = kwargs.get('aad_distringuished_name', None) - self.aad_mail = kwargs.get('aad_mail', None) - self.last_dir_sync_time = kwargs.get('last_dir_sync_time', None) - self.modified_attribute_value = kwargs.get('modified_attribute_value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_py3.py deleted file mode 100644 index edb418af3084..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_py3.py +++ /dev/null @@ -1,177 +0,0 @@ -# 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 ExportError(Model): - """The export error details. - - :param id: The error Id. - :type id: str - :param run_step_result_id: The run step result Id. - :type run_step_result_id: str - :param connector_id: The connector Id. - :type connector_id: str - :param type: The type of error. - :type type: str - :param error_code: The error code. - :type error_code: str - :param message: The export error message. - :type message: str - :param server_error_detail: The server error detail. - :type server_error_detail: str - :param time_first_occured: The date and time when the export error first - occured. - :type time_first_occured: datetime - :param retry_count: The retry count. - :type retry_count: int - :param cs_object_id: The cloud object Id. - :type cs_object_id: str - :param dn: The distinguished name. - :type dn: str - :param min_limit: The minimum limit. - :type min_limit: str - :param max_limit: The maximum limit. - :type max_limit: str - :param cloud_anchor: The name of the cloud anchor. - :type cloud_anchor: str - :param attribute_name: The attribute name. - :type attribute_name: str - :param attribute_value: The attribute value. - :type attribute_value: str - :param attribute_multi_value: Indicates if the attribute is multi valued - or not. - :type attribute_multi_value: bool - :param object_id_conflict: The object Id with which there was an attribute - conflict. - :type object_id_conflict: str - :param sam_account_name: The SAM account name. - :type sam_account_name: str - :param ad_object_type: The AD object type - :type ad_object_type: str - :param ad_object_guid: The AD object guid. - :type ad_object_guid: str - :param ad_display_name: The display name for the AD object. - :type ad_display_name: str - :param ad_source_of_authority: The source of authority for the AD object. - :type ad_source_of_authority: str - :param ad_source_anchor: The AD source anchor. - :type ad_source_anchor: str - :param ad_user_principal_name: The user principal name for the AD object. - :type ad_user_principal_name: str - :param ad_distinguished_name: The distinguished name for the AD object. - :type ad_distinguished_name: str - :param ad_mail: The email for the AD object. - :type ad_mail: str - :param time_occured: The date and time of occurance. - :type time_occured: datetime - :param aad_object_type: The AAD side object type. - :type aad_object_type: str - :param aad_object_guid: The AAD side object guid. - :type aad_object_guid: str - :param aad_display_name: The AAD side display name - :type aad_display_name: str - :param aad_source_of_authority: The AAD side source of authority for the - object. - :type aad_source_of_authority: str - :param aad_user_principal_name: The AAD side user principal name. - :type aad_user_principal_name: str - :param aad_distringuished_name: The AAD side distinguished name for the - object. - :type aad_distringuished_name: str - :param aad_mail: The AAD side email for the object. - :type aad_mail: str - :param last_dir_sync_time: The date and time of last sync run. - :type last_dir_sync_time: datetime - :param modified_attribute_value: The modified atttribute value. - :type modified_attribute_value: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, - 'connector_id': {'key': 'connectorId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'server_error_detail': {'key': 'serverErrorDetail', 'type': 'str'}, - 'time_first_occured': {'key': 'timeFirstOccured', 'type': 'iso-8601'}, - 'retry_count': {'key': 'retryCount', 'type': 'int'}, - 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, - 'dn': {'key': 'dn', 'type': 'str'}, - 'min_limit': {'key': 'minLimit', 'type': 'str'}, - 'max_limit': {'key': 'maxLimit', 'type': 'str'}, - 'cloud_anchor': {'key': 'cloudAnchor', 'type': 'str'}, - 'attribute_name': {'key': 'attributeName', 'type': 'str'}, - 'attribute_value': {'key': 'attributeValue', 'type': 'str'}, - 'attribute_multi_value': {'key': 'attributeMultiValue', 'type': 'bool'}, - 'object_id_conflict': {'key': 'objectIdConflict', 'type': 'str'}, - 'sam_account_name': {'key': 'samAccountName', 'type': 'str'}, - 'ad_object_type': {'key': 'adObjectType', 'type': 'str'}, - 'ad_object_guid': {'key': 'adObjectGuid', 'type': 'str'}, - 'ad_display_name': {'key': 'adDisplayName', 'type': 'str'}, - 'ad_source_of_authority': {'key': 'adSourceOfAuthority', 'type': 'str'}, - 'ad_source_anchor': {'key': 'adSourceAnchor', 'type': 'str'}, - 'ad_user_principal_name': {'key': 'adUserPrincipalName', 'type': 'str'}, - 'ad_distinguished_name': {'key': 'adDistinguishedName', 'type': 'str'}, - 'ad_mail': {'key': 'adMail', 'type': 'str'}, - 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, - 'aad_object_type': {'key': 'aadObjectType', 'type': 'str'}, - 'aad_object_guid': {'key': 'aadObjectGuid', 'type': 'str'}, - 'aad_display_name': {'key': 'aadDisplayName', 'type': 'str'}, - 'aad_source_of_authority': {'key': 'aadSourceOfAuthority', 'type': 'str'}, - 'aad_user_principal_name': {'key': 'aadUserPrincipalName', 'type': 'str'}, - 'aad_distringuished_name': {'key': 'aadDistringuishedName', 'type': 'str'}, - 'aad_mail': {'key': 'aadMail', 'type': 'str'}, - 'last_dir_sync_time': {'key': 'lastDirSyncTime', 'type': 'iso-8601'}, - 'modified_attribute_value': {'key': 'modifiedAttributeValue', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, run_step_result_id: str=None, connector_id: str=None, type: str=None, error_code: str=None, message: str=None, server_error_detail: str=None, time_first_occured=None, retry_count: int=None, cs_object_id: str=None, dn: str=None, min_limit: str=None, max_limit: str=None, cloud_anchor: str=None, attribute_name: str=None, attribute_value: str=None, attribute_multi_value: bool=None, object_id_conflict: str=None, sam_account_name: str=None, ad_object_type: str=None, ad_object_guid: str=None, ad_display_name: str=None, ad_source_of_authority: str=None, ad_source_anchor: str=None, ad_user_principal_name: str=None, ad_distinguished_name: str=None, ad_mail: str=None, time_occured=None, aad_object_type: str=None, aad_object_guid: str=None, aad_display_name: str=None, aad_source_of_authority: str=None, aad_user_principal_name: str=None, aad_distringuished_name: str=None, aad_mail: str=None, last_dir_sync_time=None, modified_attribute_value: str=None, **kwargs) -> None: - super(ExportError, self).__init__(**kwargs) - self.id = id - self.run_step_result_id = run_step_result_id - self.connector_id = connector_id - self.type = type - self.error_code = error_code - self.message = message - self.server_error_detail = server_error_detail - self.time_first_occured = time_first_occured - self.retry_count = retry_count - self.cs_object_id = cs_object_id - self.dn = dn - self.min_limit = min_limit - self.max_limit = max_limit - self.cloud_anchor = cloud_anchor - self.attribute_name = attribute_name - self.attribute_value = attribute_value - self.attribute_multi_value = attribute_multi_value - self.object_id_conflict = object_id_conflict - self.sam_account_name = sam_account_name - self.ad_object_type = ad_object_type - self.ad_object_guid = ad_object_guid - self.ad_display_name = ad_display_name - self.ad_source_of_authority = ad_source_of_authority - self.ad_source_anchor = ad_source_anchor - self.ad_user_principal_name = ad_user_principal_name - self.ad_distinguished_name = ad_distinguished_name - self.ad_mail = ad_mail - self.time_occured = time_occured - self.aad_object_type = aad_object_type - self.aad_object_guid = aad_object_guid - self.aad_display_name = aad_display_name - self.aad_source_of_authority = aad_source_of_authority - self.aad_user_principal_name = aad_user_principal_name - self.aad_distringuished_name = aad_distringuished_name - self.aad_mail = aad_mail - self.last_dir_sync_time = last_dir_sync_time - self.modified_attribute_value = modified_attribute_value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors.py deleted file mode 100644 index 8e19f1621018..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 ExportErrors(Model): - """The list of export errors. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportError] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ExportError]'}, - } - - def __init__(self, **kwargs): - super(ExportErrors, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors_py3.py deleted file mode 100644 index 44890655a5d9..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 ExportErrors(Model): - """The list of export errors. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportError] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ExportError]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ExportErrors, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status.py deleted file mode 100644 index aeccd4d60cec..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 ExportStatus(Model): - """The details of the export status. - - :param service_id: The id of the service for whom the export status is - being reported. - :type service_id: str - :param service_member_id: The server Id for whom the export status is - being reported. - :type service_member_id: str - :param end_time: The date and time when the export ended. - :type end_time: datetime - :param run_step_result_id: The run step result Id. - :type run_step_result_id: str - """ - - _attribute_map = { - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ExportStatus, self).__init__(**kwargs) - self.service_id = kwargs.get('service_id', None) - self.service_member_id = kwargs.get('service_member_id', None) - self.end_time = kwargs.get('end_time', None) - self.run_step_result_id = kwargs.get('run_step_result_id', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_paged.py deleted file mode 100644 index 52e68d6cfbf6..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 ExportStatusPaged(Paged): - """ - A paging container for iterating over a list of :class:`ExportStatus ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ExportStatus]'} - } - - def __init__(self, *args, **kwargs): - - super(ExportStatusPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_py3.py deleted file mode 100644 index 34812aa03420..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 ExportStatus(Model): - """The details of the export status. - - :param service_id: The id of the service for whom the export status is - being reported. - :type service_id: str - :param service_member_id: The server Id for whom the export status is - being reported. - :type service_member_id: str - :param end_time: The date and time when the export ended. - :type end_time: datetime - :param run_step_result_id: The run step result Id. - :type run_step_result_id: str - """ - - _attribute_map = { - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, - } - - def __init__(self, *, service_id: str=None, service_member_id: str=None, end_time=None, run_step_result_id: str=None, **kwargs) -> None: - super(ExportStatus, self).__init__(**kwargs) - self.service_id = service_id - self.service_member_id = service_member_id - self.end_time = end_time - self.run_step_result_id = run_step_result_id diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info.py deleted file mode 100644 index b2e38d5b6f54..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 ExtensionErrorInfo(Model): - """The extension error details. - - :param extension_name: The extension name. - :type extension_name: str - :param extension_context: The extension context. - :type extension_context: str - :param call_stack: The call stack for the error. - :type call_stack: str - """ - - _attribute_map = { - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'extension_context': {'key': 'extensionContext', 'type': 'str'}, - 'call_stack': {'key': 'callStack', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ExtensionErrorInfo, self).__init__(**kwargs) - self.extension_name = kwargs.get('extension_name', None) - self.extension_context = kwargs.get('extension_context', None) - self.call_stack = kwargs.get('call_stack', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info_py3.py deleted file mode 100644 index 0f65c519be03..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/extension_error_info_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 ExtensionErrorInfo(Model): - """The extension error details. - - :param extension_name: The extension name. - :type extension_name: str - :param extension_context: The extension context. - :type extension_context: str - :param call_stack: The call stack for the error. - :type call_stack: str - """ - - _attribute_map = { - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'extension_context': {'key': 'extensionContext', 'type': 'str'}, - 'call_stack': {'key': 'callStack', 'type': 'str'}, - } - - def __init__(self, *, extension_name: str=None, extension_context: str=None, call_stack: str=None, **kwargs) -> None: - super(ExtensionErrorInfo, self).__init__(**kwargs) - self.extension_name = extension_name - self.extension_context = extension_context - self.call_stack = call_stack diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary.py deleted file mode 100644 index 29eea554a047..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 ForestSummary(Model): - """The forest summary for an ADDS domain. - - :param forest_name: The forest name. - :type forest_name: str - :param domain_count: The domain count. - :type domain_count: int - :param site_count: The site count. - :type site_count: int - :param monitored_dc_count: The number of domain controllers that are - monitored by Azure Active Directory Connect Health. - :type monitored_dc_count: int - :param total_dc_count: The total domain controllers. - :type total_dc_count: int - :param domains: The list of domain controller names. - :type domains: list[str] - :param sites: The list of site names. - :type sites: list[str] - """ - - _attribute_map = { - 'forest_name': {'key': 'forestName', 'type': 'str'}, - 'domain_count': {'key': 'domainCount', 'type': 'int'}, - 'site_count': {'key': 'siteCount', 'type': 'int'}, - 'monitored_dc_count': {'key': 'monitoredDcCount', 'type': 'int'}, - 'total_dc_count': {'key': 'totalDcCount', 'type': 'int'}, - 'domains': {'key': 'domains', 'type': '[str]'}, - 'sites': {'key': 'sites', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(ForestSummary, self).__init__(**kwargs) - self.forest_name = kwargs.get('forest_name', None) - self.domain_count = kwargs.get('domain_count', None) - self.site_count = kwargs.get('site_count', None) - self.monitored_dc_count = kwargs.get('monitored_dc_count', None) - self.total_dc_count = kwargs.get('total_dc_count', None) - self.domains = kwargs.get('domains', None) - self.sites = kwargs.get('sites', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary_py3.py deleted file mode 100644 index ab6d04623cb4..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 ForestSummary(Model): - """The forest summary for an ADDS domain. - - :param forest_name: The forest name. - :type forest_name: str - :param domain_count: The domain count. - :type domain_count: int - :param site_count: The site count. - :type site_count: int - :param monitored_dc_count: The number of domain controllers that are - monitored by Azure Active Directory Connect Health. - :type monitored_dc_count: int - :param total_dc_count: The total domain controllers. - :type total_dc_count: int - :param domains: The list of domain controller names. - :type domains: list[str] - :param sites: The list of site names. - :type sites: list[str] - """ - - _attribute_map = { - 'forest_name': {'key': 'forestName', 'type': 'str'}, - 'domain_count': {'key': 'domainCount', 'type': 'int'}, - 'site_count': {'key': 'siteCount', 'type': 'int'}, - 'monitored_dc_count': {'key': 'monitoredDcCount', 'type': 'int'}, - 'total_dc_count': {'key': 'totalDcCount', 'type': 'int'}, - 'domains': {'key': 'domains', 'type': '[str]'}, - 'sites': {'key': 'sites', 'type': '[str]'}, - } - - def __init__(self, *, forest_name: str=None, domain_count: int=None, site_count: int=None, monitored_dc_count: int=None, total_dc_count: int=None, domains=None, sites=None, **kwargs) -> None: - super(ForestSummary, self).__init__(**kwargs) - self.forest_name = forest_name - self.domain_count = domain_count - self.site_count = site_count - self.monitored_dc_count = monitored_dc_count - self.total_dc_count = total_dc_count - self.domains = domains - self.sites = sites diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py deleted file mode 100644 index cd735d8c4c42..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 GlobalConfiguration(Model): - """The global configuration settings. - - :param version: The version for the global configuration. - :type version: int - :param schema_xml: The schema for the configuration. - :type schema_xml: str - :param password_sync_enabled: Indicates if password sync is enabled or - not. - :type password_sync_enabled: bool - :param num_saved_pwd_event: The number of saved password events. - :type num_saved_pwd_event: int - :param feature_set: The list of additional feature sets. - :type feature_set: list[~azure.mgmt.adhybridhealthservice.models.Item] - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'int'}, - 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, - 'password_sync_enabled': {'key': 'passwordSyncEnabled', 'type': 'bool'}, - 'num_saved_pwd_event': {'key': 'numSavedPwdEvent', 'type': 'int'}, - 'feature_set': {'key': 'featureSet', 'type': '[Item]'}, - } - - def __init__(self, **kwargs): - super(GlobalConfiguration, self).__init__(**kwargs) - self.version = kwargs.get('version', None) - self.schema_xml = kwargs.get('schema_xml', None) - self.password_sync_enabled = kwargs.get('password_sync_enabled', None) - self.num_saved_pwd_event = kwargs.get('num_saved_pwd_event', None) - self.feature_set = kwargs.get('feature_set', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_paged.py deleted file mode 100644 index 08ce7743785e..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 GlobalConfigurationPaged(Paged): - """ - A paging container for iterating over a list of :class:`GlobalConfiguration ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[GlobalConfiguration]'} - } - - def __init__(self, *args, **kwargs): - - super(GlobalConfigurationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py deleted file mode 100644 index 67d9788957b4..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 GlobalConfiguration(Model): - """The global configuration settings. - - :param version: The version for the global configuration. - :type version: int - :param schema_xml: The schema for the configuration. - :type schema_xml: str - :param password_sync_enabled: Indicates if password sync is enabled or - not. - :type password_sync_enabled: bool - :param num_saved_pwd_event: The number of saved password events. - :type num_saved_pwd_event: int - :param feature_set: The list of additional feature sets. - :type feature_set: list[~azure.mgmt.adhybridhealthservice.models.Item] - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'int'}, - 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, - 'password_sync_enabled': {'key': 'passwordSyncEnabled', 'type': 'bool'}, - 'num_saved_pwd_event': {'key': 'numSavedPwdEvent', 'type': 'int'}, - 'feature_set': {'key': 'featureSet', 'type': '[Item]'}, - } - - def __init__(self, *, version: int=None, schema_xml: str=None, password_sync_enabled: bool=None, num_saved_pwd_event: int=None, feature_set=None, **kwargs) -> None: - super(GlobalConfiguration, self).__init__(**kwargs) - self.version = version - self.schema_xml = schema_xml - self.password_sync_enabled = password_sync_enabled - self.num_saved_pwd_event = num_saved_pwd_event - self.feature_set = feature_set diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link.py deleted file mode 100644 index f54429a456b4..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 HelpLink(Model): - """The help link which contains more information related to an alert. - - :param title: The title for the link. - :type title: str - :param url: The url for the help document. - :type url: str - """ - - _attribute_map = { - 'title': {'key': 'title', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(HelpLink, self).__init__(**kwargs) - self.title = kwargs.get('title', None) - self.url = kwargs.get('url', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link_py3.py deleted file mode 100644 index fc434435ecec..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/help_link_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 HelpLink(Model): - """The help link which contains more information related to an alert. - - :param title: The title for the link. - :type title: str - :param url: The url for the help document. - :type url: str - """ - - _attribute_map = { - 'title': {'key': 'title', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - } - - def __init__(self, *, title: str=None, url: str=None, **kwargs) -> None: - super(HelpLink, self).__init__(**kwargs) - self.title = title - self.url = url diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix.py deleted file mode 100644 index 14a5f661354b..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 Hotfix(Model): - """The details of the hotfix installed in the server. - - :param kb_name: The name of the hotfix KB. - :type kb_name: str - :param link: The link to the KB Article. - :type link: str - :param installed_date: The date and time, in UTC, when the KB was - installed in the server. - :type installed_date: datetime - """ - - _attribute_map = { - 'kb_name': {'key': 'kbName', 'type': 'str'}, - 'link': {'key': 'link', 'type': 'str'}, - 'installed_date': {'key': 'installedDate', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(Hotfix, self).__init__(**kwargs) - self.kb_name = kwargs.get('kb_name', None) - self.link = kwargs.get('link', None) - self.installed_date = kwargs.get('installed_date', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix_py3.py deleted file mode 100644 index 0e8592ed5b6f..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfix_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 Hotfix(Model): - """The details of the hotfix installed in the server. - - :param kb_name: The name of the hotfix KB. - :type kb_name: str - :param link: The link to the KB Article. - :type link: str - :param installed_date: The date and time, in UTC, when the KB was - installed in the server. - :type installed_date: datetime - """ - - _attribute_map = { - 'kb_name': {'key': 'kbName', 'type': 'str'}, - 'link': {'key': 'link', 'type': 'str'}, - 'installed_date': {'key': 'installedDate', 'type': 'iso-8601'}, - } - - def __init__(self, *, kb_name: str=None, link: str=None, installed_date=None, **kwargs) -> None: - super(Hotfix, self).__init__(**kwargs) - self.kb_name = kb_name - self.link = link - self.installed_date = installed_date diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes.py deleted file mode 100644 index ed610e0b3417..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 Hotfixes(Model): - """The list of hotfixes installed in the server. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.Hotfix] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Hotfix]'}, - } - - def __init__(self, **kwargs): - super(Hotfixes, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes_py3.py deleted file mode 100644 index a48b635db659..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 Hotfixes(Model): - """The list of hotfixes installed in the server. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.Hotfix] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Hotfix]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(Hotfixes, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error.py deleted file mode 100644 index bea8fdb9daf6..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error.py +++ /dev/null @@ -1,84 +0,0 @@ -# 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 ImportError(Model): - """The import error details. - - :param id: The error Id. - :type id: str - :param run_step_result_id: The run step result Id. - :type run_step_result_id: str - :param connector_id: The connector Id. - :type connector_id: str - :param type: The type of error. - :type type: str - :param time_occurred: The time when the import error occurred. - :type time_occurred: datetime - :param time_first_occurred: The time when the import error first occurred. - :type time_first_occurred: datetime - :param retry_count: The retry count. - :type retry_count: int - :param algorithm_step_type: The operation type specific to error - reporting. Possible values include: 'Undefined', 'Staging', - 'ConnectorFilter', 'Join', 'Projection', 'ImportFlow', 'Provisioning', - 'ValidateConnectorFilter', 'Deprovisioning', 'ExportFlow', 'MvDeletion', - 'Recall', 'MvObjectTypeChange' - :type algorithm_step_type: str or - ~azure.mgmt.adhybridhealthservice.models.AlgorithmStepType - :param change_not_reimported: The change details that is not re-imported. - :type change_not_reimported: - ~azure.mgmt.adhybridhealthservice.models.ChangeNotReimported - :param extension_error_info: The extension error information. - :type extension_error_info: - ~azure.mgmt.adhybridhealthservice.models.ExtensionErrorInfo - :param rule_error_info: The error details in legacy rule processing. - :type rule_error_info: - ~azure.mgmt.adhybridhealthservice.models.RuleErrorInfo - :param cs_object_id: The object Id. - :type cs_object_id: str - :param dn: The distinguished name. - :type dn: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, - 'connector_id': {'key': 'connectorId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, - 'time_first_occurred': {'key': 'timeFirstOccurred', 'type': 'iso-8601'}, - 'retry_count': {'key': 'retryCount', 'type': 'int'}, - 'algorithm_step_type': {'key': 'algorithmStepType', 'type': 'str'}, - 'change_not_reimported': {'key': 'changeNotReimported', 'type': 'ChangeNotReimported'}, - 'extension_error_info': {'key': 'extensionErrorInfo', 'type': 'ExtensionErrorInfo'}, - 'rule_error_info': {'key': 'ruleErrorInfo', 'type': 'RuleErrorInfo'}, - 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, - 'dn': {'key': 'dn', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ImportError, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.run_step_result_id = kwargs.get('run_step_result_id', None) - self.connector_id = kwargs.get('connector_id', None) - self.type = kwargs.get('type', None) - self.time_occurred = kwargs.get('time_occurred', None) - self.time_first_occurred = kwargs.get('time_first_occurred', None) - self.retry_count = kwargs.get('retry_count', None) - self.algorithm_step_type = kwargs.get('algorithm_step_type', None) - self.change_not_reimported = kwargs.get('change_not_reimported', None) - self.extension_error_info = kwargs.get('extension_error_info', None) - self.rule_error_info = kwargs.get('rule_error_info', None) - self.cs_object_id = kwargs.get('cs_object_id', None) - self.dn = kwargs.get('dn', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error_py3.py deleted file mode 100644 index 6a155b133eed..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_error_py3.py +++ /dev/null @@ -1,84 +0,0 @@ -# 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 ImportError(Model): - """The import error details. - - :param id: The error Id. - :type id: str - :param run_step_result_id: The run step result Id. - :type run_step_result_id: str - :param connector_id: The connector Id. - :type connector_id: str - :param type: The type of error. - :type type: str - :param time_occurred: The time when the import error occurred. - :type time_occurred: datetime - :param time_first_occurred: The time when the import error first occurred. - :type time_first_occurred: datetime - :param retry_count: The retry count. - :type retry_count: int - :param algorithm_step_type: The operation type specific to error - reporting. Possible values include: 'Undefined', 'Staging', - 'ConnectorFilter', 'Join', 'Projection', 'ImportFlow', 'Provisioning', - 'ValidateConnectorFilter', 'Deprovisioning', 'ExportFlow', 'MvDeletion', - 'Recall', 'MvObjectTypeChange' - :type algorithm_step_type: str or - ~azure.mgmt.adhybridhealthservice.models.AlgorithmStepType - :param change_not_reimported: The change details that is not re-imported. - :type change_not_reimported: - ~azure.mgmt.adhybridhealthservice.models.ChangeNotReimported - :param extension_error_info: The extension error information. - :type extension_error_info: - ~azure.mgmt.adhybridhealthservice.models.ExtensionErrorInfo - :param rule_error_info: The error details in legacy rule processing. - :type rule_error_info: - ~azure.mgmt.adhybridhealthservice.models.RuleErrorInfo - :param cs_object_id: The object Id. - :type cs_object_id: str - :param dn: The distinguished name. - :type dn: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, - 'connector_id': {'key': 'connectorId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, - 'time_first_occurred': {'key': 'timeFirstOccurred', 'type': 'iso-8601'}, - 'retry_count': {'key': 'retryCount', 'type': 'int'}, - 'algorithm_step_type': {'key': 'algorithmStepType', 'type': 'str'}, - 'change_not_reimported': {'key': 'changeNotReimported', 'type': 'ChangeNotReimported'}, - 'extension_error_info': {'key': 'extensionErrorInfo', 'type': 'ExtensionErrorInfo'}, - 'rule_error_info': {'key': 'ruleErrorInfo', 'type': 'RuleErrorInfo'}, - 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, - 'dn': {'key': 'dn', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, run_step_result_id: str=None, connector_id: str=None, type: str=None, time_occurred=None, time_first_occurred=None, retry_count: int=None, algorithm_step_type=None, change_not_reimported=None, extension_error_info=None, rule_error_info=None, cs_object_id: str=None, dn: str=None, **kwargs) -> None: - super(ImportError, self).__init__(**kwargs) - self.id = id - self.run_step_result_id = run_step_result_id - self.connector_id = connector_id - self.type = type - self.time_occurred = time_occurred - self.time_first_occurred = time_first_occurred - self.retry_count = retry_count - self.algorithm_step_type = algorithm_step_type - self.change_not_reimported = change_not_reimported - self.extension_error_info = extension_error_info - self.rule_error_info = rule_error_info - self.cs_object_id = cs_object_id - self.dn = dn diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors.py deleted file mode 100644 index 7f687411a2c4..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 ImportErrors(Model): - """The list of import errors. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.ImportError] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ImportError]'}, - } - - def __init__(self, **kwargs): - super(ImportErrors, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors_py3.py deleted file mode 100644 index b7e8bffc89e1..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 ImportErrors(Model): - """The list of import errors. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.ImportError] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ImportError]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ImportErrors, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor.py deleted file mode 100644 index 190be83235bc..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor.py +++ /dev/null @@ -1,79 +0,0 @@ -# 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 InboundReplicationNeighbor(Model): - """The replication summary for the domain controller inbound neighbor. - - :param source_domain_controller: The name of the source domain controller. - :type source_domain_controller: str - :param consecutive_failure_count: The number of consecutive faulire - counts. - :type consecutive_failure_count: int - :param naming_context: The naming context. - :type naming_context: str - :param status: The health status for the domain controller - :type status: int - :param last_attempted_sync: The last time a sync was attempted on the - domain controller. - :type last_attempted_sync: datetime - :param last_successful_sync: The last time when a successful sync - happened. - :type last_successful_sync: datetime - :param last_error_code: The last error code. - :type last_error_code: int - :param last_error_message: The error message of the last error. - :type last_error_message: str - :param error_title: The error title. - :type error_title: str - :param error_description: The error description. - :type error_description: str - :param fix_link: The link for the fix of the error. - :type fix_link: str - :param fix_details: The details of the fix. - :type fix_details: str - :param additional_info: The additional details. - :type additional_info: str - """ - - _attribute_map = { - 'source_domain_controller': {'key': 'sourceDomainController', 'type': 'str'}, - 'consecutive_failure_count': {'key': 'consecutiveFailureCount', 'type': 'int'}, - 'naming_context': {'key': 'namingContext', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'int'}, - 'last_attempted_sync': {'key': 'lastAttemptedSync', 'type': 'iso-8601'}, - 'last_successful_sync': {'key': 'lastSuccessfulSync', 'type': 'iso-8601'}, - 'last_error_code': {'key': 'lastErrorCode', 'type': 'int'}, - 'last_error_message': {'key': 'lastErrorMessage', 'type': 'str'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'error_description': {'key': 'errorDescription', 'type': 'str'}, - 'fix_link': {'key': 'fixLink', 'type': 'str'}, - 'fix_details': {'key': 'fixDetails', 'type': 'str'}, - 'additional_info': {'key': 'additionalInfo', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(InboundReplicationNeighbor, self).__init__(**kwargs) - self.source_domain_controller = kwargs.get('source_domain_controller', None) - self.consecutive_failure_count = kwargs.get('consecutive_failure_count', None) - self.naming_context = kwargs.get('naming_context', None) - self.status = kwargs.get('status', None) - self.last_attempted_sync = kwargs.get('last_attempted_sync', None) - self.last_successful_sync = kwargs.get('last_successful_sync', None) - self.last_error_code = kwargs.get('last_error_code', None) - self.last_error_message = kwargs.get('last_error_message', None) - self.error_title = kwargs.get('error_title', None) - self.error_description = kwargs.get('error_description', None) - self.fix_link = kwargs.get('fix_link', None) - self.fix_details = kwargs.get('fix_details', None) - self.additional_info = kwargs.get('additional_info', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor_py3.py deleted file mode 100644 index 8522266bff8a..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor_py3.py +++ /dev/null @@ -1,79 +0,0 @@ -# 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 InboundReplicationNeighbor(Model): - """The replication summary for the domain controller inbound neighbor. - - :param source_domain_controller: The name of the source domain controller. - :type source_domain_controller: str - :param consecutive_failure_count: The number of consecutive faulire - counts. - :type consecutive_failure_count: int - :param naming_context: The naming context. - :type naming_context: str - :param status: The health status for the domain controller - :type status: int - :param last_attempted_sync: The last time a sync was attempted on the - domain controller. - :type last_attempted_sync: datetime - :param last_successful_sync: The last time when a successful sync - happened. - :type last_successful_sync: datetime - :param last_error_code: The last error code. - :type last_error_code: int - :param last_error_message: The error message of the last error. - :type last_error_message: str - :param error_title: The error title. - :type error_title: str - :param error_description: The error description. - :type error_description: str - :param fix_link: The link for the fix of the error. - :type fix_link: str - :param fix_details: The details of the fix. - :type fix_details: str - :param additional_info: The additional details. - :type additional_info: str - """ - - _attribute_map = { - 'source_domain_controller': {'key': 'sourceDomainController', 'type': 'str'}, - 'consecutive_failure_count': {'key': 'consecutiveFailureCount', 'type': 'int'}, - 'naming_context': {'key': 'namingContext', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'int'}, - 'last_attempted_sync': {'key': 'lastAttemptedSync', 'type': 'iso-8601'}, - 'last_successful_sync': {'key': 'lastSuccessfulSync', 'type': 'iso-8601'}, - 'last_error_code': {'key': 'lastErrorCode', 'type': 'int'}, - 'last_error_message': {'key': 'lastErrorMessage', 'type': 'str'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'error_description': {'key': 'errorDescription', 'type': 'str'}, - 'fix_link': {'key': 'fixLink', 'type': 'str'}, - 'fix_details': {'key': 'fixDetails', 'type': 'str'}, - 'additional_info': {'key': 'additionalInfo', 'type': 'str'}, - } - - def __init__(self, *, source_domain_controller: str=None, consecutive_failure_count: int=None, naming_context: str=None, status: int=None, last_attempted_sync=None, last_successful_sync=None, last_error_code: int=None, last_error_message: str=None, error_title: str=None, error_description: str=None, fix_link: str=None, fix_details: str=None, additional_info: str=None, **kwargs) -> None: - super(InboundReplicationNeighbor, self).__init__(**kwargs) - self.source_domain_controller = source_domain_controller - self.consecutive_failure_count = consecutive_failure_count - self.naming_context = naming_context - self.status = status - self.last_attempted_sync = last_attempted_sync - self.last_successful_sync = last_successful_sync - self.last_error_code = last_error_code - self.last_error_message = last_error_message - self.error_title = error_title - self.error_description = error_description - self.fix_link = fix_link - self.fix_details = fix_details - self.additional_info = additional_info diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors.py deleted file mode 100644 index 0903cab0a5e3..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 InboundReplicationNeighbors(Model): - """The list of replication summary for the domain controller inbound neighbor. - - :param value: The details of inbound replication neighbors. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.InboundReplicationNeighbor] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[InboundReplicationNeighbor]'}, - } - - def __init__(self, **kwargs): - super(InboundReplicationNeighbors, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors_py3.py deleted file mode 100644 index 161651d7ffe7..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 InboundReplicationNeighbors(Model): - """The list of replication summary for the domain controller inbound neighbor. - - :param value: The details of inbound replication neighbors. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.InboundReplicationNeighbor] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[InboundReplicationNeighbor]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(InboundReplicationNeighbors, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item.py deleted file mode 100644 index 070ee43ab8c2..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 Item(Model): - """The key value pair for properties. - - :param key: The key for the property. - :type key: str - :param value: The value for the key. - :type value: str - """ - - _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Item, self).__init__(**kwargs) - self.key = kwargs.get('key', None) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_paged.py deleted file mode 100644 index 8970f99e86b8..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 ItemPaged(Paged): - """ - A paging container for iterating over a list of :class:`Item ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Item]'} - } - - def __init__(self, *args, **kwargs): - - super(ItemPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_py3.py deleted file mode 100644 index 5953fbcd3ee2..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 Item(Model): - """The key value pair for properties. - - :param key: The key for the property. - :type key: str - :param value: The value for the key. - :type value: str - """ - - _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, *, key: str=None, value: str=None, **kwargs) -> None: - super(Item, self).__init__(**kwargs) - self.key = key - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py deleted file mode 100644 index 20a692d3f0d5..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py +++ /dev/null @@ -1,116 +0,0 @@ -# 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 MergedExportError(Model): - """The merged export error. - - :param id: The error Id. - :type id: str - :param incoming_object_display_name: The incoming object display name. - :type incoming_object_display_name: str - :param incoming_object_type: The incoming object type. - :type incoming_object_type: str - :param user_principal_name: The user principal name - :type user_principal_name: str - :param type: The type of the error. - :type type: str - :param attribute_name: The attribute name. - :type attribute_name: str - :param attribute_value: The attribute value. - :type attribute_value: str - :param time_occurred: The date and time when the error occurred. - :type time_occurred: datetime - :param time_first_occurred: The time when the error first occurred. - :type time_first_occurred: datetime - :param cs_object_id: the cs object Id. - :type cs_object_id: str - :param dn: the DN of the object. - :type dn: str - :param incoming_object: The incoming object details. - :type incoming_object: - ~azure.mgmt.adhybridhealthservice.models.AssociatedObject - :param existing_object: The existing object - :type existing_object: - ~azure.mgmt.adhybridhealthservice.models.AssociatedObject - :param modified_or_removed_attribute_value: The modified or removed - attribute vlaue. - :type modified_or_removed_attribute_value: str - :param run_step_result_id: The run step result Id. - :type run_step_result_id: str - :param sam_account_name: The sam account name. - :type sam_account_name: str - :param server_error_detail: The server error details. - :type server_error_detail: str - :param service_id: The service Id. - :type service_id: str - :param service_member_id: The server Id. - :type service_member_id: str - :param merged_entity_id: The merged entity Id. - :type merged_entity_id: str - :param created_date: The date and time, in UTC, when the error was - created. - :type created_date: datetime - :param export_error_status: The export error status. - :type export_error_status: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'incoming_object_display_name': {'key': 'incomingObjectDisplayName', 'type': 'str'}, - 'incoming_object_type': {'key': 'incomingObjectType', 'type': 'str'}, - 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'attribute_name': {'key': 'attributeName', 'type': 'str'}, - 'attribute_value': {'key': 'attributeValue', 'type': 'str'}, - 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, - 'time_first_occurred': {'key': 'timeFirstOccurred', 'type': 'iso-8601'}, - 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, - 'dn': {'key': 'dn', 'type': 'str'}, - 'incoming_object': {'key': 'incomingObject', 'type': 'AssociatedObject'}, - 'existing_object': {'key': 'existingObject', 'type': 'AssociatedObject'}, - 'modified_or_removed_attribute_value': {'key': 'modifiedOrRemovedAttributeValue', 'type': 'str'}, - 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, - 'sam_account_name': {'key': 'samAccountName', 'type': 'str'}, - 'server_error_detail': {'key': 'serverErrorDetail', 'type': 'str'}, - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - 'merged_entity_id': {'key': 'mergedEntityId', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'export_error_status': {'key': 'exportErrorStatus', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(MergedExportError, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.incoming_object_display_name = kwargs.get('incoming_object_display_name', None) - self.incoming_object_type = kwargs.get('incoming_object_type', None) - self.user_principal_name = kwargs.get('user_principal_name', None) - self.type = kwargs.get('type', None) - self.attribute_name = kwargs.get('attribute_name', None) - self.attribute_value = kwargs.get('attribute_value', None) - self.time_occurred = kwargs.get('time_occurred', None) - self.time_first_occurred = kwargs.get('time_first_occurred', None) - self.cs_object_id = kwargs.get('cs_object_id', None) - self.dn = kwargs.get('dn', None) - self.incoming_object = kwargs.get('incoming_object', None) - self.existing_object = kwargs.get('existing_object', None) - self.modified_or_removed_attribute_value = kwargs.get('modified_or_removed_attribute_value', None) - self.run_step_result_id = kwargs.get('run_step_result_id', None) - self.sam_account_name = kwargs.get('sam_account_name', None) - self.server_error_detail = kwargs.get('server_error_detail', None) - self.service_id = kwargs.get('service_id', None) - self.service_member_id = kwargs.get('service_member_id', None) - self.merged_entity_id = kwargs.get('merged_entity_id', None) - self.created_date = kwargs.get('created_date', None) - self.export_error_status = kwargs.get('export_error_status', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_paged.py deleted file mode 100644 index e2921e5cf16b..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 MergedExportErrorPaged(Paged): - """ - A paging container for iterating over a list of :class:`MergedExportError ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[MergedExportError]'} - } - - def __init__(self, *args, **kwargs): - - super(MergedExportErrorPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_py3.py deleted file mode 100644 index 23127c6768e7..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_py3.py +++ /dev/null @@ -1,116 +0,0 @@ -# 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 MergedExportError(Model): - """The merged export error. - - :param id: The error Id. - :type id: str - :param incoming_object_display_name: The incoming object display name. - :type incoming_object_display_name: str - :param incoming_object_type: The incoming object type. - :type incoming_object_type: str - :param user_principal_name: The user principal name - :type user_principal_name: str - :param type: The type of the error. - :type type: str - :param attribute_name: The attribute name. - :type attribute_name: str - :param attribute_value: The attribute value. - :type attribute_value: str - :param time_occurred: The date and time when the error occurred. - :type time_occurred: datetime - :param time_first_occurred: The time when the error first occurred. - :type time_first_occurred: datetime - :param cs_object_id: the cs object Id. - :type cs_object_id: str - :param dn: the DN of the object. - :type dn: str - :param incoming_object: The incoming object details. - :type incoming_object: - ~azure.mgmt.adhybridhealthservice.models.AssociatedObject - :param existing_object: The existing object - :type existing_object: - ~azure.mgmt.adhybridhealthservice.models.AssociatedObject - :param modified_or_removed_attribute_value: The modified or removed - attribute vlaue. - :type modified_or_removed_attribute_value: str - :param run_step_result_id: The run step result Id. - :type run_step_result_id: str - :param sam_account_name: The sam account name. - :type sam_account_name: str - :param server_error_detail: The server error details. - :type server_error_detail: str - :param service_id: The service Id. - :type service_id: str - :param service_member_id: The server Id. - :type service_member_id: str - :param merged_entity_id: The merged entity Id. - :type merged_entity_id: str - :param created_date: The date and time, in UTC, when the error was - created. - :type created_date: datetime - :param export_error_status: The export error status. - :type export_error_status: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'incoming_object_display_name': {'key': 'incomingObjectDisplayName', 'type': 'str'}, - 'incoming_object_type': {'key': 'incomingObjectType', 'type': 'str'}, - 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'attribute_name': {'key': 'attributeName', 'type': 'str'}, - 'attribute_value': {'key': 'attributeValue', 'type': 'str'}, - 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, - 'time_first_occurred': {'key': 'timeFirstOccurred', 'type': 'iso-8601'}, - 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, - 'dn': {'key': 'dn', 'type': 'str'}, - 'incoming_object': {'key': 'incomingObject', 'type': 'AssociatedObject'}, - 'existing_object': {'key': 'existingObject', 'type': 'AssociatedObject'}, - 'modified_or_removed_attribute_value': {'key': 'modifiedOrRemovedAttributeValue', 'type': 'str'}, - 'run_step_result_id': {'key': 'runStepResultId', 'type': 'str'}, - 'sam_account_name': {'key': 'samAccountName', 'type': 'str'}, - 'server_error_detail': {'key': 'serverErrorDetail', 'type': 'str'}, - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - 'merged_entity_id': {'key': 'mergedEntityId', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'export_error_status': {'key': 'exportErrorStatus', 'type': 'int'}, - } - - def __init__(self, *, id: str=None, incoming_object_display_name: str=None, incoming_object_type: str=None, user_principal_name: str=None, type: str=None, attribute_name: str=None, attribute_value: str=None, time_occurred=None, time_first_occurred=None, cs_object_id: str=None, dn: str=None, incoming_object=None, existing_object=None, modified_or_removed_attribute_value: str=None, run_step_result_id: str=None, sam_account_name: str=None, server_error_detail: str=None, service_id: str=None, service_member_id: str=None, merged_entity_id: str=None, created_date=None, export_error_status: int=None, **kwargs) -> None: - super(MergedExportError, self).__init__(**kwargs) - self.id = id - self.incoming_object_display_name = incoming_object_display_name - self.incoming_object_type = incoming_object_type - self.user_principal_name = user_principal_name - self.type = type - self.attribute_name = attribute_name - self.attribute_value = attribute_value - self.time_occurred = time_occurred - self.time_first_occurred = time_first_occurred - self.cs_object_id = cs_object_id - self.dn = dn - self.incoming_object = incoming_object - self.existing_object = existing_object - self.modified_or_removed_attribute_value = modified_or_removed_attribute_value - self.run_step_result_id = run_step_result_id - self.sam_account_name = sam_account_name - self.server_error_detail = server_error_detail - self.service_id = service_id - self.service_member_id = service_member_id - self.merged_entity_id = merged_entity_id - self.created_date = created_date - self.export_error_status = export_error_status diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group.py deleted file mode 100644 index 0335be23e794..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 MetricGroup(Model): - """The metric group details. - - :param key: The key for the group. - :type key: str - :param display_name: The display name for the group. - :type display_name: str - :param invisible_for_ui: indicates if the metric group is displayed in - Azure Active Directory Connect Health UI. - :type invisible_for_ui: bool - """ - - _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'invisible_for_ui': {'key': 'invisibleForUi', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(MetricGroup, self).__init__(**kwargs) - self.key = kwargs.get('key', None) - self.display_name = kwargs.get('display_name', None) - self.invisible_for_ui = kwargs.get('invisible_for_ui', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group_py3.py deleted file mode 100644 index ab7df9386744..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_group_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 MetricGroup(Model): - """The metric group details. - - :param key: The key for the group. - :type key: str - :param display_name: The display name for the group. - :type display_name: str - :param invisible_for_ui: indicates if the metric group is displayed in - Azure Active Directory Connect Health UI. - :type invisible_for_ui: bool - """ - - _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'invisible_for_ui': {'key': 'invisibleForUi', 'type': 'bool'}, - } - - def __init__(self, *, key: str=None, display_name: str=None, invisible_for_ui: bool=None, **kwargs) -> None: - super(MetricGroup, self).__init__(**kwargs) - self.key = key - self.display_name = display_name - self.invisible_for_ui = invisible_for_ui diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata.py deleted file mode 100644 index 862bd6f790d3..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata.py +++ /dev/null @@ -1,73 +0,0 @@ -# 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 MetricMetadata(Model): - """The metric meta data. - - :param metrics_processor_class_name: The name of the class which retrieve - and process the metric. - :type metrics_processor_class_name: str - :param metric_name: The metric name - :type metric_name: str - :param groupings: The groupings for the metrics. - :type groupings: - list[~azure.mgmt.adhybridhealthservice.models.MetricGroup] - :param display_name: The display name for the metric. - :type display_name: str - :param value_kind: Indicates if the metrics is a rate,value, percent or - duration type. - :type value_kind: str - :param min_value: The minimun value. - :type min_value: int - :param max_value: The maximum value. - :type max_value: int - :param kind: Indicates whether the dashboard to represent the metric is a - line, bar,pie, area or donut chart. - :type kind: str - :param is_default: Indicates if the metric is a default metric or not. - :type is_default: bool - :param is_perf_counter: Indicates if the metric is a performance counter - metric or not. - :type is_perf_counter: bool - :param is_dev_ops: Indicates if the metric is visible to DevOps or not. - :type is_dev_ops: bool - """ - - _attribute_map = { - 'metrics_processor_class_name': {'key': 'metricsProcessorClassName', 'type': 'str'}, - 'metric_name': {'key': 'metricName', 'type': 'str'}, - 'groupings': {'key': 'groupings', 'type': '[MetricGroup]'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'value_kind': {'key': 'valueKind', 'type': 'str'}, - 'min_value': {'key': 'minValue', 'type': 'int'}, - 'max_value': {'key': 'maxValue', 'type': 'int'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_perf_counter': {'key': 'isPerfCounter', 'type': 'bool'}, - 'is_dev_ops': {'key': 'isDevOps', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(MetricMetadata, self).__init__(**kwargs) - self.metrics_processor_class_name = kwargs.get('metrics_processor_class_name', None) - self.metric_name = kwargs.get('metric_name', None) - self.groupings = kwargs.get('groupings', None) - self.display_name = kwargs.get('display_name', None) - self.value_kind = kwargs.get('value_kind', None) - self.min_value = kwargs.get('min_value', None) - self.max_value = kwargs.get('max_value', None) - self.kind = kwargs.get('kind', None) - self.is_default = kwargs.get('is_default', None) - self.is_perf_counter = kwargs.get('is_perf_counter', None) - self.is_dev_ops = kwargs.get('is_dev_ops', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_paged.py deleted file mode 100644 index 95908771fe42..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 MetricMetadataPaged(Paged): - """ - A paging container for iterating over a list of :class:`MetricMetadata ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[MetricMetadata]'} - } - - def __init__(self, *args, **kwargs): - - super(MetricMetadataPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_py3.py deleted file mode 100644 index 8087ee60b9d1..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_py3.py +++ /dev/null @@ -1,73 +0,0 @@ -# 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 MetricMetadata(Model): - """The metric meta data. - - :param metrics_processor_class_name: The name of the class which retrieve - and process the metric. - :type metrics_processor_class_name: str - :param metric_name: The metric name - :type metric_name: str - :param groupings: The groupings for the metrics. - :type groupings: - list[~azure.mgmt.adhybridhealthservice.models.MetricGroup] - :param display_name: The display name for the metric. - :type display_name: str - :param value_kind: Indicates if the metrics is a rate,value, percent or - duration type. - :type value_kind: str - :param min_value: The minimun value. - :type min_value: int - :param max_value: The maximum value. - :type max_value: int - :param kind: Indicates whether the dashboard to represent the metric is a - line, bar,pie, area or donut chart. - :type kind: str - :param is_default: Indicates if the metric is a default metric or not. - :type is_default: bool - :param is_perf_counter: Indicates if the metric is a performance counter - metric or not. - :type is_perf_counter: bool - :param is_dev_ops: Indicates if the metric is visible to DevOps or not. - :type is_dev_ops: bool - """ - - _attribute_map = { - 'metrics_processor_class_name': {'key': 'metricsProcessorClassName', 'type': 'str'}, - 'metric_name': {'key': 'metricName', 'type': 'str'}, - 'groupings': {'key': 'groupings', 'type': '[MetricGroup]'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'value_kind': {'key': 'valueKind', 'type': 'str'}, - 'min_value': {'key': 'minValue', 'type': 'int'}, - 'max_value': {'key': 'maxValue', 'type': 'int'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_perf_counter': {'key': 'isPerfCounter', 'type': 'bool'}, - 'is_dev_ops': {'key': 'isDevOps', 'type': 'bool'}, - } - - def __init__(self, *, metrics_processor_class_name: str=None, metric_name: str=None, groupings=None, display_name: str=None, value_kind: str=None, min_value: int=None, max_value: int=None, kind: str=None, is_default: bool=None, is_perf_counter: bool=None, is_dev_ops: bool=None, **kwargs) -> None: - super(MetricMetadata, self).__init__(**kwargs) - self.metrics_processor_class_name = metrics_processor_class_name - self.metric_name = metric_name - self.groupings = groupings - self.display_name = display_name - self.value_kind = value_kind - self.min_value = min_value - self.max_value = max_value - self.kind = kind - self.is_default = is_default - self.is_perf_counter = is_perf_counter - self.is_dev_ops = is_dev_ops diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set.py deleted file mode 100644 index b1e75d6fc9fb..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 MetricSet(Model): - """The set of metric values. Example of a MetricSet are Values of token - requests for a Server1 or RelyingParty1. - - :param set_name: The name of the set. - :type set_name: str - :param values: The list of the metric values. - :type values: list[int] - """ - - _attribute_map = { - 'set_name': {'key': 'setName', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[int]'}, - } - - def __init__(self, **kwargs): - super(MetricSet, self).__init__(**kwargs) - self.set_name = kwargs.get('set_name', None) - self.values = kwargs.get('values', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set_py3.py deleted file mode 100644 index 569abe25c060..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_set_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 MetricSet(Model): - """The set of metric values. Example of a MetricSet are Values of token - requests for a Server1 or RelyingParty1. - - :param set_name: The name of the set. - :type set_name: str - :param values: The list of the metric values. - :type values: list[int] - """ - - _attribute_map = { - 'set_name': {'key': 'setName', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[int]'}, - } - - def __init__(self, *, set_name: str=None, values=None, **kwargs) -> None: - super(MetricSet, self).__init__(**kwargs) - self.set_name = set_name - self.values = values diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets.py deleted file mode 100644 index a8f4b04838ff..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 MetricSets(Model): - """The metrics data represented set. - - :param sets: The list of metric set. - :type sets: list[~azure.mgmt.adhybridhealthservice.models.MetricSet] - :param time_stamps: The list of timestamps for each metric in the metric - set. - :type time_stamps: list[datetime] - """ - - _attribute_map = { - 'sets': {'key': 'sets', 'type': '[MetricSet]'}, - 'time_stamps': {'key': 'timeStamps', 'type': '[iso-8601]'}, - } - - def __init__(self, **kwargs): - super(MetricSets, self).__init__(**kwargs) - self.sets = kwargs.get('sets', None) - self.time_stamps = kwargs.get('time_stamps', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets_py3.py deleted file mode 100644 index 5134f26d64e7..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_sets_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 MetricSets(Model): - """The metrics data represented set. - - :param sets: The list of metric set. - :type sets: list[~azure.mgmt.adhybridhealthservice.models.MetricSet] - :param time_stamps: The list of timestamps for each metric in the metric - set. - :type time_stamps: list[datetime] - """ - - _attribute_map = { - 'sets': {'key': 'sets', 'type': '[MetricSet]'}, - 'time_stamps': {'key': 'timeStamps', 'type': '[iso-8601]'}, - } - - def __init__(self, *, sets=None, time_stamps=None, **kwargs) -> None: - super(MetricSets, self).__init__(**kwargs) - self.sets = sets - self.time_stamps = time_stamps diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration.py deleted file mode 100644 index fccd8787abfb..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 ModuleConfiguration(Model): - """The module configuration as required by the Agent service. - - :param agent_service: The name of agent service. - :type agent_service: str - :param module_name: The name of the module for which the configuration is - applicable. - :type module_name: str - :param properties: The key value pairs of properties required for - configuration. - :type properties: dict[str, str] - """ - - _attribute_map = { - 'agent_service': {'key': 'agentService', 'type': 'str'}, - 'module_name': {'key': 'moduleName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ModuleConfiguration, self).__init__(**kwargs) - self.agent_service = kwargs.get('agent_service', None) - self.module_name = kwargs.get('module_name', None) - self.properties = kwargs.get('properties', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration_py3.py deleted file mode 100644 index f37acb6bdc17..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configuration_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 ModuleConfiguration(Model): - """The module configuration as required by the Agent service. - - :param agent_service: The name of agent service. - :type agent_service: str - :param module_name: The name of the module for which the configuration is - applicable. - :type module_name: str - :param properties: The key value pairs of properties required for - configuration. - :type properties: dict[str, str] - """ - - _attribute_map = { - 'agent_service': {'key': 'agentService', 'type': 'str'}, - 'module_name': {'key': 'moduleName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - } - - def __init__(self, *, agent_service: str=None, module_name: str=None, properties=None, **kwargs) -> None: - super(ModuleConfiguration, self).__init__(**kwargs) - self.agent_service = agent_service - self.module_name = module_name - self.properties = properties diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations.py deleted file mode 100644 index 48e85ab3f099..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 ModuleConfigurations(Model): - """The list of module configurations. - - :param value: The value returned by the operation. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.ModuleConfiguration] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ModuleConfiguration]'}, - } - - def __init__(self, **kwargs): - super(ModuleConfigurations, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations_py3.py deleted file mode 100644 index bc8872ff609c..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 ModuleConfigurations(Model): - """The list of module configurations. - - :param value: The value returned by the operation. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.ModuleConfiguration] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ModuleConfiguration]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ModuleConfigurations, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error.py deleted file mode 100644 index 3ed4f34dfa03..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error.py +++ /dev/null @@ -1,89 +0,0 @@ -# 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 ObjectWithSyncError(Model): - """The objects withg sync errors. - - :param source_of_authority: The source of authority. - :type source_of_authority: str - :param display_name: The display name. - :type display_name: str - :param object_type: The object type. - :type object_type: str - :param attribute_name: The attribute name. - :type attribute_name: str - :param attribute_value: The attribute value. - :type attribute_value: str - :param modififed_value: The modified value. - :type modififed_value: str - :param user_principal_name: The user principal name. - :type user_principal_name: str - :param object_guid: The object guid. - :type object_guid: str - :param attribute_multi_values: Indicates if the atttibute is multi-valued - or not. - :type attribute_multi_values: bool - :param min_limit: The minimum limit. - :type min_limit: str - :param max_limit: The maximum limit. - :type max_limit: str - :param distinguished_name: The distinguished name. - :type distinguished_name: str - :param mail: The email. - :type mail: str - :param time_occured: The date and time of occurance. - :type time_occured: datetime - :param error_type: The error type. - :type error_type: str - :param source_anchor: The source anchor. - :type source_anchor: str - """ - - _attribute_map = { - 'source_of_authority': {'key': 'sourceOfAuthority', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'attribute_name': {'key': 'attributeName', 'type': 'str'}, - 'attribute_value': {'key': 'attributeValue', 'type': 'str'}, - 'modififed_value': {'key': 'modififedValue', 'type': 'str'}, - 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, - 'object_guid': {'key': 'objectGuid', 'type': 'str'}, - 'attribute_multi_values': {'key': 'attributeMultiValues', 'type': 'bool'}, - 'min_limit': {'key': 'minLimit', 'type': 'str'}, - 'max_limit': {'key': 'maxLimit', 'type': 'str'}, - 'distinguished_name': {'key': 'distinguishedName', 'type': 'str'}, - 'mail': {'key': 'mail', 'type': 'str'}, - 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, - 'error_type': {'key': 'errorType', 'type': 'str'}, - 'source_anchor': {'key': 'sourceAnchor', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ObjectWithSyncError, self).__init__(**kwargs) - self.source_of_authority = kwargs.get('source_of_authority', None) - self.display_name = kwargs.get('display_name', None) - self.object_type = kwargs.get('object_type', None) - self.attribute_name = kwargs.get('attribute_name', None) - self.attribute_value = kwargs.get('attribute_value', None) - self.modififed_value = kwargs.get('modififed_value', None) - self.user_principal_name = kwargs.get('user_principal_name', None) - self.object_guid = kwargs.get('object_guid', None) - self.attribute_multi_values = kwargs.get('attribute_multi_values', None) - self.min_limit = kwargs.get('min_limit', None) - self.max_limit = kwargs.get('max_limit', None) - self.distinguished_name = kwargs.get('distinguished_name', None) - self.mail = kwargs.get('mail', None) - self.time_occured = kwargs.get('time_occured', None) - self.error_type = kwargs.get('error_type', None) - self.source_anchor = kwargs.get('source_anchor', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error_py3.py deleted file mode 100644 index 03fb5eac05be..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/object_with_sync_error_py3.py +++ /dev/null @@ -1,89 +0,0 @@ -# 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 ObjectWithSyncError(Model): - """The objects withg sync errors. - - :param source_of_authority: The source of authority. - :type source_of_authority: str - :param display_name: The display name. - :type display_name: str - :param object_type: The object type. - :type object_type: str - :param attribute_name: The attribute name. - :type attribute_name: str - :param attribute_value: The attribute value. - :type attribute_value: str - :param modififed_value: The modified value. - :type modififed_value: str - :param user_principal_name: The user principal name. - :type user_principal_name: str - :param object_guid: The object guid. - :type object_guid: str - :param attribute_multi_values: Indicates if the atttibute is multi-valued - or not. - :type attribute_multi_values: bool - :param min_limit: The minimum limit. - :type min_limit: str - :param max_limit: The maximum limit. - :type max_limit: str - :param distinguished_name: The distinguished name. - :type distinguished_name: str - :param mail: The email. - :type mail: str - :param time_occured: The date and time of occurance. - :type time_occured: datetime - :param error_type: The error type. - :type error_type: str - :param source_anchor: The source anchor. - :type source_anchor: str - """ - - _attribute_map = { - 'source_of_authority': {'key': 'sourceOfAuthority', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'attribute_name': {'key': 'attributeName', 'type': 'str'}, - 'attribute_value': {'key': 'attributeValue', 'type': 'str'}, - 'modififed_value': {'key': 'modififedValue', 'type': 'str'}, - 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, - 'object_guid': {'key': 'objectGuid', 'type': 'str'}, - 'attribute_multi_values': {'key': 'attributeMultiValues', 'type': 'bool'}, - 'min_limit': {'key': 'minLimit', 'type': 'str'}, - 'max_limit': {'key': 'maxLimit', 'type': 'str'}, - 'distinguished_name': {'key': 'distinguishedName', 'type': 'str'}, - 'mail': {'key': 'mail', 'type': 'str'}, - 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, - 'error_type': {'key': 'errorType', 'type': 'str'}, - 'source_anchor': {'key': 'sourceAnchor', 'type': 'str'}, - } - - def __init__(self, *, source_of_authority: str=None, display_name: str=None, object_type: str=None, attribute_name: str=None, attribute_value: str=None, modififed_value: str=None, user_principal_name: str=None, object_guid: str=None, attribute_multi_values: bool=None, min_limit: str=None, max_limit: str=None, distinguished_name: str=None, mail: str=None, time_occured=None, error_type: str=None, source_anchor: str=None, **kwargs) -> None: - super(ObjectWithSyncError, self).__init__(**kwargs) - self.source_of_authority = source_of_authority - self.display_name = display_name - self.object_type = object_type - self.attribute_name = attribute_name - self.attribute_value = attribute_value - self.modififed_value = modififed_value - self.user_principal_name = user_principal_name - self.object_guid = object_guid - self.attribute_multi_values = attribute_multi_values - self.min_limit = min_limit - self.max_limit = max_limit - self.distinguished_name = distinguished_name - self.mail = mail - self.time_occured = time_occured - self.error_type = error_type - self.source_anchor = source_anchor diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation.py deleted file mode 100644 index bb160b1caf78..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 Operation(Model): - """The details of the operation. - - :param name: The name of the operation. - :type name: str - :param display: The display details for the operation. - :type display: object - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_paged.py deleted file mode 100644 index 48ec9e0c8e0b..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_py3.py deleted file mode 100644 index 4f9238063241..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 Operation(Model): - """The details of the operation. - - :param name: The name of the operation. - :type name: str - :param display: The display details for the operation. - :type display: object - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'object'}, - } - - def __init__(self, *, name: str=None, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = name - self.display = display diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition.py deleted file mode 100644 index db1b446209fa..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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 Partition(Model): - """Describes the partition in Synchronization service. - - :param id: The partition Id. - :type id: str - :param dn: The distinguished name for the partition. - :type dn: str - :param enabled: Indicates if the partition object is selected or not. - :type enabled: bool - :param time_created: The date and time when the partition is created. - :type time_created: datetime - :param time_last_modified: The time and date when the partition was last - modified. - :type time_last_modified: datetime - :param partition_scope: The scope of the partition. - :type partition_scope: - ~azure.mgmt.adhybridhealthservice.models.PartitionScope - :param name: The name of the partition. - :type name: str - :param is_domain: Indicates if the partition is a domain or not. - :type is_domain: bool - :param type: The partition type. - :type type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'dn': {'key': 'dn', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'time_created': {'key': 'timeCreated', 'type': 'iso-8601'}, - 'time_last_modified': {'key': 'timeLastModified', 'type': 'iso-8601'}, - 'partition_scope': {'key': 'partitionScope', 'type': 'PartitionScope'}, - 'name': {'key': 'name', 'type': 'str'}, - 'is_domain': {'key': 'isDomain', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Partition, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.dn = kwargs.get('dn', None) - self.enabled = kwargs.get('enabled', None) - self.time_created = kwargs.get('time_created', None) - self.time_last_modified = kwargs.get('time_last_modified', None) - self.partition_scope = kwargs.get('partition_scope', None) - self.name = kwargs.get('name', None) - self.is_domain = kwargs.get('is_domain', None) - self.type = kwargs.get('type', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_py3.py deleted file mode 100644 index 37856c7d00ab..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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 Partition(Model): - """Describes the partition in Synchronization service. - - :param id: The partition Id. - :type id: str - :param dn: The distinguished name for the partition. - :type dn: str - :param enabled: Indicates if the partition object is selected or not. - :type enabled: bool - :param time_created: The date and time when the partition is created. - :type time_created: datetime - :param time_last_modified: The time and date when the partition was last - modified. - :type time_last_modified: datetime - :param partition_scope: The scope of the partition. - :type partition_scope: - ~azure.mgmt.adhybridhealthservice.models.PartitionScope - :param name: The name of the partition. - :type name: str - :param is_domain: Indicates if the partition is a domain or not. - :type is_domain: bool - :param type: The partition type. - :type type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'dn': {'key': 'dn', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'time_created': {'key': 'timeCreated', 'type': 'iso-8601'}, - 'time_last_modified': {'key': 'timeLastModified', 'type': 'iso-8601'}, - 'partition_scope': {'key': 'partitionScope', 'type': 'PartitionScope'}, - 'name': {'key': 'name', 'type': 'str'}, - 'is_domain': {'key': 'isDomain', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, dn: str=None, enabled: bool=None, time_created=None, time_last_modified=None, partition_scope=None, name: str=None, is_domain: bool=None, type: str=None, **kwargs) -> None: - super(Partition, self).__init__(**kwargs) - self.id = id - self.dn = dn - self.enabled = enabled - self.time_created = time_created - self.time_last_modified = time_last_modified - self.partition_scope = partition_scope - self.name = name - self.is_domain = is_domain - self.type = type diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope.py deleted file mode 100644 index f17bbb571034..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 PartitionScope(Model): - """The connector partition scope. - - :param is_default: Indicates if the partition scope is default or not. - :type is_default: bool - :param object_classes: The in-scope object classes. - :type object_classes: list[str] - :param containers_included: The list of containers included. - :type containers_included: list[str] - :param containers_excluded: The list of containers excluded. - :type containers_excluded: list[str] - """ - - _attribute_map = { - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'object_classes': {'key': 'objectClasses', 'type': '[str]'}, - 'containers_included': {'key': 'containersIncluded', 'type': '[str]'}, - 'containers_excluded': {'key': 'containersExcluded', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(PartitionScope, self).__init__(**kwargs) - self.is_default = kwargs.get('is_default', None) - self.object_classes = kwargs.get('object_classes', None) - self.containers_included = kwargs.get('containers_included', None) - self.containers_excluded = kwargs.get('containers_excluded', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope_py3.py deleted file mode 100644 index 288e75d2517b..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/partition_scope_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 PartitionScope(Model): - """The connector partition scope. - - :param is_default: Indicates if the partition scope is default or not. - :type is_default: bool - :param object_classes: The in-scope object classes. - :type object_classes: list[str] - :param containers_included: The list of containers included. - :type containers_included: list[str] - :param containers_excluded: The list of containers excluded. - :type containers_excluded: list[str] - """ - - _attribute_map = { - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'object_classes': {'key': 'objectClasses', 'type': '[str]'}, - 'containers_included': {'key': 'containersIncluded', 'type': '[str]'}, - 'containers_excluded': {'key': 'containersExcluded', 'type': '[str]'}, - } - - def __init__(self, *, is_default: bool=None, object_classes=None, containers_included=None, containers_excluded=None, **kwargs) -> None: - super(PartitionScope, self).__init__(**kwargs) - self.is_default = is_default - self.object_classes = object_classes - self.containers_included = containers_included - self.containers_excluded = containers_excluded diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration.py deleted file mode 100644 index cc5876d34e7a..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 PasswordHashSyncConfiguration(Model): - """The password has synchronization configuration settings. - - :param enabled: Indicates if the password hash synchronization - configuration settings is enabled. - :type enabled: bool - :param target: The target. - :type target: str - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PasswordHashSyncConfiguration, self).__init__(**kwargs) - self.enabled = kwargs.get('enabled', None) - self.target = kwargs.get('target', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration_py3.py deleted file mode 100644 index 23ebd9f68758..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_hash_sync_configuration_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 PasswordHashSyncConfiguration(Model): - """The password has synchronization configuration settings. - - :param enabled: Indicates if the password hash synchronization - configuration settings is enabled. - :type enabled: bool - :param target: The target. - :type target: str - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__(self, *, enabled: bool=None, target: str=None, **kwargs) -> None: - super(PasswordHashSyncConfiguration, self).__init__(**kwargs) - self.enabled = enabled - self.target = target diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings.py deleted file mode 100644 index f51812329111..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings.py +++ /dev/null @@ -1,69 +0,0 @@ -# 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 PasswordManagementSettings(Model): - """The password management settings. - - :param enabled: Indicates if the password extension is enabled. - :type enabled: bool - :param extension_file_path: The file path of the password management - extension. - :type extension_file_path: str - :param connect_to: Connection point of password management. - :type connect_to: str - :param connection_timeout: Connection timeoit for password extension. - :type connection_timeout: int - :param user: User to execute password extension. - :type user: str - :param supported_password_operations: The supported password operations. - Possible values include: 'Undefined', 'Set', 'Change' - :type supported_password_operations: str or - ~azure.mgmt.adhybridhealthservice.models.PasswordOperationTypes - :param maximum_retry_count: The maximum number of retries. - :type maximum_retry_count: int - :param retry_interval_in_seconds: The time between retries. - :type retry_interval_in_seconds: int - :param requires_secure_connection: Indicates if a secure connection is - required for password management. - :type requires_secure_connection: bool - :param unlock_account: Indicates if accounts should be unloacked when - resetting password. - :type unlock_account: bool - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'extension_file_path': {'key': 'extensionFilePath', 'type': 'str'}, - 'connect_to': {'key': 'connectTo', 'type': 'str'}, - 'connection_timeout': {'key': 'connectionTimeout', 'type': 'int'}, - 'user': {'key': 'user', 'type': 'str'}, - 'supported_password_operations': {'key': 'supportedPasswordOperations', 'type': 'str'}, - 'maximum_retry_count': {'key': 'maximumRetryCount', 'type': 'int'}, - 'retry_interval_in_seconds': {'key': 'retryIntervalInSeconds', 'type': 'int'}, - 'requires_secure_connection': {'key': 'requiresSecureConnection', 'type': 'bool'}, - 'unlock_account': {'key': 'unlockAccount', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(PasswordManagementSettings, self).__init__(**kwargs) - self.enabled = kwargs.get('enabled', None) - self.extension_file_path = kwargs.get('extension_file_path', None) - self.connect_to = kwargs.get('connect_to', None) - self.connection_timeout = kwargs.get('connection_timeout', None) - self.user = kwargs.get('user', None) - self.supported_password_operations = kwargs.get('supported_password_operations', None) - self.maximum_retry_count = kwargs.get('maximum_retry_count', None) - self.retry_interval_in_seconds = kwargs.get('retry_interval_in_seconds', None) - self.requires_secure_connection = kwargs.get('requires_secure_connection', None) - self.unlock_account = kwargs.get('unlock_account', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings_py3.py deleted file mode 100644 index d859a03603c8..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/password_management_settings_py3.py +++ /dev/null @@ -1,69 +0,0 @@ -# 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 PasswordManagementSettings(Model): - """The password management settings. - - :param enabled: Indicates if the password extension is enabled. - :type enabled: bool - :param extension_file_path: The file path of the password management - extension. - :type extension_file_path: str - :param connect_to: Connection point of password management. - :type connect_to: str - :param connection_timeout: Connection timeoit for password extension. - :type connection_timeout: int - :param user: User to execute password extension. - :type user: str - :param supported_password_operations: The supported password operations. - Possible values include: 'Undefined', 'Set', 'Change' - :type supported_password_operations: str or - ~azure.mgmt.adhybridhealthservice.models.PasswordOperationTypes - :param maximum_retry_count: The maximum number of retries. - :type maximum_retry_count: int - :param retry_interval_in_seconds: The time between retries. - :type retry_interval_in_seconds: int - :param requires_secure_connection: Indicates if a secure connection is - required for password management. - :type requires_secure_connection: bool - :param unlock_account: Indicates if accounts should be unloacked when - resetting password. - :type unlock_account: bool - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'extension_file_path': {'key': 'extensionFilePath', 'type': 'str'}, - 'connect_to': {'key': 'connectTo', 'type': 'str'}, - 'connection_timeout': {'key': 'connectionTimeout', 'type': 'int'}, - 'user': {'key': 'user', 'type': 'str'}, - 'supported_password_operations': {'key': 'supportedPasswordOperations', 'type': 'str'}, - 'maximum_retry_count': {'key': 'maximumRetryCount', 'type': 'int'}, - 'retry_interval_in_seconds': {'key': 'retryIntervalInSeconds', 'type': 'int'}, - 'requires_secure_connection': {'key': 'requiresSecureConnection', 'type': 'bool'}, - 'unlock_account': {'key': 'unlockAccount', 'type': 'bool'}, - } - - def __init__(self, *, enabled: bool=None, extension_file_path: str=None, connect_to: str=None, connection_timeout: int=None, user: str=None, supported_password_operations=None, maximum_retry_count: int=None, retry_interval_in_seconds: int=None, requires_secure_connection: bool=None, unlock_account: bool=None, **kwargs) -> None: - super(PasswordManagementSettings, self).__init__(**kwargs) - self.enabled = enabled - self.extension_file_path = extension_file_path - self.connect_to = connect_to - self.connection_timeout = connection_timeout - self.user = user - self.supported_password_operations = supported_password_operations - self.maximum_retry_count = maximum_retry_count - self.retry_interval_in_seconds = retry_interval_in_seconds - self.requires_secure_connection = requires_secure_connection - self.unlock_account = unlock_account diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status.py deleted file mode 100644 index 46db9b9a8520..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 ReplicationStatus(Model): - """Replication summary for a domain controller. - - :param forest_name: The forest name. - :type forest_name: str - :param total_dc_count: The total numbe of domain controllers for a given - forest. - :type total_dc_count: int - :param error_dc_count: The total number of domain controllers with error - in a given forest. - :type error_dc_count: int - """ - - _attribute_map = { - 'forest_name': {'key': 'forestName', 'type': 'str'}, - 'total_dc_count': {'key': 'totalDcCount', 'type': 'int'}, - 'error_dc_count': {'key': 'errorDcCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ReplicationStatus, self).__init__(**kwargs) - self.forest_name = kwargs.get('forest_name', None) - self.total_dc_count = kwargs.get('total_dc_count', None) - self.error_dc_count = kwargs.get('error_dc_count', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status_py3.py deleted file mode 100644 index 3b59644f6c87..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_status_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 ReplicationStatus(Model): - """Replication summary for a domain controller. - - :param forest_name: The forest name. - :type forest_name: str - :param total_dc_count: The total numbe of domain controllers for a given - forest. - :type total_dc_count: int - :param error_dc_count: The total number of domain controllers with error - in a given forest. - :type error_dc_count: int - """ - - _attribute_map = { - 'forest_name': {'key': 'forestName', 'type': 'str'}, - 'total_dc_count': {'key': 'totalDcCount', 'type': 'int'}, - 'error_dc_count': {'key': 'errorDcCount', 'type': 'int'}, - } - - def __init__(self, *, forest_name: str=None, total_dc_count: int=None, error_dc_count: int=None, **kwargs) -> None: - super(ReplicationStatus, self).__init__(**kwargs) - self.forest_name = forest_name - self.total_dc_count = total_dc_count - self.error_dc_count = error_dc_count diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py deleted file mode 100644 index 1e20005cd20c..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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 ReplicationSummary(Model): - """The replication summary for a domain controller. - - :param target_server: The domain controller name. - :type target_server: str - :param site: The site name for a given domain controller. - :type site: str - :param domain: The domain name for a given domain controller. - :type domain: str - :param status: The health status for a domain controller. - :type status: int - :param last_attempted_sync: The last time when a sync was attempted for a - given domain controller. - :type last_attempted_sync: datetime - :param last_successful_sync: The time when the last successful sync - happened for a given domain controller. - :type last_successful_sync: datetime - :param inbound_neighbor_collection: List of individual domain controller - neighbor's inbound replication status. - :type inbound_neighbor_collection: - list[~azure.mgmt.adhybridhealthservice.models.InboundReplicationNeighbor] - """ - - _attribute_map = { - 'target_server': {'key': 'targetServer', 'type': 'str'}, - 'site': {'key': 'site', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'int'}, - 'last_attempted_sync': {'key': 'lastAttemptedSync', 'type': 'iso-8601'}, - 'last_successful_sync': {'key': 'lastSuccessfulSync', 'type': 'iso-8601'}, - 'inbound_neighbor_collection': {'key': 'inboundNeighborCollection', 'type': '[InboundReplicationNeighbor]'}, - } - - def __init__(self, **kwargs): - super(ReplicationSummary, self).__init__(**kwargs) - self.target_server = kwargs.get('target_server', None) - self.site = kwargs.get('site', None) - self.domain = kwargs.get('domain', None) - self.status = kwargs.get('status', None) - self.last_attempted_sync = kwargs.get('last_attempted_sync', None) - self.last_successful_sync = kwargs.get('last_successful_sync', None) - self.inbound_neighbor_collection = kwargs.get('inbound_neighbor_collection', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_paged.py deleted file mode 100644 index 9a5c41de1b61..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 ReplicationSummaryPaged(Paged): - """ - A paging container for iterating over a list of :class:`ReplicationSummary ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ReplicationSummary]'} - } - - def __init__(self, *args, **kwargs): - - super(ReplicationSummaryPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_py3.py deleted file mode 100644 index 5da5d0eb5f40..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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 ReplicationSummary(Model): - """The replication summary for a domain controller. - - :param target_server: The domain controller name. - :type target_server: str - :param site: The site name for a given domain controller. - :type site: str - :param domain: The domain name for a given domain controller. - :type domain: str - :param status: The health status for a domain controller. - :type status: int - :param last_attempted_sync: The last time when a sync was attempted for a - given domain controller. - :type last_attempted_sync: datetime - :param last_successful_sync: The time when the last successful sync - happened for a given domain controller. - :type last_successful_sync: datetime - :param inbound_neighbor_collection: List of individual domain controller - neighbor's inbound replication status. - :type inbound_neighbor_collection: - list[~azure.mgmt.adhybridhealthservice.models.InboundReplicationNeighbor] - """ - - _attribute_map = { - 'target_server': {'key': 'targetServer', 'type': 'str'}, - 'site': {'key': 'site', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'int'}, - 'last_attempted_sync': {'key': 'lastAttemptedSync', 'type': 'iso-8601'}, - 'last_successful_sync': {'key': 'lastSuccessfulSync', 'type': 'iso-8601'}, - 'inbound_neighbor_collection': {'key': 'inboundNeighborCollection', 'type': '[InboundReplicationNeighbor]'}, - } - - def __init__(self, *, target_server: str=None, site: str=None, domain: str=None, status: int=None, last_attempted_sync=None, last_successful_sync=None, inbound_neighbor_collection=None, **kwargs) -> None: - super(ReplicationSummary, self).__init__(**kwargs) - self.target_server = target_server - self.site = site - self.domain = domain - self.status = status - self.last_attempted_sync = last_attempted_sync - self.last_successful_sync = last_successful_sync - self.inbound_neighbor_collection = inbound_neighbor_collection diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result.py deleted file mode 100644 index ff62f0466a78..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 Result(Model): - """The result for an operation. - - :param value: The value. - :type value: bool - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(Result, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result_py3.py deleted file mode 100644 index 86023b0efc63..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/result_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 Result(Model): - """The result for an operation. - - :param value: The value. - :type value: bool - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'bool'}, - } - - def __init__(self, *, value: bool=None, **kwargs) -> None: - super(Result, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info.py deleted file mode 100644 index 6dbd731a5008..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 RuleErrorInfo(Model): - """The error details in legacy rule processing. - - :param attribute_mapping: The attribute mapping details. - :type attribute_mapping: - ~azure.mgmt.adhybridhealthservice.models.AttributeMapping - :param connector_id: The connector Id. - :type connector_id: str - :param connector_name: The connector name. - :type connector_name: str - :param cs_object_id: The object Id. - :type cs_object_id: str - :param dn: The distinguished name. - :type dn: str - """ - - _attribute_map = { - 'attribute_mapping': {'key': 'attributeMapping', 'type': 'AttributeMapping'}, - 'connector_id': {'key': 'connectorId', 'type': 'str'}, - 'connector_name': {'key': 'connectorName', 'type': 'str'}, - 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, - 'dn': {'key': 'dn', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RuleErrorInfo, self).__init__(**kwargs) - self.attribute_mapping = kwargs.get('attribute_mapping', None) - self.connector_id = kwargs.get('connector_id', None) - self.connector_name = kwargs.get('connector_name', None) - self.cs_object_id = kwargs.get('cs_object_id', None) - self.dn = kwargs.get('dn', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info_py3.py deleted file mode 100644 index df377c5c05d1..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/rule_error_info_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 RuleErrorInfo(Model): - """The error details in legacy rule processing. - - :param attribute_mapping: The attribute mapping details. - :type attribute_mapping: - ~azure.mgmt.adhybridhealthservice.models.AttributeMapping - :param connector_id: The connector Id. - :type connector_id: str - :param connector_name: The connector name. - :type connector_name: str - :param cs_object_id: The object Id. - :type cs_object_id: str - :param dn: The distinguished name. - :type dn: str - """ - - _attribute_map = { - 'attribute_mapping': {'key': 'attributeMapping', 'type': 'AttributeMapping'}, - 'connector_id': {'key': 'connectorId', 'type': 'str'}, - 'connector_name': {'key': 'connectorName', 'type': 'str'}, - 'cs_object_id': {'key': 'csObjectId', 'type': 'str'}, - 'dn': {'key': 'dn', 'type': 'str'}, - } - - def __init__(self, *, attribute_mapping=None, connector_id: str=None, connector_name: str=None, cs_object_id: str=None, dn: str=None, **kwargs) -> None: - super(RuleErrorInfo, self).__init__(**kwargs) - self.attribute_mapping = attribute_mapping - self.connector_id = connector_id - self.connector_name = connector_name - self.cs_object_id = cs_object_id - self.dn = dn diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile.py deleted file mode 100644 index 06bb9ab523b0..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 RunProfile(Model): - """Describes the run profile. - - :param id: The run profile Id. - :type id: str - :param name: The run profile name - :type name: str - :param run_steps: The run steps of the run profile. - :type run_steps: list[~azure.mgmt.adhybridhealthservice.models.RunStep] - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'run_steps': {'key': 'runSteps', 'type': '[RunStep]'}, - } - - def __init__(self, **kwargs): - super(RunProfile, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.name = kwargs.get('name', None) - self.run_steps = kwargs.get('run_steps', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile_py3.py deleted file mode 100644 index 8b06080db923..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profile_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 RunProfile(Model): - """Describes the run profile. - - :param id: The run profile Id. - :type id: str - :param name: The run profile name - :type name: str - :param run_steps: The run steps of the run profile. - :type run_steps: list[~azure.mgmt.adhybridhealthservice.models.RunStep] - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'run_steps': {'key': 'runSteps', 'type': '[RunStep]'}, - } - - def __init__(self, *, id: str=None, name: str=None, run_steps=None, **kwargs) -> None: - super(RunProfile, self).__init__(**kwargs) - self.id = id - self.name = name - self.run_steps = run_steps diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles.py deleted file mode 100644 index 75f70427d75d..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 RunProfiles(Model): - """The list of run profiles. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.RunProfile] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[RunProfile]'}, - } - - def __init__(self, **kwargs): - super(RunProfiles, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles_py3.py deleted file mode 100644 index 1e040d9fc474..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 RunProfiles(Model): - """The list of run profiles. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.RunProfile] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[RunProfile]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(RunProfiles, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py deleted file mode 100644 index 1b21ed9603f3..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 RunStep(Model): - """The run step for a run profile. - - :param batch_size: The batch size used by the run step. - :type batch_size: int - :param object_process_limit: The obect processing limit. - :type object_process_limit: int - :param object_delete_limit: The object deletion limit. - :type object_delete_limit: int - :param page_size: The page size of the run step. - :type page_size: int - :param partition_id: The Id of the partition that a current run setp - operation is executing. - :type partition_id: str - :param operation_type: The run step operation types. - :type operation_type: int - :param timeout: The operation timeout. - :type timeout: int - """ - - _attribute_map = { - 'batch_size': {'key': 'batchSize', 'type': 'int'}, - 'object_process_limit': {'key': 'objectProcessLimit', 'type': 'int'}, - 'object_delete_limit': {'key': 'objectDeleteLimit', 'type': 'int'}, - 'page_size': {'key': 'pageSize', 'type': 'int'}, - 'partition_id': {'key': 'partitionId', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'int'}, - 'timeout': {'key': 'timeout', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(RunStep, self).__init__(**kwargs) - self.batch_size = kwargs.get('batch_size', None) - self.object_process_limit = kwargs.get('object_process_limit', None) - self.object_delete_limit = kwargs.get('object_delete_limit', None) - self.page_size = kwargs.get('page_size', None) - self.partition_id = kwargs.get('partition_id', None) - self.operation_type = kwargs.get('operation_type', None) - self.timeout = kwargs.get('timeout', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step_py3.py deleted file mode 100644 index e18eb818def9..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 RunStep(Model): - """The run step for a run profile. - - :param batch_size: The batch size used by the run step. - :type batch_size: int - :param object_process_limit: The obect processing limit. - :type object_process_limit: int - :param object_delete_limit: The object deletion limit. - :type object_delete_limit: int - :param page_size: The page size of the run step. - :type page_size: int - :param partition_id: The Id of the partition that a current run setp - operation is executing. - :type partition_id: str - :param operation_type: The run step operation types. - :type operation_type: int - :param timeout: The operation timeout. - :type timeout: int - """ - - _attribute_map = { - 'batch_size': {'key': 'batchSize', 'type': 'int'}, - 'object_process_limit': {'key': 'objectProcessLimit', 'type': 'int'}, - 'object_delete_limit': {'key': 'objectDeleteLimit', 'type': 'int'}, - 'page_size': {'key': 'pageSize', 'type': 'int'}, - 'partition_id': {'key': 'partitionId', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'int'}, - 'timeout': {'key': 'timeout', 'type': 'int'}, - } - - def __init__(self, *, batch_size: int=None, object_process_limit: int=None, object_delete_limit: int=None, page_size: int=None, partition_id: str=None, operation_type: int=None, timeout: int=None, **kwargs) -> None: - super(RunStep, self).__init__(**kwargs) - self.batch_size = batch_size - self.object_process_limit = object_process_limit - self.object_delete_limit = object_delete_limit - self.page_size = page_size - self.partition_id = partition_id - self.operation_type = operation_type - self.timeout = timeout diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py deleted file mode 100644 index 6897af27aff0..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 ServiceConfiguration(Model): - """The service configuration. - - :param version: The version of the sync service. - :type version: str - :param service_type: The service type of the server. - :type service_type: int - :param service_account: The service account. - :type service_account: str - :param sql_server: The SQL server information. - :type sql_server: str - :param sql_version: The SQL version. - :type sql_version: str - :param sql_edition: The SQL edition - :type sql_edition: str - :param sql_instance: The SQL instance details. - :type sql_instance: str - :param sql_database_name: The SQL database. - :type sql_database_name: str - :param sql_database_size: The SQL database size. - :type sql_database_size: int - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'service_type': {'key': 'serviceType', 'type': 'int'}, - 'service_account': {'key': 'serviceAccount', 'type': 'str'}, - 'sql_server': {'key': 'sqlServer', 'type': 'str'}, - 'sql_version': {'key': 'sqlVersion', 'type': 'str'}, - 'sql_edition': {'key': 'sqlEdition', 'type': 'str'}, - 'sql_instance': {'key': 'sqlInstance', 'type': 'str'}, - 'sql_database_name': {'key': 'sqlDatabaseName', 'type': 'str'}, - 'sql_database_size': {'key': 'sqlDatabaseSize', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ServiceConfiguration, self).__init__(**kwargs) - self.version = kwargs.get('version', None) - self.service_type = kwargs.get('service_type', None) - self.service_account = kwargs.get('service_account', None) - self.sql_server = kwargs.get('sql_server', None) - self.sql_version = kwargs.get('sql_version', None) - self.sql_edition = kwargs.get('sql_edition', None) - self.sql_instance = kwargs.get('sql_instance', None) - self.sql_database_name = kwargs.get('sql_database_name', None) - self.sql_database_size = kwargs.get('sql_database_size', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_py3.py deleted file mode 100644 index aa92278aea5a..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 ServiceConfiguration(Model): - """The service configuration. - - :param version: The version of the sync service. - :type version: str - :param service_type: The service type of the server. - :type service_type: int - :param service_account: The service account. - :type service_account: str - :param sql_server: The SQL server information. - :type sql_server: str - :param sql_version: The SQL version. - :type sql_version: str - :param sql_edition: The SQL edition - :type sql_edition: str - :param sql_instance: The SQL instance details. - :type sql_instance: str - :param sql_database_name: The SQL database. - :type sql_database_name: str - :param sql_database_size: The SQL database size. - :type sql_database_size: int - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'service_type': {'key': 'serviceType', 'type': 'int'}, - 'service_account': {'key': 'serviceAccount', 'type': 'str'}, - 'sql_server': {'key': 'sqlServer', 'type': 'str'}, - 'sql_version': {'key': 'sqlVersion', 'type': 'str'}, - 'sql_edition': {'key': 'sqlEdition', 'type': 'str'}, - 'sql_instance': {'key': 'sqlInstance', 'type': 'str'}, - 'sql_database_name': {'key': 'sqlDatabaseName', 'type': 'str'}, - 'sql_database_size': {'key': 'sqlDatabaseSize', 'type': 'int'}, - } - - def __init__(self, *, version: str=None, service_type: int=None, service_account: str=None, sql_server: str=None, sql_version: str=None, sql_edition: str=None, sql_instance: str=None, sql_database_name: str=None, sql_database_size: int=None, **kwargs) -> None: - super(ServiceConfiguration, self).__init__(**kwargs) - self.version = version - self.service_type = service_type - self.service_account = service_account - self.sql_server = sql_server - self.sql_version = sql_version - self.sql_edition = sql_edition - self.sql_instance = sql_instance - self.sql_database_name = sql_database_name - self.sql_database_size = sql_database_size diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py deleted file mode 100644 index a18703252f35..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py +++ /dev/null @@ -1,143 +0,0 @@ -# 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 ServiceMember(Model): - """The server properties for a given service. - - :param service_member_id: The id of the server. - :type service_member_id: str - :param service_id: The service id to whom this server belongs. - :type service_id: str - :param tenant_id: The tenant id to whom this server belongs. - :type tenant_id: str - :param active_alerts: The total number of alerts that are currently active - for the server. - :type active_alerts: int - :param additional_information: The additional information, if any, for the - server. - :type additional_information: str - :param created_date: The date time , in UTC, when the server was - onboaraded to Azure Active Directory Connect Health. - :type created_date: datetime - :param dimensions: The server specific configuration related dimensions. - :type dimensions: object - :param disabled: Indicates if the server is disabled or not. - :type disabled: bool - :param disabled_reason: The reason for disabling the server. - :type disabled_reason: int - :param installed_qfes: The list of installed QFEs for the server. - :type installed_qfes: object - :param last_disabled: The date and time , in UTC, when the server was last - disabled. - :type last_disabled: datetime - :param last_reboot: The date and time, in UTC, when the server was last - rebooted. - :type last_reboot: datetime - :param last_server_reported_monitoring_level_change: The date and time, in - UTC, when the server's data monitoring configuration was last changed. - :type last_server_reported_monitoring_level_change: datetime - :param last_updated: The date and time, in UTC, when the server proeprties - were last updated. - :type last_updated: datetime - :param machine_id: The id of the machine. - :type machine_id: str - :param machine_name: The name of the server. - :type machine_name: str - :param monitoring_configurations_computed: The monitoring configuration of - the server which determines what activities are monitored by Azure Active - Directory Connect Health. - :type monitoring_configurations_computed: object - :param monitoring_configurations_customized: The customized monitoring - configuration of the server which determines what activities are monitored - by Azure Active Directory Connect Health. - :type monitoring_configurations_customized: object - :param os_name: The name of the operating system installed in the machine. - :type os_name: str - :param os_version: The version of the operating system installed in the - machine. - :type os_version: str - :param properties: Server specific properties. - :type properties: object - :param recommended_qfes: The list of recommended hotfixes for the server. - :type recommended_qfes: object - :param resolved_alerts: The total count of alerts that are resolved for - this server. - :type resolved_alerts: int - :param role: The service role that is being monitored in the server. - :type role: str - :param server_reported_monitoring_level: The monitoring level reported by - the server. Possible values include: 'Partial', 'Full', 'Off' - :type server_reported_monitoring_level: str or - ~azure.mgmt.adhybridhealthservice.models.MonitoringLevel - :param status: The health status of the server. - :type status: str - """ - - _attribute_map = { - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, - 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'dimensions': {'key': 'dimensions', 'type': 'object'}, - 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'disabled_reason': {'key': 'disabledReason', 'type': 'int'}, - 'installed_qfes': {'key': 'installedQfes', 'type': 'object'}, - 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, - 'last_reboot': {'key': 'lastReboot', 'type': 'iso-8601'}, - 'last_server_reported_monitoring_level_change': {'key': 'lastServerReportedMonitoringLevelChange', 'type': 'iso-8601'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'machine_id': {'key': 'machineId', 'type': 'str'}, - 'machine_name': {'key': 'machineName', 'type': 'str'}, - 'monitoring_configurations_computed': {'key': 'monitoringConfigurationsComputed', 'type': 'object'}, - 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': 'object'}, - 'os_name': {'key': 'osName', 'type': 'str'}, - 'os_version': {'key': 'osVersion', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'recommended_qfes': {'key': 'recommendedQfes', 'type': 'object'}, - 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, - 'role': {'key': 'role', 'type': 'str'}, - 'server_reported_monitoring_level': {'key': 'serverReportedMonitoringLevel', 'type': 'MonitoringLevel'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceMember, self).__init__(**kwargs) - self.service_member_id = kwargs.get('service_member_id', None) - self.service_id = kwargs.get('service_id', None) - self.tenant_id = kwargs.get('tenant_id', None) - self.active_alerts = kwargs.get('active_alerts', None) - self.additional_information = kwargs.get('additional_information', None) - self.created_date = kwargs.get('created_date', None) - self.dimensions = kwargs.get('dimensions', None) - self.disabled = kwargs.get('disabled', None) - self.disabled_reason = kwargs.get('disabled_reason', None) - self.installed_qfes = kwargs.get('installed_qfes', None) - self.last_disabled = kwargs.get('last_disabled', None) - self.last_reboot = kwargs.get('last_reboot', None) - self.last_server_reported_monitoring_level_change = kwargs.get('last_server_reported_monitoring_level_change', None) - self.last_updated = kwargs.get('last_updated', None) - self.machine_id = kwargs.get('machine_id', None) - self.machine_name = kwargs.get('machine_name', None) - self.monitoring_configurations_computed = kwargs.get('monitoring_configurations_computed', None) - self.monitoring_configurations_customized = kwargs.get('monitoring_configurations_customized', None) - self.os_name = kwargs.get('os_name', None) - self.os_version = kwargs.get('os_version', None) - self.properties = kwargs.get('properties', None) - self.recommended_qfes = kwargs.get('recommended_qfes', None) - self.resolved_alerts = kwargs.get('resolved_alerts', None) - self.role = kwargs.get('role', None) - self.server_reported_monitoring_level = kwargs.get('server_reported_monitoring_level', None) - self.status = kwargs.get('status', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_paged.py deleted file mode 100644 index 93c6c6fd2f3d..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 ServiceMemberPaged(Paged): - """ - A paging container for iterating over a list of :class:`ServiceMember ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ServiceMember]'} - } - - def __init__(self, *args, **kwargs): - - super(ServiceMemberPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py deleted file mode 100644 index b38c86eb374a..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py +++ /dev/null @@ -1,143 +0,0 @@ -# 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 ServiceMember(Model): - """The server properties for a given service. - - :param service_member_id: The id of the server. - :type service_member_id: str - :param service_id: The service id to whom this server belongs. - :type service_id: str - :param tenant_id: The tenant id to whom this server belongs. - :type tenant_id: str - :param active_alerts: The total number of alerts that are currently active - for the server. - :type active_alerts: int - :param additional_information: The additional information, if any, for the - server. - :type additional_information: str - :param created_date: The date time , in UTC, when the server was - onboaraded to Azure Active Directory Connect Health. - :type created_date: datetime - :param dimensions: The server specific configuration related dimensions. - :type dimensions: object - :param disabled: Indicates if the server is disabled or not. - :type disabled: bool - :param disabled_reason: The reason for disabling the server. - :type disabled_reason: int - :param installed_qfes: The list of installed QFEs for the server. - :type installed_qfes: object - :param last_disabled: The date and time , in UTC, when the server was last - disabled. - :type last_disabled: datetime - :param last_reboot: The date and time, in UTC, when the server was last - rebooted. - :type last_reboot: datetime - :param last_server_reported_monitoring_level_change: The date and time, in - UTC, when the server's data monitoring configuration was last changed. - :type last_server_reported_monitoring_level_change: datetime - :param last_updated: The date and time, in UTC, when the server proeprties - were last updated. - :type last_updated: datetime - :param machine_id: The id of the machine. - :type machine_id: str - :param machine_name: The name of the server. - :type machine_name: str - :param monitoring_configurations_computed: The monitoring configuration of - the server which determines what activities are monitored by Azure Active - Directory Connect Health. - :type monitoring_configurations_computed: object - :param monitoring_configurations_customized: The customized monitoring - configuration of the server which determines what activities are monitored - by Azure Active Directory Connect Health. - :type monitoring_configurations_customized: object - :param os_name: The name of the operating system installed in the machine. - :type os_name: str - :param os_version: The version of the operating system installed in the - machine. - :type os_version: str - :param properties: Server specific properties. - :type properties: object - :param recommended_qfes: The list of recommended hotfixes for the server. - :type recommended_qfes: object - :param resolved_alerts: The total count of alerts that are resolved for - this server. - :type resolved_alerts: int - :param role: The service role that is being monitored in the server. - :type role: str - :param server_reported_monitoring_level: The monitoring level reported by - the server. Possible values include: 'Partial', 'Full', 'Off' - :type server_reported_monitoring_level: str or - ~azure.mgmt.adhybridhealthservice.models.MonitoringLevel - :param status: The health status of the server. - :type status: str - """ - - _attribute_map = { - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, - 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'dimensions': {'key': 'dimensions', 'type': 'object'}, - 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'disabled_reason': {'key': 'disabledReason', 'type': 'int'}, - 'installed_qfes': {'key': 'installedQfes', 'type': 'object'}, - 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, - 'last_reboot': {'key': 'lastReboot', 'type': 'iso-8601'}, - 'last_server_reported_monitoring_level_change': {'key': 'lastServerReportedMonitoringLevelChange', 'type': 'iso-8601'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'machine_id': {'key': 'machineId', 'type': 'str'}, - 'machine_name': {'key': 'machineName', 'type': 'str'}, - 'monitoring_configurations_computed': {'key': 'monitoringConfigurationsComputed', 'type': 'object'}, - 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': 'object'}, - 'os_name': {'key': 'osName', 'type': 'str'}, - 'os_version': {'key': 'osVersion', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'recommended_qfes': {'key': 'recommendedQfes', 'type': 'object'}, - 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, - 'role': {'key': 'role', 'type': 'str'}, - 'server_reported_monitoring_level': {'key': 'serverReportedMonitoringLevel', 'type': 'MonitoringLevel'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, service_member_id: str=None, service_id: str=None, tenant_id: str=None, active_alerts: int=None, additional_information: str=None, created_date=None, dimensions=None, disabled: bool=None, disabled_reason: int=None, installed_qfes=None, last_disabled=None, last_reboot=None, last_server_reported_monitoring_level_change=None, last_updated=None, machine_id: str=None, machine_name: str=None, monitoring_configurations_computed=None, monitoring_configurations_customized=None, os_name: str=None, os_version: str=None, properties=None, recommended_qfes=None, resolved_alerts: int=None, role: str=None, server_reported_monitoring_level=None, status: str=None, **kwargs) -> None: - super(ServiceMember, self).__init__(**kwargs) - self.service_member_id = service_member_id - self.service_id = service_id - self.tenant_id = tenant_id - self.active_alerts = active_alerts - self.additional_information = additional_information - self.created_date = created_date - self.dimensions = dimensions - self.disabled = disabled - self.disabled_reason = disabled_reason - self.installed_qfes = installed_qfes - self.last_disabled = last_disabled - self.last_reboot = last_reboot - self.last_server_reported_monitoring_level_change = last_server_reported_monitoring_level_change - self.last_updated = last_updated - self.machine_id = machine_id - self.machine_name = machine_name - self.monitoring_configurations_computed = monitoring_configurations_computed - self.monitoring_configurations_customized = monitoring_configurations_customized - self.os_name = os_name - self.os_version = os_version - self.properties = properties - self.recommended_qfes = recommended_qfes - self.resolved_alerts = resolved_alerts - self.role = role - self.server_reported_monitoring_level = server_reported_monitoring_level - self.status = status diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py deleted file mode 100644 index 6d857a32f1db..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py +++ /dev/null @@ -1,140 +0,0 @@ -# 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 ServiceProperties(Model): - """The service properties for a given service. - - :param id: The id of the service. - :type id: str - :param active_alerts: The count of alerts that are currently active for - the service. - :type active_alerts: int - :param additional_information: The additional information related to the - service. - :type additional_information: str - :param created_date: The date and time, in UTC, when the service was - onboarded to Azure Active Directory Connect Health. - :type created_date: datetime - :param custom_notification_emails: The list of additional emails that are - configured to recieve notifications about the service. - :type custom_notification_emails: list[str] - :param disabled: Indicates if the service is disabled or not. - :type disabled: bool - :param display_name: The display name of the service. - :type display_name: str - :param health: The health of the service. - :type health: str - :param last_disabled: The date and time, in UTC, when the service was last - disabled. - :type last_disabled: datetime - :param last_updated: The date or time , in UTC, when the service - properties were last updated. - :type last_updated: datetime - :param monitoring_configurations_computed: The monitoring configuration of - the service which determines what activities are monitored by Azure Active - Directory Connect Health. - :type monitoring_configurations_computed: object - :param monitoring_configurations_customized: The customized monitoring - configuration of the service which determines what activities are - monitored by Azure Active Directory Connect Health. - :type monitoring_configurations_customized: object - :param notification_email_enabled: Indicates if email notification is - enabled or not. - :type notification_email_enabled: bool - :param notification_email_enabled_for_global_admins: Indicates if email - notification is enabled for global administrators of the tenant. - :type notification_email_enabled_for_global_admins: bool - :param notification_emails_enabled_for_global_admins: Indicates if email - notification is enabled for global administrators of the tenant. - :type notification_emails_enabled_for_global_admins: bool - :param notification_emails: The list of emails to whom service - notifications will be sent. - :type notification_emails: list[str] - :param original_disabled_state: Gets the original disable state. - :type original_disabled_state: bool - :param resolved_alerts: The total count of alerts that has been resolved - for the service. - :type resolved_alerts: int - :param service_id: The id of the service. - :type service_id: str - :param service_name: The name of the service. - :type service_name: str - :param signature: The signature of the service. - :type signature: str - :param simple_properties: List of service specific configuration - properties. - :type simple_properties: object - :param tenant_id: The id of the tenant to which the service is registered - to. - :type tenant_id: str - :param type: The service type for the services onboarded to Azure Active - Directory Connect Health. Depending on whether the service is monitoring, - ADFS, Sync or ADDS roles, the service type can either be - AdFederationService or AadSyncService or AdDomainService. - :type type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, - 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'custom_notification_emails': {'key': 'customNotificationEmails', 'type': '[str]'}, - 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'health': {'key': 'health', 'type': 'str'}, - 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'monitoring_configurations_computed': {'key': 'monitoringConfigurationsComputed', 'type': 'object'}, - 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': 'object'}, - 'notification_email_enabled': {'key': 'notificationEmailEnabled', 'type': 'bool'}, - 'notification_email_enabled_for_global_admins': {'key': 'notificationEmailEnabledForGlobalAdmins', 'type': 'bool'}, - 'notification_emails_enabled_for_global_admins': {'key': 'notificationEmailsEnabledForGlobalAdmins', 'type': 'bool'}, - 'notification_emails': {'key': 'notificationEmails', 'type': '[str]'}, - 'original_disabled_state': {'key': 'originalDisabledState', 'type': 'bool'}, - 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'service_name': {'key': 'serviceName', 'type': 'str'}, - 'signature': {'key': 'signature', 'type': 'str'}, - 'simple_properties': {'key': 'simpleProperties', 'type': 'object'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceProperties, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.active_alerts = kwargs.get('active_alerts', None) - self.additional_information = kwargs.get('additional_information', None) - self.created_date = kwargs.get('created_date', None) - self.custom_notification_emails = kwargs.get('custom_notification_emails', None) - self.disabled = kwargs.get('disabled', None) - self.display_name = kwargs.get('display_name', None) - self.health = kwargs.get('health', None) - self.last_disabled = kwargs.get('last_disabled', None) - self.last_updated = kwargs.get('last_updated', None) - self.monitoring_configurations_computed = kwargs.get('monitoring_configurations_computed', None) - self.monitoring_configurations_customized = kwargs.get('monitoring_configurations_customized', None) - self.notification_email_enabled = kwargs.get('notification_email_enabled', None) - self.notification_email_enabled_for_global_admins = kwargs.get('notification_email_enabled_for_global_admins', None) - self.notification_emails_enabled_for_global_admins = kwargs.get('notification_emails_enabled_for_global_admins', None) - self.notification_emails = kwargs.get('notification_emails', None) - self.original_disabled_state = kwargs.get('original_disabled_state', None) - self.resolved_alerts = kwargs.get('resolved_alerts', None) - self.service_id = kwargs.get('service_id', None) - self.service_name = kwargs.get('service_name', None) - self.signature = kwargs.get('signature', None) - self.simple_properties = kwargs.get('simple_properties', None) - self.tenant_id = kwargs.get('tenant_id', None) - self.type = kwargs.get('type', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_paged.py deleted file mode 100644 index e9b71906ed48..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 ServicePropertiesPaged(Paged): - """ - A paging container for iterating over a list of :class:`ServiceProperties ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ServiceProperties]'} - } - - def __init__(self, *args, **kwargs): - - super(ServicePropertiesPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_py3.py deleted file mode 100644 index 09deee65fdb6..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_py3.py +++ /dev/null @@ -1,140 +0,0 @@ -# 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 ServiceProperties(Model): - """The service properties for a given service. - - :param id: The id of the service. - :type id: str - :param active_alerts: The count of alerts that are currently active for - the service. - :type active_alerts: int - :param additional_information: The additional information related to the - service. - :type additional_information: str - :param created_date: The date and time, in UTC, when the service was - onboarded to Azure Active Directory Connect Health. - :type created_date: datetime - :param custom_notification_emails: The list of additional emails that are - configured to recieve notifications about the service. - :type custom_notification_emails: list[str] - :param disabled: Indicates if the service is disabled or not. - :type disabled: bool - :param display_name: The display name of the service. - :type display_name: str - :param health: The health of the service. - :type health: str - :param last_disabled: The date and time, in UTC, when the service was last - disabled. - :type last_disabled: datetime - :param last_updated: The date or time , in UTC, when the service - properties were last updated. - :type last_updated: datetime - :param monitoring_configurations_computed: The monitoring configuration of - the service which determines what activities are monitored by Azure Active - Directory Connect Health. - :type monitoring_configurations_computed: object - :param monitoring_configurations_customized: The customized monitoring - configuration of the service which determines what activities are - monitored by Azure Active Directory Connect Health. - :type monitoring_configurations_customized: object - :param notification_email_enabled: Indicates if email notification is - enabled or not. - :type notification_email_enabled: bool - :param notification_email_enabled_for_global_admins: Indicates if email - notification is enabled for global administrators of the tenant. - :type notification_email_enabled_for_global_admins: bool - :param notification_emails_enabled_for_global_admins: Indicates if email - notification is enabled for global administrators of the tenant. - :type notification_emails_enabled_for_global_admins: bool - :param notification_emails: The list of emails to whom service - notifications will be sent. - :type notification_emails: list[str] - :param original_disabled_state: Gets the original disable state. - :type original_disabled_state: bool - :param resolved_alerts: The total count of alerts that has been resolved - for the service. - :type resolved_alerts: int - :param service_id: The id of the service. - :type service_id: str - :param service_name: The name of the service. - :type service_name: str - :param signature: The signature of the service. - :type signature: str - :param simple_properties: List of service specific configuration - properties. - :type simple_properties: object - :param tenant_id: The id of the tenant to which the service is registered - to. - :type tenant_id: str - :param type: The service type for the services onboarded to Azure Active - Directory Connect Health. Depending on whether the service is monitoring, - ADFS, Sync or ADDS roles, the service type can either be - AdFederationService or AadSyncService or AdDomainService. - :type type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, - 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'custom_notification_emails': {'key': 'customNotificationEmails', 'type': '[str]'}, - 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'health': {'key': 'health', 'type': 'str'}, - 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'monitoring_configurations_computed': {'key': 'monitoringConfigurationsComputed', 'type': 'object'}, - 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': 'object'}, - 'notification_email_enabled': {'key': 'notificationEmailEnabled', 'type': 'bool'}, - 'notification_email_enabled_for_global_admins': {'key': 'notificationEmailEnabledForGlobalAdmins', 'type': 'bool'}, - 'notification_emails_enabled_for_global_admins': {'key': 'notificationEmailsEnabledForGlobalAdmins', 'type': 'bool'}, - 'notification_emails': {'key': 'notificationEmails', 'type': '[str]'}, - 'original_disabled_state': {'key': 'originalDisabledState', 'type': 'bool'}, - 'resolved_alerts': {'key': 'resolvedAlerts', 'type': 'int'}, - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'service_name': {'key': 'serviceName', 'type': 'str'}, - 'signature': {'key': 'signature', 'type': 'str'}, - 'simple_properties': {'key': 'simpleProperties', 'type': 'object'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, active_alerts: int=None, additional_information: str=None, created_date=None, custom_notification_emails=None, disabled: bool=None, display_name: str=None, health: str=None, last_disabled=None, last_updated=None, monitoring_configurations_computed=None, monitoring_configurations_customized=None, notification_email_enabled: bool=None, notification_email_enabled_for_global_admins: bool=None, notification_emails_enabled_for_global_admins: bool=None, notification_emails=None, original_disabled_state: bool=None, resolved_alerts: int=None, service_id: str=None, service_name: str=None, signature: str=None, simple_properties=None, tenant_id: str=None, type: str=None, **kwargs) -> None: - super(ServiceProperties, self).__init__(**kwargs) - self.id = id - self.active_alerts = active_alerts - self.additional_information = additional_information - self.created_date = created_date - self.custom_notification_emails = custom_notification_emails - self.disabled = disabled - self.display_name = display_name - self.health = health - self.last_disabled = last_disabled - self.last_updated = last_updated - self.monitoring_configurations_computed = monitoring_configurations_computed - self.monitoring_configurations_customized = monitoring_configurations_customized - self.notification_email_enabled = notification_email_enabled - self.notification_email_enabled_for_global_admins = notification_email_enabled_for_global_admins - self.notification_emails_enabled_for_global_admins = notification_emails_enabled_for_global_admins - self.notification_emails = notification_emails - self.original_disabled_state = original_disabled_state - self.resolved_alerts = resolved_alerts - self.service_id = service_id - self.service_name = service_name - self.signature = signature - self.simple_properties = simple_properties - self.tenant_id = tenant_id - self.type = type diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error.py deleted file mode 100644 index 7f76f6135a35..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 TabularExportError(Model): - """The details for export error. - - :param service_id: The service Id. - :type service_id: str - :param service_member_id: The server Id. - :type service_member_id: str - :param merged_entity_id: The merged entity Id. - :type merged_entity_id: str - :param tabular_export_error_data: The export error data. - :type tabular_export_error_data: str - """ - - _attribute_map = { - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - 'merged_entity_id': {'key': 'mergedEntityId', 'type': 'str'}, - 'tabular_export_error_data': {'key': 'tabularExportErrorData', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TabularExportError, self).__init__(**kwargs) - self.service_id = kwargs.get('service_id', None) - self.service_member_id = kwargs.get('service_member_id', None) - self.merged_entity_id = kwargs.get('merged_entity_id', None) - self.tabular_export_error_data = kwargs.get('tabular_export_error_data', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error_py3.py deleted file mode 100644 index 3b6773d13cfd..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tabular_export_error_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 TabularExportError(Model): - """The details for export error. - - :param service_id: The service Id. - :type service_id: str - :param service_member_id: The server Id. - :type service_member_id: str - :param merged_entity_id: The merged entity Id. - :type merged_entity_id: str - :param tabular_export_error_data: The export error data. - :type tabular_export_error_data: str - """ - - _attribute_map = { - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, - 'merged_entity_id': {'key': 'mergedEntityId', 'type': 'str'}, - 'tabular_export_error_data': {'key': 'tabularExportErrorData', 'type': 'str'}, - } - - def __init__(self, *, service_id: str=None, service_member_id: str=None, merged_entity_id: str=None, tabular_export_error_data: str=None, **kwargs) -> None: - super(TabularExportError, self).__init__(**kwargs) - self.service_id = service_id - self.service_member_id = service_member_id - self.merged_entity_id = merged_entity_id - self.tabular_export_error_data = tabular_export_error_data diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py deleted file mode 100644 index 09c5f6608af3..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py +++ /dev/null @@ -1,126 +0,0 @@ -# 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 Tenant(Model): - """The details of the onboarded tenant. - - :param tenant_id: The Id of the tenant. - :type tenant_id: str - :param aad_license: The Azure Active Directory license of the tenant. - :type aad_license: str - :param aad_premium: Indicate if the tenant has Azure Active Directory - Premium license or not. - :type aad_premium: bool - :param agent_auto_update: Indicates if the tenant is configured to - automatically receive updates for Azure Active Directory Connect Health - client side features. - :type agent_auto_update: bool - :param alert_suppression_time_in_mins: The time in minutues after which an - alert will be autosupressed. - :type alert_suppression_time_in_mins: int - :param consented_to_microsoft_dev_ops: Indicates if the tenant data can be - seen by Microsoft through Azure portal. - :type consented_to_microsoft_dev_ops: bool - :param country_letter_code: The country letter code of the tenant. - :type country_letter_code: str - :param created_date: The date, in UTC, when the tenant was onboarded to - Azure Active Directory Connect Health. - :type created_date: datetime - :param dev_ops_ttl: The date and time, in UTC, till when the tenant data - can be seen by Microsoft through Azure portal. - :type dev_ops_ttl: datetime - :param disabled: Indicates if the tenant is disabled in Azure Active - Directory Connect Health. - :type disabled: bool - :param disabled_reason: The reason due to which the tenant was disabled in - Azure Active Directory Connect Health. - :type disabled_reason: int - :param global_admins_email: The list of golbal administrators for the - tenant. - :type global_admins_email: object - :param initial_domain: The initial domain of the tenant. - :type initial_domain: str - :param last_disabled: The date and time, in UTC, when the tenant was last - disabled in Azure Active Directory Connect Health. - :type last_disabled: datetime - :param last_verified: The date and time, in UTC, when the tenant - onboarding status in Azure Active Directory Connect Health was last - verified. - :type last_verified: datetime - :param onboarding_allowed: Indicates if the tenant is allowed to onboard - to Azure Active Directory Connect Health. - :type onboarding_allowed: bool - :param onboarded: Indicates if the tenant is already onboarded to Azure - Active Directory Connect Health. - :type onboarded: bool - :param pks_certificate: The certificate associated with the tenant to - onboard data to Azure Active Directory Connect Health. - :type pks_certificate: object - :param private_preview_tenant: Indicates if the tenant has signed up for - private preview of Azure Active Directory Connect Health features. - :type private_preview_tenant: bool - :param tenant_in_quarantine: Indicates if data collection for this tenant - is disabled or not. - :type tenant_in_quarantine: bool - :param tenant_name: The name of the tenant. - :type tenant_name: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'aad_license': {'key': 'aadLicense', 'type': 'str'}, - 'aad_premium': {'key': 'aadPremium', 'type': 'bool'}, - 'agent_auto_update': {'key': 'agentAutoUpdate', 'type': 'bool'}, - 'alert_suppression_time_in_mins': {'key': 'alertSuppressionTimeInMins', 'type': 'int'}, - 'consented_to_microsoft_dev_ops': {'key': 'consentedToMicrosoftDevOps', 'type': 'bool'}, - 'country_letter_code': {'key': 'countryLetterCode', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'dev_ops_ttl': {'key': 'devOpsTtl', 'type': 'iso-8601'}, - 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'disabled_reason': {'key': 'disabledReason', 'type': 'int'}, - 'global_admins_email': {'key': 'globalAdminsEmail', 'type': 'object'}, - 'initial_domain': {'key': 'initialDomain', 'type': 'str'}, - 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, - 'last_verified': {'key': 'lastVerified', 'type': 'iso-8601'}, - 'onboarding_allowed': {'key': 'onboardingAllowed', 'type': 'bool'}, - 'onboarded': {'key': 'onboarded', 'type': 'bool'}, - 'pks_certificate': {'key': 'pksCertificate', 'type': 'object'}, - 'private_preview_tenant': {'key': 'privatePreviewTenant', 'type': 'bool'}, - 'tenant_in_quarantine': {'key': 'tenantInQuarantine', 'type': 'bool'}, - 'tenant_name': {'key': 'tenantName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Tenant, self).__init__(**kwargs) - self.tenant_id = kwargs.get('tenant_id', None) - self.aad_license = kwargs.get('aad_license', None) - self.aad_premium = kwargs.get('aad_premium', None) - self.agent_auto_update = kwargs.get('agent_auto_update', None) - self.alert_suppression_time_in_mins = kwargs.get('alert_suppression_time_in_mins', None) - self.consented_to_microsoft_dev_ops = kwargs.get('consented_to_microsoft_dev_ops', None) - self.country_letter_code = kwargs.get('country_letter_code', None) - self.created_date = kwargs.get('created_date', None) - self.dev_ops_ttl = kwargs.get('dev_ops_ttl', None) - self.disabled = kwargs.get('disabled', None) - self.disabled_reason = kwargs.get('disabled_reason', None) - self.global_admins_email = kwargs.get('global_admins_email', None) - self.initial_domain = kwargs.get('initial_domain', None) - self.last_disabled = kwargs.get('last_disabled', None) - self.last_verified = kwargs.get('last_verified', None) - self.onboarding_allowed = kwargs.get('onboarding_allowed', None) - self.onboarded = kwargs.get('onboarded', None) - self.pks_certificate = kwargs.get('pks_certificate', None) - self.private_preview_tenant = kwargs.get('private_preview_tenant', None) - self.tenant_in_quarantine = kwargs.get('tenant_in_quarantine', None) - self.tenant_name = kwargs.get('tenant_name', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details.py deleted file mode 100644 index 38d055b74d20..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 TenantOnboardingDetails(Model): - """The tenant onboarding details. - - :param tenant_onboarded: Indicates if the tenant is onboarded to Azure - Active Directory Connect Health or not. - :type tenant_onboarded: bool - :param onboarding_display_url: The display url, to help tenant navigate or - onboard to Azure Active Directory Connect Health blade, based on tenant - onboarding status. - :type onboarding_display_url: str - """ - - _attribute_map = { - 'tenant_onboarded': {'key': 'tenantOnboarded', 'type': 'bool'}, - 'onboarding_display_url': {'key': 'onboardingDisplayUrl', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TenantOnboardingDetails, self).__init__(**kwargs) - self.tenant_onboarded = kwargs.get('tenant_onboarded', None) - self.onboarding_display_url = kwargs.get('onboarding_display_url', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details_py3.py deleted file mode 100644 index 29bc35c9422e..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_onboarding_details_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 TenantOnboardingDetails(Model): - """The tenant onboarding details. - - :param tenant_onboarded: Indicates if the tenant is onboarded to Azure - Active Directory Connect Health or not. - :type tenant_onboarded: bool - :param onboarding_display_url: The display url, to help tenant navigate or - onboard to Azure Active Directory Connect Health blade, based on tenant - onboarding status. - :type onboarding_display_url: str - """ - - _attribute_map = { - 'tenant_onboarded': {'key': 'tenantOnboarded', 'type': 'bool'}, - 'onboarding_display_url': {'key': 'onboardingDisplayUrl', 'type': 'str'}, - } - - def __init__(self, *, tenant_onboarded: bool=None, onboarding_display_url: str=None, **kwargs) -> None: - super(TenantOnboardingDetails, self).__init__(**kwargs) - self.tenant_onboarded = tenant_onboarded - self.onboarding_display_url = onboarding_display_url diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py deleted file mode 100644 index 3cecba14153e..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py +++ /dev/null @@ -1,126 +0,0 @@ -# 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 Tenant(Model): - """The details of the onboarded tenant. - - :param tenant_id: The Id of the tenant. - :type tenant_id: str - :param aad_license: The Azure Active Directory license of the tenant. - :type aad_license: str - :param aad_premium: Indicate if the tenant has Azure Active Directory - Premium license or not. - :type aad_premium: bool - :param agent_auto_update: Indicates if the tenant is configured to - automatically receive updates for Azure Active Directory Connect Health - client side features. - :type agent_auto_update: bool - :param alert_suppression_time_in_mins: The time in minutues after which an - alert will be autosupressed. - :type alert_suppression_time_in_mins: int - :param consented_to_microsoft_dev_ops: Indicates if the tenant data can be - seen by Microsoft through Azure portal. - :type consented_to_microsoft_dev_ops: bool - :param country_letter_code: The country letter code of the tenant. - :type country_letter_code: str - :param created_date: The date, in UTC, when the tenant was onboarded to - Azure Active Directory Connect Health. - :type created_date: datetime - :param dev_ops_ttl: The date and time, in UTC, till when the tenant data - can be seen by Microsoft through Azure portal. - :type dev_ops_ttl: datetime - :param disabled: Indicates if the tenant is disabled in Azure Active - Directory Connect Health. - :type disabled: bool - :param disabled_reason: The reason due to which the tenant was disabled in - Azure Active Directory Connect Health. - :type disabled_reason: int - :param global_admins_email: The list of golbal administrators for the - tenant. - :type global_admins_email: object - :param initial_domain: The initial domain of the tenant. - :type initial_domain: str - :param last_disabled: The date and time, in UTC, when the tenant was last - disabled in Azure Active Directory Connect Health. - :type last_disabled: datetime - :param last_verified: The date and time, in UTC, when the tenant - onboarding status in Azure Active Directory Connect Health was last - verified. - :type last_verified: datetime - :param onboarding_allowed: Indicates if the tenant is allowed to onboard - to Azure Active Directory Connect Health. - :type onboarding_allowed: bool - :param onboarded: Indicates if the tenant is already onboarded to Azure - Active Directory Connect Health. - :type onboarded: bool - :param pks_certificate: The certificate associated with the tenant to - onboard data to Azure Active Directory Connect Health. - :type pks_certificate: object - :param private_preview_tenant: Indicates if the tenant has signed up for - private preview of Azure Active Directory Connect Health features. - :type private_preview_tenant: bool - :param tenant_in_quarantine: Indicates if data collection for this tenant - is disabled or not. - :type tenant_in_quarantine: bool - :param tenant_name: The name of the tenant. - :type tenant_name: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'aad_license': {'key': 'aadLicense', 'type': 'str'}, - 'aad_premium': {'key': 'aadPremium', 'type': 'bool'}, - 'agent_auto_update': {'key': 'agentAutoUpdate', 'type': 'bool'}, - 'alert_suppression_time_in_mins': {'key': 'alertSuppressionTimeInMins', 'type': 'int'}, - 'consented_to_microsoft_dev_ops': {'key': 'consentedToMicrosoftDevOps', 'type': 'bool'}, - 'country_letter_code': {'key': 'countryLetterCode', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'dev_ops_ttl': {'key': 'devOpsTtl', 'type': 'iso-8601'}, - 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'disabled_reason': {'key': 'disabledReason', 'type': 'int'}, - 'global_admins_email': {'key': 'globalAdminsEmail', 'type': 'object'}, - 'initial_domain': {'key': 'initialDomain', 'type': 'str'}, - 'last_disabled': {'key': 'lastDisabled', 'type': 'iso-8601'}, - 'last_verified': {'key': 'lastVerified', 'type': 'iso-8601'}, - 'onboarding_allowed': {'key': 'onboardingAllowed', 'type': 'bool'}, - 'onboarded': {'key': 'onboarded', 'type': 'bool'}, - 'pks_certificate': {'key': 'pksCertificate', 'type': 'object'}, - 'private_preview_tenant': {'key': 'privatePreviewTenant', 'type': 'bool'}, - 'tenant_in_quarantine': {'key': 'tenantInQuarantine', 'type': 'bool'}, - 'tenant_name': {'key': 'tenantName', 'type': 'str'}, - } - - def __init__(self, *, tenant_id: str=None, aad_license: str=None, aad_premium: bool=None, agent_auto_update: bool=None, alert_suppression_time_in_mins: int=None, consented_to_microsoft_dev_ops: bool=None, country_letter_code: str=None, created_date=None, dev_ops_ttl=None, disabled: bool=None, disabled_reason: int=None, global_admins_email=None, initial_domain: str=None, last_disabled=None, last_verified=None, onboarding_allowed: bool=None, onboarded: bool=None, pks_certificate=None, private_preview_tenant: bool=None, tenant_in_quarantine: bool=None, tenant_name: str=None, **kwargs) -> None: - super(Tenant, self).__init__(**kwargs) - self.tenant_id = tenant_id - self.aad_license = aad_license - self.aad_premium = aad_premium - self.agent_auto_update = agent_auto_update - self.alert_suppression_time_in_mins = alert_suppression_time_in_mins - self.consented_to_microsoft_dev_ops = consented_to_microsoft_dev_ops - self.country_letter_code = country_letter_code - self.created_date = created_date - self.dev_ops_ttl = dev_ops_ttl - self.disabled = disabled - self.disabled_reason = disabled_reason - self.global_admins_email = global_admins_email - self.initial_domain = initial_domain - self.last_disabled = last_disabled - self.last_verified = last_verified - self.onboarding_allowed = onboarding_allowed - self.onboarded = onboarded - self.pks_certificate = pks_certificate - self.private_preview_tenant = private_preview_tenant - self.tenant_in_quarantine = tenant_in_quarantine - self.tenant_name = tenant_name diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference.py deleted file mode 100644 index e745d40d34bb..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 UserPreference(Model): - """The user preference for a given feature. - - :param metric_names: The name of the metric. - :type metric_names: list[str] - """ - - _attribute_map = { - 'metric_names': {'key': 'metricNames', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(UserPreference, self).__init__(**kwargs) - self.metric_names = kwargs.get('metric_names', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference_py3.py deleted file mode 100644 index d438bfe33692..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/user_preference_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 UserPreference(Model): - """The user preference for a given feature. - - :param metric_names: The name of the metric. - :type metric_names: list[str] - """ - - _attribute_map = { - 'metric_names': {'key': 'metricNames', 'type': '[str]'}, - } - - def __init__(self, *, metric_names=None, **kwargs) -> None: - super(UserPreference, self).__init__(**kwargs) - self.metric_names = metric_names diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta.py deleted file mode 100644 index 56483aeb90b8..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 ValueDelta(Model): - """The value of the delta. - - :param operation_type: The operation type. Possible values include: - 'Undefined', 'Add', 'Update', 'Delete' - :type operation_type: str or - ~azure.mgmt.adhybridhealthservice.models.ValueDeltaOperationType - :param value: The value of the delta. - :type value: str - """ - - _attribute_map = { - 'operation_type': {'key': 'operationType', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ValueDelta, self).__init__(**kwargs) - self.operation_type = kwargs.get('operation_type', None) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta_py3.py deleted file mode 100644 index e2857f6df8c5..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/value_delta_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 ValueDelta(Model): - """The value of the delta. - - :param operation_type: The operation type. Possible values include: - 'Undefined', 'Add', 'Update', 'Delete' - :type operation_type: str or - ~azure.mgmt.adhybridhealthservice.models.ValueDeltaOperationType - :param value: The value of the delta. - :type value: str - """ - - _attribute_map = { - 'operation_type': {'key': 'operationType', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, *, operation_type=None, value: str=None, **kwargs) -> None: - super(ValueDelta, self).__init__(**kwargs) - self.operation_type = operation_type - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py deleted file mode 100644 index 4ab28ba65e08..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 .adds_services_operations import AddsServicesOperations -from .alerts_operations import AlertsOperations -from .configuration_operations import ConfigurationOperations -from .dimensions_operations import DimensionsOperations -from .adds_service_members_operations import AddsServiceMembersOperations -from .ad_domain_service_members_operations import AdDomainServiceMembersOperations -from .adds_services_user_preference_operations import AddsServicesUserPreferenceOperations -from .adds_service_operations import AddsServiceOperations -from .adds_services_replication_status_operations import AddsServicesReplicationStatusOperations -from .adds_services_service_members_operations import AddsServicesServiceMembersOperations -from .operations import Operations -from .reports_operations import ReportsOperations -from .services_operations import ServicesOperations -from .service_operations import ServiceOperations -from .service_members_operations import ServiceMembersOperations - -__all__ = [ - 'AddsServicesOperations', - 'AlertsOperations', - 'ConfigurationOperations', - 'DimensionsOperations', - 'AddsServiceMembersOperations', - 'AdDomainServiceMembersOperations', - 'AddsServicesUserPreferenceOperations', - 'AddsServiceOperations', - 'AddsServicesReplicationStatusOperations', - 'AddsServicesServiceMembersOperations', - 'Operations', - 'ReportsOperations', - 'ServicesOperations', - 'ServiceOperations', - 'ServiceMembersOperations', -] diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/ad_domain_service_members_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/ad_domain_service_members_operations.py deleted file mode 100644 index 6e8f968d0023..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/ad_domain_service_members_operations.py +++ /dev/null @@ -1,128 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class AdDomainServiceMembersOperations(object): - """AdDomainServiceMembersOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar next_partition_key: The next partition key to query for. Constant value: "". - :ivar next_row_key: The next row key to query for. Constant value: "". - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.next_partition_key = "" - self.next_row_key = "" - self.api_version = "2014-01-01" - - self.config = config - - def list( - self, service_name, is_groupby_site, filter=None, query=None, take_count=None, custom_headers=None, raw=False, **operation_config): - """Gets the details of the servers, for a given Active Directory Domain - Service, that are onboarded to Azure Active Directory Connect Health. - - :param service_name: The name of the service. - :type service_name: str - :param is_groupby_site: Indicates if the result should be grouped by - site or not. - :type is_groupby_site: bool - :param filter: The server property filter to apply. - :type filter: str - :param query: The custom query. - :type query: str - :param take_count: The take count , which specifies the number of - elements that can be returned from a sequence. - :type take_count: int - :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 AddsServiceMember - :rtype: - ~azure.mgmt.adhybridhealthservice.models.AddsServiceMemberPaged[~azure.mgmt.adhybridhealthservice.models.AddsServiceMember] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - query_parameters['isGroupbySite'] = self._serialize.query("is_groupby_site", is_groupby_site, 'bool') - if query is not None: - query_parameters['query'] = self._serialize.query("query", query, 'str') - query_parameters['nextPartitionKey'] = self._serialize.query("self.next_partition_key", self.next_partition_key, 'str') - query_parameters['nextRowKey'] = self._serialize.query("self.next_row_key", self.next_row_key, 'str') - if take_count is not None: - query_parameters['takeCount'] = self._serialize.query("take_count", take_count, 'int') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.AddsServiceMemberPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.AddsServiceMemberPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/addomainservicemembers'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_members_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_members_operations.py deleted file mode 100644 index 63141e5e9b9b..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_members_operations.py +++ /dev/null @@ -1,307 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class AddsServiceMembersOperations(object): - """AddsServiceMembersOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def list( - self, service_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Gets the details of the Active Directory Domain servers, for a given - Active Directory Domain Service, that are onboarded to Azure Active - Directory Connect Health. - - :param service_name: The name of the service. - :type service_name: str - :param filter: The server property filter to apply. - :type filter: 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 AddsServiceMember - :rtype: - ~azure.mgmt.adhybridhealthservice.models.AddsServiceMemberPaged[~azure.mgmt.adhybridhealthservice.models.AddsServiceMember] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.AddsServiceMemberPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.AddsServiceMemberPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/addsservicemembers'} - - def get( - self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): - """Gets the details of a server, for a given Active Directory Domain - Controller service, that are onboarded to Azure Active Directory - Connect Health Service. - - :param service_name: The name of the service. - :type service_name: str - :param service_member_id: The server Id. - :type service_member_id: 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: ServiceMember or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceMember or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_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') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceMember', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}'} - - def delete( - self, service_name, service_member_id, confirm=None, custom_headers=None, raw=False, **operation_config): - """Deletes a Active Directory Domain Controller server that has been - onboarded to Azure Active Directory Connect Health Service. - - :param service_name: The name of the service. - :type service_name: str - :param service_member_id: The server Id. - :type service_member_id: str - :param confirm: Indicates if the server will be permanently deleted or - disabled. True indicates that the server will be permanently deleted - and False indicates that the server will be marked disabled and then - deleted after 30 days, if it is not re-registered. - :type confirm: bool - :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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if confirm is not None: - query_parameters['confirm'] = self._serialize.query("confirm", confirm, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - 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.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}'} - - def list_credentials( - self, service_name, service_member_id, filter=None, custom_headers=None, raw=False, **operation_config): - """Gets the credentials of the server which is needed by the agent to - connect to Azure Active Directory Connect Health Service. - - :param service_name: The name of the service. - :type service_name: str - :param service_member_id: The server Id. - :type service_member_id: str - :param filter: The property filter to apply. - :type filter: 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 Credential - :rtype: - ~azure.mgmt.adhybridhealthservice.models.CredentialPaged[~azure.mgmt.adhybridhealthservice.models.Credential] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_credentials.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.CredentialPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.CredentialPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_credentials.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}/credentials'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_operations.py deleted file mode 100644 index d02b84357dc5..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_operations.py +++ /dev/null @@ -1,115 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class AddsServiceOperations(object): - """AddsServiceOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def get_metrics( - self, service_name, metric_name, group_name, group_key=None, from_date=None, to_date=None, custom_headers=None, raw=False, **operation_config): - """Gets the server related metrics for a given metric and group - combination. - - :param service_name: The name of the service. - :type service_name: str - :param metric_name: The metric name - :type metric_name: str - :param group_name: The group name - :type group_name: str - :param group_key: The group key - :type group_key: str - :param from_date: The start date. - :type from_date: datetime - :param to_date: The end date. - :type to_date: datetime - :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: MetricSets or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricSets or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_metrics.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'metricName': self._serialize.url("metric_name", metric_name, 'str'), - 'groupName': self._serialize.url("group_name", group_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if group_key is not None: - query_parameters['groupKey'] = self._serialize.query("group_key", group_key, 'str') - if from_date is not None: - query_parameters['fromDate'] = self._serialize.query("from_date", from_date, 'iso-8601') - if to_date is not None: - query_parameters['toDate'] = self._serialize.query("to_date", to_date, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('MetricSets', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_metrics.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py deleted file mode 100644 index 9a75595fbaf1..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py +++ /dev/null @@ -1,1122 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class AddsServicesOperations(object): - """AddsServicesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - :ivar next_partition_key: The next partition key to query for. Constant value: "". - :ivar next_row_key: The next row key to query for. Constant value: "". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - self.next_partition_key = "" - self.next_row_key = "" - - self.config = config - - def list( - self, filter=None, service_type=None, skip_count=None, take_count=None, custom_headers=None, raw=False, **operation_config): - """Gets the details of Active Directory Domain Service, for a tenant, that - are onboarded to Azure Active Directory Connect Health. - - :param filter: The service property filter to apply. - :type filter: str - :param service_type: The service type for the services onboarded to - Azure Active Directory Connect Health. Depending on whether the - service is monitoring, ADFS, Sync or ADDS roles, the service type can - either be AdFederationService or AadSyncService or AdDomainService. - :type service_type: str - :param skip_count: The skip count, which specifies the number of - elements that can be bypassed from a sequence and then return the - remaining elements. - :type skip_count: int - :param take_count: The take count , which specifies the number of - elements that can be returned from a sequence. - :type take_count: int - :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 ServiceProperties - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ServicePropertiesPaged[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if service_type is not None: - query_parameters['serviceType'] = self._serialize.query("service_type", service_type, 'str') - if skip_count is not None: - query_parameters['skipCount'] = self._serialize.query("skip_count", skip_count, 'int') - if take_count is not None: - query_parameters['takeCount'] = self._serialize.query("take_count", take_count, 'int') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices'} - - def add( - self, service, custom_headers=None, raw=False, **operation_config): - """Onboards a service for a given tenant in Azure Active Directory Connect - Health. - - :param service: The service object. - :type service: - ~azure.mgmt.adhybridhealthservice.models.ServiceProperties - :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: ServiceProperties or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.add.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(service, 'ServiceProperties') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceProperties', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices'} - - def get( - self, service_name, custom_headers=None, raw=False, **operation_config): - """Gets the details of an Active Directory Domain Service for a tenant - having Azure AD Premium license and is onboarded to Azure Active - Directory Connect Health. - - :param service_name: The name of the service. - :type service_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: ServiceProperties or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceProperties', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} - - def delete( - self, service_name, confirm=None, custom_headers=None, raw=False, **operation_config): - """Deletes an Active Directory Domain Service which is onboarded to Azure - Active Directory Connect Health. - - :param service_name: The name of the service which needs to be - deleted. - :type service_name: str - :param confirm: Indicates if the service will be permanently deleted - or disabled. True indicates that the service will be permanently - deleted and False indicates that the service will be marked disabled - and then deleted after 30 days, if it is not re-registered. - :type confirm: bool - :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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if confirm is not None: - query_parameters['confirm'] = self._serialize.query("confirm", confirm, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - 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.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} - - def update( - self, service_name, service, custom_headers=None, raw=False, **operation_config): - """Updates an Active Directory Domain Service properties of an onboarded - service. - - :param service_name: The name of the service which needs to be - deleted. - :type service_name: str - :param service: The service object. - :type service: - ~azure.mgmt.adhybridhealthservice.models.ServiceProperties - :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: ServiceProperties or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.update.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(service, 'ServiceProperties') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceProperties', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} - - def get_forest_summary( - self, service_name, custom_headers=None, raw=False, **operation_config): - """Gets the forest summary for a given Active Directory Domain Service, - that is onboarded to Azure Active Directory Connect Health. - - :param service_name: The name of the service. - :type service_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: ForestSummary or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ForestSummary or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_forest_summary.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ForestSummary', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_forest_summary.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/forestsummary'} - - def list_metrics_average( - self, service_name, metric_name, group_name, custom_headers=None, raw=False, **operation_config): - """Gets the average of the metric values for a given metric and group - combination. - - :param service_name: The name of the service. - :type service_name: str - :param metric_name: The metric name - :type metric_name: str - :param group_name: The group name - :type group_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 Item - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_metrics_average.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'metricName': self._serialize.url("metric_name", metric_name, 'str'), - 'groupName': self._serialize.url("group_name", group_name, '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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_metrics_average.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}/average'} - - def list_metrics_sum( - self, service_name, metric_name, group_name, custom_headers=None, raw=False, **operation_config): - """Gets the sum of the metric values for a given metric and group - combination. - - :param service_name: The name of the service. - :type service_name: str - :param metric_name: The metric name - :type metric_name: str - :param group_name: The group name - :type group_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 Item - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_metrics_sum.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'metricName': self._serialize.url("metric_name", metric_name, 'str'), - 'groupName': self._serialize.url("group_name", group_name, '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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_metrics_sum.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}/sum'} - - def list_metric_metadata( - self, service_name, filter=None, perf_counter=None, custom_headers=None, raw=False, **operation_config): - """Gets the service related metrics information. - - :param service_name: The name of the service. - :type service_name: str - :param filter: The metric metadata property filter to apply. - :type filter: str - :param perf_counter: Indicates if only performance counter metrics are - requested. - :type perf_counter: bool - :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 MetricMetadata - :rtype: - ~azure.mgmt.adhybridhealthservice.models.MetricMetadataPaged[~azure.mgmt.adhybridhealthservice.models.MetricMetadata] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_metric_metadata.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if perf_counter is not None: - query_parameters['perfCounter'] = self._serialize.query("perf_counter", perf_counter, 'bool') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.MetricMetadataPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.MetricMetadataPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata'} - - def get_metric_metadata( - self, service_name, metric_name, custom_headers=None, raw=False, **operation_config): - """Gets the service related metric information. - - :param service_name: The name of the service. - :type service_name: str - :param metric_name: The metric name - :type metric_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: MetricMetadata or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricMetadata or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_metric_metadata.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'metricName': self._serialize.url("metric_name", metric_name, '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') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('MetricMetadata', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}'} - - def get_metric_metadata_for_group( - self, service_name, metric_name, group_name, group_key=None, from_date=None, to_date=None, custom_headers=None, raw=False, **operation_config): - """Gets the service related metrics for a given metric and group - combination. - - :param service_name: The name of the service. - :type service_name: str - :param metric_name: The metric name - :type metric_name: str - :param group_name: The group name - :type group_name: str - :param group_key: The group key - :type group_key: str - :param from_date: The start date. - :type from_date: datetime - :param to_date: The end date. - :type to_date: datetime - :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: MetricSets or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricSets or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_metric_metadata_for_group.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'metricName': self._serialize.url("metric_name", metric_name, 'str'), - 'groupName': self._serialize.url("group_name", group_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if group_key is not None: - query_parameters['groupKey'] = self._serialize.query("group_key", group_key, 'str') - if from_date is not None: - query_parameters['fromDate'] = self._serialize.query("from_date", from_date, 'iso-8601') - if to_date is not None: - query_parameters['toDate'] = self._serialize.query("to_date", to_date, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('MetricSets', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_metric_metadata_for_group.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} - - def list_replication_details( - self, service_name, filter=None, with_details=None, custom_headers=None, raw=False, **operation_config): - """Gets complete domain controller list along with replication details for - a given Active Directory Domain Service, that is onboarded to Azure - Active Directory Connect Health. - - :param service_name: The name of the service. - :type service_name: str - :param filter: The server property filter to apply. - :type filter: str - :param with_details: Indicates if InboundReplicationNeighbor details - are required or not. - :type with_details: bool - :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 ReplicationSummary - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ReplicationSummaryPaged[~azure.mgmt.adhybridhealthservice.models.ReplicationSummary] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_replication_details.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if with_details is not None: - query_parameters['withDetails'] = self._serialize.query("with_details", with_details, 'bool') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ReplicationSummaryPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ReplicationSummaryPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_replication_details.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationdetails'} - - def list_replication_summary( - self, service_name, is_groupby_site, query, filter=None, take_count=None, custom_headers=None, raw=False, **operation_config): - """Gets complete domain controller list along with replication details for - a given Active Directory Domain Service, that is onboarded to Azure - Active Directory Connect Health. - - :param service_name: The name of the service. - :type service_name: str - :param is_groupby_site: Indicates if the result should be grouped by - site or not. - :type is_groupby_site: bool - :param query: The custom query. - :type query: str - :param filter: The server property filter to apply. - :type filter: str - :param take_count: The take count , which specifies the number of - elements that can be returned from a sequence. - :type take_count: int - :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 ReplicationSummary - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ReplicationSummaryPaged[~azure.mgmt.adhybridhealthservice.models.ReplicationSummary] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_replication_summary.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - query_parameters['isGroupbySite'] = self._serialize.query("is_groupby_site", is_groupby_site, 'bool') - query_parameters['query'] = self._serialize.query("query", query, 'str') - query_parameters['nextPartitionKey'] = self._serialize.query("self.next_partition_key", self.next_partition_key, 'str') - query_parameters['nextRowKey'] = self._serialize.query("self.next_row_key", self.next_row_key, 'str') - if take_count is not None: - query_parameters['takeCount'] = self._serialize.query("take_count", take_count, 'int') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ReplicationSummaryPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ReplicationSummaryPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_replication_summary.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationsummary'} - - def list_server_alerts( - self, service_member_id, service_name, filter=None, state=None, from_parameter=None, to=None, custom_headers=None, raw=False, **operation_config): - """Gets the details of an alert for a given Active Directory Domain - Controller service and server combination. - - :param service_member_id: The server Id for which the alert details - needs to be queried. - :type service_member_id: str - :param service_name: The name of the service. - :type service_name: str - :param filter: The alert property filter to apply. - :type filter: str - :param state: The alert state to query for. - :type state: str - :param from_parameter: The start date to query for. - :type from_parameter: datetime - :param to: The end date till when to query for. - :type to: datetime - :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 Alert - :rtype: - ~azure.mgmt.adhybridhealthservice.models.AlertPaged[~azure.mgmt.adhybridhealthservice.models.Alert] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_server_alerts.metadata['url'] - path_format_arguments = { - 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str'), - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if state is not None: - query_parameters['state'] = self._serialize.query("state", state, 'str') - if from_parameter is not None: - query_parameters['from'] = self._serialize.query("from_parameter", from_parameter, 'iso-8601') - if to is not None: - query_parameters['to'] = self._serialize.query("to", to, 'iso-8601') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.AlertPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.AlertPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_server_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}/alerts'} - - def list_premium_services( - self, filter=None, service_type=None, skip_count=None, take_count=None, custom_headers=None, raw=False, **operation_config): - """Gets the details of Active Directory Domain Services for a tenant - having Azure AD Premium license and is onboarded to Azure Active - Directory Connect Health. - - :param filter: The service property filter to apply. - :type filter: str - :param service_type: The service type for the services onboarded to - Azure Active Directory Connect Health. Depending on whether the - service is monitoring, ADFS, Sync or ADDS roles, the service type can - either be AdFederationService or AadSyncService or AdDomainService. - :type service_type: str - :param skip_count: The skip count, which specifies the number of - elements that can be bypassed from a sequence and then return the - remaining elements. - :type skip_count: int - :param take_count: The take count , which specifies the number of - elements that can be returned from a sequence. - :type take_count: int - :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 ServiceProperties - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ServicePropertiesPaged[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_premium_services.metadata['url'] - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if service_type is not None: - query_parameters['serviceType'] = self._serialize.query("service_type", service_type, 'str') - if skip_count is not None: - query_parameters['skipCount'] = self._serialize.query("skip_count", skip_count, 'int') - if take_count is not None: - query_parameters['takeCount'] = self._serialize.query("take_count", take_count, 'int') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_premium_services.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/premiumCheck'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_replication_status_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_replication_status_operations.py deleted file mode 100644 index e802458db673..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_replication_status_operations.py +++ /dev/null @@ -1,97 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class AddsServicesReplicationStatusOperations(object): - """AddsServicesReplicationStatusOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def get( - self, service_name, custom_headers=None, raw=False, **operation_config): - """Gets Replication status for a given Active Directory Domain Service, - that is onboarded to Azure Active Directory Connect Health. - - :param service_name: The name of the service. - :type service_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: ReplicationStatus or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ReplicationStatus or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ReplicationStatus', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationstatus'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_service_members_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_service_members_operations.py deleted file mode 100644 index ed072c481d5c..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_service_members_operations.py +++ /dev/null @@ -1,185 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class AddsServicesServiceMembersOperations(object): - """AddsServicesServiceMembersOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def list( - self, service_name, filter=None, dimension_type=None, dimension_signature=None, custom_headers=None, raw=False, **operation_config): - """Gets the details of the servers, for a given Active Directory Domain - Controller service, that are onboarded to Azure Active Directory - Connect Health Service. - - :param service_name: The name of the service. - :type service_name: str - :param filter: The server property filter to apply. - :type filter: str - :param dimension_type: The server specific dimension. - :type dimension_type: str - :param dimension_signature: The value of the dimension. - :type dimension_signature: 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 ServiceMember - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ServiceMemberPaged[~azure.mgmt.adhybridhealthservice.models.ServiceMember] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if dimension_type is not None: - query_parameters['dimensionType'] = self._serialize.query("dimension_type", dimension_type, 'str') - if dimension_signature is not None: - query_parameters['dimensionSignature'] = self._serialize.query("dimension_signature", dimension_signature, 'str') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ServiceMemberPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ServiceMemberPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers'} - - def add( - self, service_name, service_member, custom_headers=None, raw=False, **operation_config): - """Onboards a server, for a given Active Directory Domain Controller - service, to Azure Active Directory Connect Health Service. - - :param service_name: The name of the service under which the server is - to be onboarded. - :type service_name: str - :param service_member: The server object. - :type service_member: - ~azure.mgmt.adhybridhealthservice.models.ServiceMember - :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: ServiceMember or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceMember or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.add.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(service_member, 'ServiceMember') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceMember', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_user_preference_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_user_preference_operations.py deleted file mode 100644 index c04b247bb5ce..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_user_preference_operations.py +++ /dev/null @@ -1,211 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class AddsServicesUserPreferenceOperations(object): - """AddsServicesUserPreferenceOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def get( - self, service_name, feature_name, custom_headers=None, raw=False, **operation_config): - """Gets the user preferences for a given feature. - - :param service_name: The name of the service. - :type service_name: str - :param feature_name: The name of the feature. - :type feature_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: UserPreference or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.UserPreference or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'featureName': self._serialize.url("feature_name", feature_name, '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') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('UserPreference', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference'} - - def delete( - self, service_name, feature_name, custom_headers=None, raw=False, **operation_config): - """Deletes the user preferences for a given feature. - - :param service_name: The name of the service. - :type service_name: str - :param feature_name: The name of the feature. - :type feature_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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'featureName': self._serialize.url("feature_name", feature_name, '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') - - # Construct headers - header_parameters = {} - 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.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference'} - - def add( - self, service_name, feature_name, metric_names=None, custom_headers=None, raw=False, **operation_config): - """Adds the user preferences for a given feature. - - :param service_name: The name of the service. - :type service_name: str - :param feature_name: The name of the feature. - :type feature_name: str - :param metric_names: The name of the metric. - :type metric_names: list[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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - setting = models.UserPreference(metric_names=metric_names) - - # Construct URL - url = self.add.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'featureName': self._serialize.url("feature_name", feature_name, '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') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(setting, 'UserPreference') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/alerts_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/alerts_operations.py deleted file mode 100644 index 05b5bf8d280e..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/alerts_operations.py +++ /dev/null @@ -1,120 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class AlertsOperations(object): - """AlertsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def list_adds_alerts( - self, service_name, filter=None, state=None, from_parameter=None, to=None, custom_headers=None, raw=False, **operation_config): - """Gets the alerts for a given Active Directory Domain Service. - - :param service_name: The name of the service. - :type service_name: str - :param filter: The alert property filter to apply. - :type filter: str - :param state: The alert state to query for. - :type state: str - :param from_parameter: The start date to query for. - :type from_parameter: datetime - :param to: The end date till when to query for. - :type to: datetime - :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 Alert - :rtype: - ~azure.mgmt.adhybridhealthservice.models.AlertPaged[~azure.mgmt.adhybridhealthservice.models.Alert] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_adds_alerts.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if state is not None: - query_parameters['state'] = self._serialize.query("state", state, 'str') - if from_parameter is not None: - query_parameters['from'] = self._serialize.query("from_parameter", from_parameter, 'iso-8601') - if to is not None: - query_parameters['to'] = self._serialize.query("to", to, 'iso-8601') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.AlertPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.AlertPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_adds_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/alerts'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py deleted file mode 100644 index 5d9a53fb6376..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py +++ /dev/null @@ -1,272 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ConfigurationOperations(object): - """ConfigurationOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def list_adds_configurations( - self, service_name, grouping=None, custom_headers=None, raw=False, **operation_config): - """Gets the service configurations. - - :param service_name: The name of the service. - :type service_name: str - :param grouping: The grouping for configurations. - :type grouping: 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 Item - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_adds_configurations.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if grouping is not None: - query_parameters['grouping'] = self._serialize.query("grouping", grouping, '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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_adds_configurations.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/configuration'} - - def add( - self, custom_headers=None, raw=False, **operation_config): - """Onboards a tenant in Azure Active Directory Connect Health. - - :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: Tenant or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Tenant or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.add.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # 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.post(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Tenant', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} - - def get( - self, custom_headers=None, raw=False, **operation_config): - """Gets the details of a tenant onboarded to Azure Active Directory - Connect Health. - - :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: Tenant or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Tenant or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Tenant', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} - - def update( - self, tenant, custom_headers=None, raw=False, **operation_config): - """Updates tenant properties for tenants onboarded to Azure Active - Directory Connect Health. - - :param tenant: The tenant object with the properties set to the - updated value. - :type tenant: ~azure.mgmt.adhybridhealthservice.models.Tenant - :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: Tenant or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Tenant or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.update.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(tenant, 'Tenant') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Tenant', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/dimensions_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/dimensions_operations.py deleted file mode 100644 index 84e6ccda02ad..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/dimensions_operations.py +++ /dev/null @@ -1,107 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class DimensionsOperations(object): - """DimensionsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def list_adds_dimensions( - self, service_name, dimension, custom_headers=None, raw=False, **operation_config): - """Gets the dimensions for a given dimension type in a server. - - :param service_name: The name of the service. - :type service_name: str - :param dimension: The dimension type. - :type dimension: 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 Dimension - :rtype: - ~azure.mgmt.adhybridhealthservice.models.DimensionPaged[~azure.mgmt.adhybridhealthservice.models.Dimension] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_adds_dimensions.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'dimension': self._serialize.url("dimension", dimension, '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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.DimensionPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.DimensionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_adds_dimensions.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/dimensions/{dimension}'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py deleted file mode 100644 index 95d2f314289c..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py +++ /dev/null @@ -1,98 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class Operations(object): - """Operations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Lists the available Azure Data Factory API operations. - - :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 Operation - :rtype: - ~azure.mgmt.adhybridhealthservice.models.OperationPaged[~azure.mgmt.adhybridhealthservice.models.Operation] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/operations'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/reports_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/reports_operations.py deleted file mode 100644 index d4f8af6e9411..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/reports_operations.py +++ /dev/null @@ -1,90 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ReportsOperations(object): - """ReportsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def get_dev_ops( - self, custom_headers=None, raw=False, **operation_config): - """Checks if the user is enabled for Dev Ops access. - - :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: Result or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Result or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_dev_ops.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Result', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_dev_ops.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/reports/DevOps/IsDevOps'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py deleted file mode 100644 index 48892cf0c5d5..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py +++ /dev/null @@ -1,938 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ServiceMembersOperations(object): - """ServiceMembersOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def list( - self, service_name, filter=None, dimension_type=None, dimension_signature=None, custom_headers=None, raw=False, **operation_config): - """Gets the details of the servers, for a given service, that are - onboarded to Azure Active Directory Connect Health Service. - - :param service_name: The name of the service. - :type service_name: str - :param filter: The server property filter to apply. - :type filter: str - :param dimension_type: The server specific dimension. - :type dimension_type: str - :param dimension_signature: The value of the dimension. - :type dimension_signature: 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 ServiceMember - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ServiceMemberPaged[~azure.mgmt.adhybridhealthservice.models.ServiceMember] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if dimension_type is not None: - query_parameters['dimensionType'] = self._serialize.query("dimension_type", dimension_type, 'str') - if dimension_signature is not None: - query_parameters['dimensionSignature'] = self._serialize.query("dimension_signature", dimension_signature, 'str') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ServiceMemberPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ServiceMemberPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers'} - - def add( - self, service_name, service_member, custom_headers=None, raw=False, **operation_config): - """Onboards a server, for a given service, to Azure Active Directory - Connect Health Service. - - :param service_name: The name of the service under which the server is - to be onboarded. - :type service_name: str - :param service_member: The server object. - :type service_member: - ~azure.mgmt.adhybridhealthservice.models.ServiceMember - :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: ServiceMember or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceMember or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.add.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(service_member, 'ServiceMember') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceMember', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers'} - - def get( - self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): - """Gets the details of a server, for a given service, that are onboarded - to Azure Active Directory Connect Health Service. - - :param service_name: The name of the service. - :type service_name: str - :param service_member_id: The server Id. - :type service_member_id: 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: ServiceMember or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceMember or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_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') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceMember', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}'} - - def delete( - self, service_name, service_member_id, confirm=None, custom_headers=None, raw=False, **operation_config): - """Deletes a server that has been onboarded to Azure Active Directory - Connect Health Service. - - :param service_name: The name of the service. - :type service_name: str - :param service_member_id: The server Id. - :type service_member_id: str - :param confirm: Indicates if the server will be permanently deleted or - disabled. True indicates that the server will be permanently deleted - and False indicates that the server will be marked disabled and then - deleted after 30 days, if it is not re-registered. - :type confirm: bool - :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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if confirm is not None: - query_parameters['confirm'] = self._serialize.query("confirm", confirm, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - 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.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}'} - - def list_alerts( - self, service_member_id, service_name, filter=None, state=None, from_parameter=None, to=None, custom_headers=None, raw=False, **operation_config): - """Gets the details of an alert for a given service and server - combination. - - :param service_member_id: The server Id for which the laert details - needs to be queried. - :type service_member_id: str - :param service_name: The name of the service. - :type service_name: str - :param filter: The alert property filter to apply. - :type filter: str - :param state: The alert state to query for. - :type state: str - :param from_parameter: The start date to query for. - :type from_parameter: datetime - :param to: The end date till when to query for. - :type to: datetime - :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 Alert - :rtype: - ~azure.mgmt.adhybridhealthservice.models.AlertPaged[~azure.mgmt.adhybridhealthservice.models.Alert] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_alerts.metadata['url'] - path_format_arguments = { - 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str'), - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if state is not None: - query_parameters['state'] = self._serialize.query("state", state, 'str') - if from_parameter is not None: - query_parameters['from'] = self._serialize.query("from_parameter", from_parameter, 'iso-8601') - if to is not None: - query_parameters['to'] = self._serialize.query("to", to, 'iso-8601') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.AlertPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.AlertPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/alerts'} - - def list_connectors( - self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): - """Gets the connector details for a service. - - :param service_name: The name of the service. - :type service_name: str - :param service_member_id: The server Id. - :type service_member_id: 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 Connector - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ConnectorPaged[~azure.mgmt.adhybridhealthservice.models.Connector] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_connectors.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ConnectorPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ConnectorPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_connectors.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/service/{serviceName}/servicemembers/{serviceMemberId}/connectors'} - - def list_credentials( - self, service_name, service_member_id, filter=None, custom_headers=None, raw=False, **operation_config): - """Gets the credentials of the server which is needed by the agent to - connect to Azure Active Directory Connect Health Service. - - :param service_name: The name of the service. - :type service_name: str - :param service_member_id: The server Id. - :type service_member_id: str - :param filter: The property filter to apply. - :type filter: 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 Credential - :rtype: - ~azure.mgmt.adhybridhealthservice.models.CredentialPaged[~azure.mgmt.adhybridhealthservice.models.Credential] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_credentials.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.CredentialPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.CredentialPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_credentials.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/credentials'} - - def delete_data( - self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): - """Deletes the data uploaded by the server to Azure Active Directory - Connect Health Service. - - :param service_name: The name of the service. - :type service_name: str - :param service_member_id: The server Id. - :type service_member_id: 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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.delete_data.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_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') - - # Construct headers - header_parameters = {} - 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.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete_data.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/data'} - - def list_data_freshness( - self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): - """Gets the last time when the server uploaded data to Azure Active - Directory Connect Health Service. - - :param service_name: The name of the service. - :type service_name: str - :param service_member_id: The server Id. - :type service_member_id: 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 Item - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_data_freshness.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_data_freshness.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/datafreshness'} - - def list_export_status( - self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): - """Gets the export status. - - :param service_name: The name of the service. - :type service_name: str - :param service_member_id: The server Id. - :type service_member_id: 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 ExportStatus - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ExportStatusPaged[~azure.mgmt.adhybridhealthservice.models.ExportStatus] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_export_status.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ExportStatusPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ExportStatusPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_export_status.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/exportstatus'} - - def list_global_configuration( - self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): - """Gets the global configuration. - - :param service_name: The name of the service. - :type service_name: str - :param service_member_id: The server id. - :type service_member_id: 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 GlobalConfiguration - :rtype: - ~azure.mgmt.adhybridhealthservice.models.GlobalConfigurationPaged[~azure.mgmt.adhybridhealthservice.models.GlobalConfiguration] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_global_configuration.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.GlobalConfigurationPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.GlobalConfigurationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_global_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/globalconfiguration'} - - def get_metrics( - self, service_name, metric_name, group_name, service_member_id, group_key=None, from_date=None, to_date=None, custom_headers=None, raw=False, **operation_config): - """Gets the server related metrics for a given metric and group - combination. - - :param service_name: The name of the service. - :type service_name: str - :param metric_name: The metric name - :type metric_name: str - :param group_name: The group name - :type group_name: str - :param service_member_id: The server id. - :type service_member_id: str - :param group_key: The group key - :type group_key: str - :param from_date: The start date. - :type from_date: datetime - :param to_date: The end date. - :type to_date: datetime - :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: MetricSets or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricSets or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_metrics.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'metricName': self._serialize.url("metric_name", metric_name, 'str'), - 'groupName': self._serialize.url("group_name", group_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if group_key is not None: - query_parameters['groupKey'] = self._serialize.query("group_key", group_key, 'str') - if from_date is not None: - query_parameters['fromDate'] = self._serialize.query("from_date", from_date, 'iso-8601') - if to_date is not None: - query_parameters['toDate'] = self._serialize.query("to_date", to_date, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('MetricSets', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_metrics.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/metrics/{metricName}/groups/{groupName}'} - - def get_service_configuration( - self, service_name, service_member_id, custom_headers=None, raw=False, **operation_config): - """Gets the service configuration. - - :param service_name: The name of the service. - :type service_name: str - :param service_member_id: The server Id. - :type service_member_id: 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: ServiceConfiguration or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceConfiguration - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_service_configuration.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'serviceMemberId': self._serialize.url("service_member_id", service_member_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') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceConfiguration', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_service_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/serviceconfiguration'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_operations.py deleted file mode 100644 index d89bdf1f1bf6..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_operations.py +++ /dev/null @@ -1,115 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ServiceOperations(object): - """ServiceOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def get_metrics( - self, service_name, metric_name, group_name, group_key=None, from_date=None, to_date=None, custom_headers=None, raw=False, **operation_config): - """Gets the server related metrics for a given metric and group - combination. - - :param service_name: The name of the service. - :type service_name: str - :param metric_name: The metric name - :type metric_name: str - :param group_name: The group name - :type group_name: str - :param group_key: The group key - :type group_key: str - :param from_date: The start date. - :type from_date: datetime - :param to_date: The end date. - :type to_date: datetime - :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: MetricSets or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricSets or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_metrics.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'metricName': self._serialize.url("metric_name", metric_name, 'str'), - 'groupName': self._serialize.url("group_name", group_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if group_key is not None: - query_parameters['groupKey'] = self._serialize.query("group_key", group_key, 'str') - if from_date is not None: - query_parameters['fromDate'] = self._serialize.query("from_date", from_date, 'iso-8601') - if to_date is not None: - query_parameters['toDate'] = self._serialize.query("to_date", to_date, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('MetricSets', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_metrics.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py deleted file mode 100644 index d1afdea4f643..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py +++ /dev/null @@ -1,1542 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ServicesOperations(object): - """ServicesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API to be used with the client request. Constant value: "2014-01-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2014-01-01" - - self.config = config - - def list( - self, filter=None, service_type=None, skip_count=None, take_count=None, custom_headers=None, raw=False, **operation_config): - """Gets the details of services, for a tenant, that are onboarded to Azure - Active Directory Connect Health. - - :param filter: The service property filter to apply. - :type filter: str - :param service_type: The service type for the services onboarded to - Azure Active Directory Connect Health. Depending on whether the - service is monitoring, ADFS, Sync or ADDS roles, the service type can - either be AdFederationService or AadSyncService or AdDomainService. - :type service_type: str - :param skip_count: The skip count, which specifies the number of - elements that can be bypassed from a sequence and then return the - remaining elements. - :type skip_count: int - :param take_count: The take count , which specifies the number of - elements that can be returned from a sequence. - :type take_count: int - :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 ServiceProperties - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ServicePropertiesPaged[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if service_type is not None: - query_parameters['serviceType'] = self._serialize.query("service_type", service_type, 'str') - if skip_count is not None: - query_parameters['skipCount'] = self._serialize.query("skip_count", skip_count, 'int') - if take_count is not None: - query_parameters['takeCount'] = self._serialize.query("take_count", take_count, 'int') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services'} - - def add( - self, service, custom_headers=None, raw=False, **operation_config): - """Onboards a service for a given tenant in Azure Active Directory Connect - Health. - - :param service: The service object. - :type service: - ~azure.mgmt.adhybridhealthservice.models.ServiceProperties - :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: ServiceProperties or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.add.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(service, 'ServiceProperties') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceProperties', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services'} - - def list_premium( - self, filter=None, service_type=None, skip_count=None, take_count=None, custom_headers=None, raw=False, **operation_config): - """Gets the details of services for a tenant having Azure AD Premium - license and is onboarded to Azure Active Directory Connect Health. - - :param filter: The service property filter to apply. - :type filter: str - :param service_type: The service type for the services onboarded to - Azure Active Directory Connect Health. Depending on whether the - service is monitoring, ADFS, Sync or ADDS roles, the service type can - either be AdFederationService or AadSyncService or AdDomainService. - :type service_type: str - :param skip_count: The skip count, which specifies the number of - elements that can be bypassed from a sequence and then return the - remaining elements. - :type skip_count: int - :param take_count: The take count , which specifies the number of - elements that can be returned from a sequence. - :type take_count: int - :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 ServiceProperties - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ServicePropertiesPaged[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_premium.metadata['url'] - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if service_type is not None: - query_parameters['serviceType'] = self._serialize.query("service_type", service_type, 'str') - if skip_count is not None: - query_parameters['skipCount'] = self._serialize.query("skip_count", skip_count, 'int') - if take_count is not None: - query_parameters['takeCount'] = self._serialize.query("take_count", take_count, 'int') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_premium.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/premiumCheck'} - - def get( - self, service_name, custom_headers=None, raw=False, **operation_config): - """Gets the details of a service for a tenant having Azure AD Premium - license and is onboarded to Azure Active Directory Connect Health. - - :param service_name: The name of the service. - :type service_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: ServiceProperties or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceProperties', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} - - def delete( - self, service_name, confirm=None, custom_headers=None, raw=False, **operation_config): - """Deletes a service which is onboarded to Azure Active Directory Connect - Health. - - :param service_name: The name of the service which needs to be - deleted. - :type service_name: str - :param confirm: Indicates if the service will be permanently deleted - or disabled. True indicates that the service will be permanently - deleted and False indicates that the service will be marked disabled - and then deleted after 30 days, if it is not re-registered. - :type confirm: bool - :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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if confirm is not None: - query_parameters['confirm'] = self._serialize.query("confirm", confirm, 'bool') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - 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.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} - - def update( - self, service_name, service, custom_headers=None, raw=False, **operation_config): - """Updates the service properties of an onboarded service. - - :param service_name: The name of the service which needs to be - deleted. - :type service_name: str - :param service: The service object. - :type service: - ~azure.mgmt.adhybridhealthservice.models.ServiceProperties - :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: ServiceProperties or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.update.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(service, 'ServiceProperties') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceProperties', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} - - def list_alerts( - self, service_name, filter=None, state=None, from_parameter=None, to=None, custom_headers=None, raw=False, **operation_config): - """Gets the alerts for a given service. - - :param service_name: The name of the service. - :type service_name: str - :param filter: The alert property filter to apply. - :type filter: str - :param state: The alert state to query for. - :type state: str - :param from_parameter: The start date to query for. - :type from_parameter: datetime - :param to: The end date till when to query for. - :type to: datetime - :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 Alert - :rtype: - ~azure.mgmt.adhybridhealthservice.models.AlertPaged[~azure.mgmt.adhybridhealthservice.models.Alert] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_alerts.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if state is not None: - query_parameters['state'] = self._serialize.query("state", state, 'str') - if from_parameter is not None: - query_parameters['from'] = self._serialize.query("from_parameter", from_parameter, 'iso-8601') - if to is not None: - query_parameters['to'] = self._serialize.query("to", to, 'iso-8601') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.AlertPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.AlertPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/alerts'} - - def get_feature_availibility( - self, service_name, feature_name, custom_headers=None, raw=False, **operation_config): - """Checks if the service has all the pre-requisites met to use a feature. - - :param service_name: The name of the service. - :type service_name: str - :param feature_name: The name of the feature. - :type feature_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: Result or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Result or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_feature_availibility.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'featureName': self._serialize.url("feature_name", feature_name, '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') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Result', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_feature_availibility.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/checkServiceFeatureAvailibility/{featureName}'} - - def list_export_errors( - self, service_name, custom_headers=None, raw=False, **operation_config): - """Gets the count of latest AAD export errors. - - :param service_name: The name of the service. - :type service_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 ErrorCount - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ErrorCountPaged[~azure.mgmt.adhybridhealthservice.models.ErrorCount] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_export_errors.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ErrorCountPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ErrorCountPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_export_errors.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exporterrors/counts'} - - def list_export_errors_v2( - self, service_name, error_bucket, custom_headers=None, raw=False, **operation_config): - """Gets the categorized export errors. - - :param service_name: The name of the service. - :type service_name: str - :param error_bucket: The error category to query for. - :type error_bucket: 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 MergedExportError - :rtype: - ~azure.mgmt.adhybridhealthservice.models.MergedExportErrorPaged[~azure.mgmt.adhybridhealthservice.models.MergedExportError] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_export_errors_v2.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['errorBucket'] = self._serialize.query("error_bucket", error_bucket, 'str') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.MergedExportErrorPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.MergedExportErrorPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_export_errors_v2.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exporterrors/listV2'} - - def list_export_status( - self, service_name, custom_headers=None, raw=False, **operation_config): - """Gets the export status. - - :param service_name: The name of the service. - :type service_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 ExportStatus - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ExportStatusPaged[~azure.mgmt.adhybridhealthservice.models.ExportStatus] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_export_status.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ExportStatusPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ExportStatusPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_export_status.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exportstatus'} - - def add_alert_feedback( - self, service_name, alert_feedback, custom_headers=None, raw=False, **operation_config): - """Adds an alert feedback submitted by customer. - - :param service_name: The name of the service. - :type service_name: str - :param alert_feedback: The alert feedback. - :type alert_feedback: - ~azure.mgmt.adhybridhealthservice.models.AlertFeedback - :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: AlertFeedback or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.AlertFeedback or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.add_alert_feedback.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(alert_feedback, 'AlertFeedback') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('AlertFeedback', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - add_alert_feedback.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/feedbacktype/alerts/feedback'} - - def list_alert_feedback( - self, service_name, short_name, custom_headers=None, raw=False, **operation_config): - """Gets a list of all alert feedback for a given tenant and alert type. - - :param service_name: The name of the service. - :type service_name: str - :param short_name: The name of the alert. - :type short_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 AlertFeedback - :rtype: - ~azure.mgmt.adhybridhealthservice.models.AlertFeedbackPaged[~azure.mgmt.adhybridhealthservice.models.AlertFeedback] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_alert_feedback.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'shortName': self._serialize.url("short_name", short_name, '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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.AlertFeedbackPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.AlertFeedbackPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_alert_feedback.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/feedbacktype/alerts/{shortName}/alertfeedback'} - - def list_metrics_average( - self, service_name, metric_name, group_name, custom_headers=None, raw=False, **operation_config): - """Gets the average of the metric values for a given metric and group - combination. - - :param service_name: The name of the service. - :type service_name: str - :param metric_name: The metric name - :type metric_name: str - :param group_name: The group name - :type group_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 Item - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_metrics_average.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'metricName': self._serialize.url("metric_name", metric_name, 'str'), - 'groupName': self._serialize.url("group_name", group_name, '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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_metrics_average.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}/average'} - - def list_metrics_sum( - self, service_name, metric_name, group_name, custom_headers=None, raw=False, **operation_config): - """Gets the sum of the metric values for a given metric and group - combination. - - :param service_name: The name of the service. - :type service_name: str - :param metric_name: The metric name - :type metric_name: str - :param group_name: The group name - :type group_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 Item - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_metrics_sum.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'metricName': self._serialize.url("metric_name", metric_name, 'str'), - 'groupName': self._serialize.url("group_name", group_name, '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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_metrics_sum.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}/sum'} - - def list_metric_metadata( - self, service_name, filter=None, perf_counter=None, custom_headers=None, raw=False, **operation_config): - """Gets the service related metrics information. - - :param service_name: The name of the service. - :type service_name: str - :param filter: The metric metadata property filter to apply. - :type filter: str - :param perf_counter: Indicates if only performance counter metrics are - requested. - :type perf_counter: bool - :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 MetricMetadata - :rtype: - ~azure.mgmt.adhybridhealthservice.models.MetricMetadataPaged[~azure.mgmt.adhybridhealthservice.models.MetricMetadata] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_metric_metadata.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if perf_counter is not None: - query_parameters['perfCounter'] = self._serialize.query("perf_counter", perf_counter, 'bool') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.MetricMetadataPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.MetricMetadataPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata'} - - def get_metric_metadata( - self, service_name, metric_name, custom_headers=None, raw=False, **operation_config): - """Gets the service related metrics information. - - :param service_name: The name of the service. - :type service_name: str - :param metric_name: The metric name - :type metric_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: MetricMetadata or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricMetadata or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_metric_metadata.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'metricName': self._serialize.url("metric_name", metric_name, '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') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('MetricMetadata', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata/{metricName}'} - - def get_metric_metadata_for_group( - self, service_name, metric_name, group_name, group_key=None, from_date=None, to_date=None, custom_headers=None, raw=False, **operation_config): - """Gets the service related metrics for a given metric and group - combination. - - :param service_name: The name of the service. - :type service_name: str - :param metric_name: The metric name - :type metric_name: str - :param group_name: The group name - :type group_name: str - :param group_key: The group key - :type group_key: str - :param from_date: The start date. - :type from_date: datetime - :param to_date: The end date. - :type to_date: datetime - :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: MetricSets or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricSets or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_metric_metadata_for_group.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'metricName': self._serialize.url("metric_name", metric_name, 'str'), - 'groupName': self._serialize.url("group_name", group_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if group_key is not None: - query_parameters['groupKey'] = self._serialize.query("group_key", group_key, 'str') - if from_date is not None: - query_parameters['fromDate'] = self._serialize.query("from_date", from_date, 'iso-8601') - if to_date is not None: - query_parameters['toDate'] = self._serialize.query("to_date", to_date, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('MetricSets', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_metric_metadata_for_group.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} - - def update_monitoring_configuration( - self, service_name, key=None, value=None, custom_headers=None, raw=False, **operation_config): - """Updates the service level monitoring configuration. - - :param service_name: The name of the service. - :type service_name: str - :param key: The key for the property. - :type key: str - :param value: The value for the key. - :type value: 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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - configuration_setting = models.Item(key=key, value=value) - - # Construct URL - url = self.update_monitoring_configuration.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(configuration_setting, 'Item') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - update_monitoring_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/monitoringconfiguration'} - - def list_monitoring_configurations( - self, service_name, custom_headers=None, raw=False, **operation_config): - """Gets the service level monitoring configurations. - - :param service_name: The name of the service. - :type service_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 Item - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_monitoring_configurations.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, '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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ItemPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_monitoring_configurations.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/monitoringconfigurations'} - - def list_user_bad_password_report( - self, service_name, data_source=None, custom_headers=None, raw=False, **operation_config): - """Gets the bad password login attempt report for an user. - - :param service_name: The name of the service. - :type service_name: str - :param data_source: The source of data, if its test data or customer - data. - :type data_source: 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 ErrorReportUsersEntry - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntryPaged[~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntry] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_user_bad_password_report.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if data_source is not None: - query_parameters['dataSource'] = self._serialize.query("data_source", data_source, 'str') - 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.ErrorReportUsersEntryPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ErrorReportUsersEntryPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_user_bad_password_report.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/reports/badpassword/details/user'} - - def get_tenant_whitelisting( - self, service_name, feature_name, custom_headers=None, raw=False, **operation_config): - """Checks if the tenant, to which a service is registered, is whitelisted - to use a feature. - - :param service_name: The name of the service. - :type service_name: str - :param feature_name: The name of the feature. - :type feature_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: Result or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Result or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_tenant_whitelisting.metadata['url'] - path_format_arguments = { - 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'featureName': self._serialize.url("feature_name", feature_name, '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') - - # 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Result', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_tenant_whitelisting.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/TenantWhitelisting/{featureName}'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/version.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/version.py deleted file mode 100644 index 44e69c49c178..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/version.py +++ /dev/null @@ -1,13 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -VERSION = "1.0.1" - diff --git a/azure-mgmt-adhybridhealthservice/sdk_packaging.toml b/azure-mgmt-adhybridhealthservice/sdk_packaging.toml deleted file mode 100644 index 7bc55d716531..000000000000 --- a/azure-mgmt-adhybridhealthservice/sdk_packaging.toml +++ /dev/null @@ -1,7 +0,0 @@ -[packaging] -package_name = "azure-mgmt-adhybridhealthservice" -package_nspkg = "azure-mgmt-nspkg" -package_pprint_name = "MyService Management" -package_doc_id = "" -is_stable = false -is_arm = true diff --git a/azure-mgmt-adhybridhealthservice/setup.cfg b/azure-mgmt-adhybridhealthservice/setup.cfg deleted file mode 100644 index 3c6e79cf31da..000000000000 --- a/azure-mgmt-adhybridhealthservice/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/azure-mgmt-adhybridhealthservice/setup.py b/azure-mgmt-adhybridhealthservice/setup.py deleted file mode 100644 index 677a7c072f87..000000000000 --- a/azure-mgmt-adhybridhealthservice/setup.py +++ /dev/null @@ -1,87 +0,0 @@ -#!/usr/bin/env python - -#------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -#-------------------------------------------------------------------------- - -import re -import os.path -from io import open -from setuptools import find_packages, setup - -# Change the PACKAGE_NAME only to change folder and different name -PACKAGE_NAME = "azure-mgmt-adhybridhealthservice" -PACKAGE_PPRINT_NAME = "MyService Management" - -# a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace('-', '/') -# a-b-c => a.b.c -namespace_name = PACKAGE_NAME.replace('-', '.') - -# azure v0.x is not compatible with this package -# azure v0.x used to have a __version__ attribute (newer versions don't) -try: - import azure - try: - ver = azure.__version__ - raise Exception( - 'This package is incompatible with azure=={}. '.format(ver) + - 'Uninstall it with "pip uninstall azure".' - ) - except AttributeError: - pass -except ImportError: - pass - -# Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', - fd.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError('Cannot find version information') - -with open('README.rst', encoding='utf-8') as f: - readme = f.read() -with open('HISTORY.rst', encoding='utf-8') as f: - history = f.read() - -setup( - name=PACKAGE_NAME, - version=version, - description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), - long_description=readme + '\n\n' + history, - license='MIT License', - author='Microsoft Corporation', - author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python', - classifiers=[ - 'Development Status :: 4 - Beta', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'License :: OSI Approved :: MIT License', - ], - zip_safe=False, - packages=find_packages(exclude=[ - 'tests', - # Exclude packages that will be covered by PEP420 or nspkg - 'azure', - 'azure.mgmt', - ]), - install_requires=[ - 'msrest>=0.5.0', - 'msrestazure>=0.4.32,<2.0.0', - 'azure-common~=1.1', - ], - extras_require={ - ":python_version<'3.0'": ['azure-mgmt-nspkg'], - } -) From 0694c379eff2b2caca42701e752cd1474f5aa440 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 7 Nov 2018 16:52:49 -0800 Subject: [PATCH 7/7] Network 2.3.0 --- azure-mgmt-network/HISTORY.rst | 25 +++++++++++++++++++ .../azure/mgmt/network/version.py | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/azure-mgmt-network/HISTORY.rst b/azure-mgmt-network/HISTORY.rst index 2e3b030c3ef6..3730767c9f25 100644 --- a/azure-mgmt-network/HISTORY.rst +++ b/azure-mgmt-network/HISTORY.rst @@ -3,6 +3,31 @@ Release History =============== +2.3.0 (2018-11-07) +++++++++++++++++++ + +**Features** + +- Model ApplicationGatewayWebApplicationFirewallConfiguration has a new parameter exclusions +- Model ApplicationGatewayWebApplicationFirewallConfiguration has a new parameter file_upload_limit_in_mb +- Model ApplicationGatewayWebApplicationFirewallConfiguration has a new parameter max_request_body_size_in_kb +- Model ApplicationGatewayHttpListener has a new parameter custom_error_configurations +- Model ExpressRouteCircuit has a new parameter bandwidth_in_gbps +- Model ExpressRouteCircuit has a new parameter stag +- Model ExpressRouteCircuit has a new parameter express_route_port +- Model EvaluatedNetworkSecurityGroup has a new parameter applied_to +- Model NetworkConfigurationDiagnosticResult has a new parameter profile +- Model ApplicationGateway has a new parameter custom_error_configurations +- Added operation group LoadBalancerOutboundRulesOperations +- Added operation group ExpressRouteLinksOperations +- Added operation group ExpressRoutePortsOperations +- Added operation group ExpressRoutePortsLocationsOperations + +**Breaking changes** + +- Model NetworkConfigurationDiagnosticResult no longer has parameter traffic_query +- Operation NetworkWatchersOperations.get_network_configuration_diagnostic has a new signature (no longer takes target_resource_id, queries, but a NetworkConfigurationDiagnosticParameters instance) + 2.2.1 (2018-09-14) ++++++++++++++++++ diff --git a/azure-mgmt-network/azure/mgmt/network/version.py b/azure-mgmt-network/azure/mgmt/network/version.py index a6dd75d591a0..a89dff0f0f99 100644 --- a/azure-mgmt-network/azure/mgmt/network/version.py +++ b/azure-mgmt-network/azure/mgmt/network/version.py @@ -5,4 +5,4 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "2.2.1" +VERSION = "2.3.0"