From 8f7508ebf1c19037eaa889a5a76bac1a0b2ff6db Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 1 May 2018 05:58:28 +0000 Subject: [PATCH 01/20] Generated from 2f2607c03b9d2acc63de29ef9296a4e101d6085e Adding readme file --- .../mgmt/adhybridhealthservice/__init__.py | 18 + .../ad_hybrid_health_service.py | 206 ++ .../adhybridhealthservice/models/__init__.py | 281 +++ .../models/ad_hybrid_health_service_enums.py | 134 ++ .../models/additional_information.py | 37 + .../models/additional_information_py3.py | 37 + .../models/adds_service_member.py | 54 + .../models/adds_service_member_py3.py | 54 + .../models/adds_service_members.py | 29 + .../models/adds_service_members_py3.py | 29 + .../adhybridhealthservice/models/agent.py | 53 + .../adhybridhealthservice/models/agent_py3.py | 53 + .../adhybridhealthservice/models/alert.py | 112 + .../models/alert_feedback.py | 59 + .../models/alert_feedback_py3.py | 59 + .../models/alert_feedbacks.py | 28 + .../models/alert_feedbacks_py3.py | 28 + .../adhybridhealthservice/models/alert_py3.py | 112 + .../adhybridhealthservice/models/alerts.py | 28 + .../models/alerts_py3.py | 28 + .../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 | 84 + .../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_py3.py | 84 + .../models/connectors.py | 28 + .../models/connectors_py3.py | 28 + .../models/credential.py | 36 + .../models/credential_py3.py | 36 + .../models/data_freshness_detail.py | 33 + .../models/data_freshness_detail_py3.py | 33 + .../adhybridhealthservice/models/display.py | 37 + .../models/display_py3.py | 37 + .../models/error_count.py | 36 + .../models/error_count_py3.py | 36 + .../models/error_counts.py | 28 + .../models/error_counts_py3.py | 28 + .../models/error_detail.py | 47 + .../models/error_detail_py3.py | 47 + .../models/error_report_users_entries.py | 29 + .../models/error_report_users_entries_py3.py | 29 + .../models/error_report_users_entry.py | 45 + .../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_py3.py | 42 + .../models/export_statuses.py | 28 + .../models/export_statuses_py3.py | 28 + .../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_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 | 80 + .../inbound_replication_neighbor_py3.py | 80 + .../models/inbound_replication_neighbors.py | 29 + .../inbound_replication_neighbors_py3.py | 29 + .../mgmt/adhybridhealthservice/models/item.py | 32 + .../adhybridhealthservice/models/item_py3.py | 32 + .../adhybridhealthservice/models/items.py | 28 + .../adhybridhealthservice/models/items_py3.py | 28 + .../models/merged_export_error.py | 107 + .../models/merged_export_error_py3.py | 107 + .../models/merged_export_errors.py | 28 + .../models/merged_export_errors_py3.py | 28 + .../models/metric_group.py | 37 + .../models/metric_group_py3.py | 37 + .../models/metric_metadata.py | 73 + .../models/metric_metadata_list.py | 28 + .../models/metric_metadata_list_py3.py | 28 + .../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_list_response.py | 48 + .../models/operation_list_response_py3.py | 48 + .../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 | 65 + .../models/replication_summary_list.py | 29 + .../models/replication_summary_list_py3.py | 29 + .../models/replication_summary_py3.py | 65 + .../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 + .../adhybridhealthservice/models/service.py | 43 + .../models/service_configuration.py | 62 + .../models/service_configuration_py3.py | 62 + .../models/service_member.py | 43 + .../models/service_member_properties.py | 146 ++ .../models/service_member_properties_py3.py | 146 ++ .../models/service_member_py3.py | 43 + .../models/service_members.py | 28 + .../models/service_members_py3.py | 28 + .../models/service_properties.py | 135 ++ .../models/service_properties_py3.py | 135 ++ .../models/service_py3.py | 43 + .../adhybridhealthservice/models/services.py | 28 + .../models/services_py3.py | 28 + .../models/tabular_export_error.py | 40 + .../models/tabular_export_error_py3.py | 40 + .../adhybridhealthservice/models/tenant.py | 121 + .../models/tenant_onboarding_details.py | 35 + .../models/tenant_onboarding_details_py3.py | 35 + .../models/tenant_py3.py | 121 + .../models/value_delta.py | 34 + .../models/value_delta_py3.py | 34 + .../operations/__init__.py | 42 + .../addomainservicemembers_operations.py | 122 + .../addsservicemembers_operations.py | 102 + .../operations/addsservices_operations.py | 619 +++++ .../operations/alerts_operations.py | 265 +++ .../operations/configuration_operations.py | 203 ++ .../operations/feedback_operations.py | 103 + .../operations/forestsummary_operations.py | 97 + .../operations/metricmetadata_operations.py | 243 ++ .../operations/metrics_operations.py | 103 + .../operations/operations.py | 90 + .../operations/premium_check_operations.py | 113 + .../replicationstatus_operations.py | 97 + .../replicationsummary_operations.py | 121 + .../operations/services_operations.py | 2017 +++++++++++++++++ .../mgmt/adhybridhealthservice/version.py | 13 + 178 files changed, 12807 insertions(+) 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_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members_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_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alerts.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alerts_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_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors_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_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail_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_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts_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_entries.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries_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_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_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses_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_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_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items_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_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors_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_list.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list_py3.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_list_response.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response_py3.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_list.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list_py3.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/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.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_properties.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties_py3.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_members.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members_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_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services_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/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/addomainservicemembers_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservicemembers_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_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/feedback_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/forestsummary_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metricmetadata_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metrics_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/premium_check_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationstatus_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationsummary_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 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..92858a6d3d8e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py @@ -0,0 +1,206 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# 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 msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +import uuid +from .operations.addsservices_operations import AddsservicesOperations +from .operations.alerts_operations import AlertsOperations +from .operations.addsservicemembers_operations import AddsservicemembersOperations +from .operations.addomainservicemembers_operations import AddomainservicemembersOperations +from .operations.forestsummary_operations import ForestsummaryOperations +from .operations.metrics_operations import MetricsOperations +from .operations.metricmetadata_operations import MetricmetadataOperations +from .operations.replicationstatus_operations import ReplicationstatusOperations +from .operations.replicationsummary_operations import ReplicationsummaryOperations +from .operations.operations import Operations +from .operations.configuration_operations import ConfigurationOperations +from .operations.services_operations import ServicesOperations +from .operations.premium_check_operations import PremiumCheckOperations +from .operations.feedback_operations import FeedbackOperations +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 addsservices: Addsservices operations + :vartype addsservices: azure.mgmt.adhybridhealthservice.operations.AddsservicesOperations + :ivar alerts: Alerts operations + :vartype alerts: azure.mgmt.adhybridhealthservice.operations.AlertsOperations + :ivar addsservicemembers: Addsservicemembers operations + :vartype addsservicemembers: azure.mgmt.adhybridhealthservice.operations.AddsservicemembersOperations + :ivar addomainservicemembers: Addomainservicemembers operations + :vartype addomainservicemembers: azure.mgmt.adhybridhealthservice.operations.AddomainservicemembersOperations + :ivar forestsummary: Forestsummary operations + :vartype forestsummary: azure.mgmt.adhybridhealthservice.operations.ForestsummaryOperations + :ivar metrics: Metrics operations + :vartype metrics: azure.mgmt.adhybridhealthservice.operations.MetricsOperations + :ivar metricmetadata: Metricmetadata operations + :vartype metricmetadata: azure.mgmt.adhybridhealthservice.operations.MetricmetadataOperations + :ivar replicationstatus: Replicationstatus operations + :vartype replicationstatus: azure.mgmt.adhybridhealthservice.operations.ReplicationstatusOperations + :ivar replicationsummary: Replicationsummary operations + :vartype replicationsummary: azure.mgmt.adhybridhealthservice.operations.ReplicationsummaryOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.adhybridhealthservice.operations.Operations + :ivar configuration: Configuration operations + :vartype configuration: azure.mgmt.adhybridhealthservice.operations.ConfigurationOperations + :ivar services: Services operations + :vartype services: azure.mgmt.adhybridhealthservice.operations.ServicesOperations + :ivar premium_check: PremiumCheck operations + :vartype premium_check: azure.mgmt.adhybridhealthservice.operations.PremiumCheckOperations + :ivar feedback: Feedback operations + :vartype feedback: azure.mgmt.adhybridhealthservice.operations.FeedbackOperations + + :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.addsservices = AddsservicesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.alerts = AlertsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.addsservicemembers = AddsservicemembersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.addomainservicemembers = AddomainservicemembersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.forestsummary = ForestsummaryOperations( + self._client, self.config, self._serialize, self._deserialize) + self.metrics = MetricsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.metricmetadata = MetricmetadataOperations( + self._client, self.config, self._serialize, self._deserialize) + self.replicationstatus = ReplicationstatusOperations( + self._client, self.config, self._serialize, self._deserialize) + self.replicationsummary = ReplicationsummaryOperations( + self._client, self.config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self.config, self._serialize, self._deserialize) + self.configuration = ConfigurationOperations( + self._client, self.config, self._serialize, self._deserialize) + self.services = ServicesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.premium_check = PremiumCheckOperations( + self._client, self.config, self._serialize, self._deserialize) + self.feedback = FeedbackOperations( + self._client, self.config, self._serialize, self._deserialize) + + def services_get_bad_pwd_user_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: ErrorReportUsersEntries or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntries or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.services_get_bad_pwd_user_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('ErrorReportUsersEntries', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + services_get_bad_pwd_user_report.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/reports/badpassword/details/user'} 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..ee15f9760abe --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -0,0 +1,281 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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 .additional_information_py3 import AdditionalInformation + from .adds_service_member_py3 import AddsServiceMember + from .adds_service_members_py3 import AddsServiceMembers + from .agent_py3 import Agent + from .help_link_py3 import HelpLink + from .alert_py3 import Alert + from .alert_feedback_py3 import AlertFeedback + from .alert_feedbacks_py3 import AlertFeedbacks + from .alerts_py3 import Alerts + 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 .run_profiles_py3 import RunProfiles + from .connector_py3 import Connector + from .connectors_py3 import Connectors + 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 .data_freshness_detail_py3 import DataFreshnessDetail + from .display_py3 import Display + from .error_count_py3 import ErrorCount + from .error_counts_py3 import ErrorCounts + 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 .error_report_users_entries_py3 import ErrorReportUsersEntries + from .export_status_py3 import ExportStatus + from .export_statuses_py3 import ExportStatuses + from .extension_error_info_py3 import ExtensionErrorInfo + from .forest_summary_py3 import ForestSummary + from .global_configuration_py3 import GlobalConfiguration + from .hotfix_py3 import Hotfix + 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 .item_py3 import Item + from .items_py3 import Items + from .merged_export_errors_py3 import MergedExportErrors + from .metric_group_py3 import MetricGroup + from .metric_metadata_py3 import MetricMetadata + from .metric_metadata_list_py3 import MetricMetadataList + 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 .operation_list_response_py3 import OperationListResponse + from .password_management_settings_py3 import PasswordManagementSettings + from .password_hash_sync_configuration_py3 import PasswordHashSyncConfiguration + from .replication_status_py3 import ReplicationStatus + from .replication_summary_py3 import ReplicationSummary + from .replication_summary_list_py3 import ReplicationSummaryList + from .service_properties_py3 import ServiceProperties + from .service_py3 import Service + from .service_configuration_py3 import ServiceConfiguration + from .services_py3 import Services + from .service_member_properties_py3 import ServiceMemberProperties + from .service_member_py3 import ServiceMember + from .service_members_py3 import ServiceMembers + from .tabular_export_error_py3 import TabularExportError + from .tenant_py3 import Tenant + from .tenant_onboarding_details_py3 import TenantOnboardingDetails +except (SyntaxError, ImportError): + from .additional_information import AdditionalInformation + from .adds_service_member import AddsServiceMember + from .adds_service_members import AddsServiceMembers + from .agent import Agent + from .help_link import HelpLink + from .alert import Alert + from .alert_feedback import AlertFeedback + from .alert_feedbacks import AlertFeedbacks + from .alerts import Alerts + 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 .run_profiles import RunProfiles + from .connector import Connector + from .connectors import Connectors + 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 .data_freshness_detail import DataFreshnessDetail + from .display import Display + from .error_count import ErrorCount + from .error_counts import ErrorCounts + 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 .error_report_users_entries import ErrorReportUsersEntries + from .export_status import ExportStatus + from .export_statuses import ExportStatuses + from .extension_error_info import ExtensionErrorInfo + from .forest_summary import ForestSummary + from .global_configuration import GlobalConfiguration + from .hotfix import Hotfix + 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 .item import Item + from .items import Items + from .merged_export_errors import MergedExportErrors + from .metric_group import MetricGroup + from .metric_metadata import MetricMetadata + from .metric_metadata_list import MetricMetadataList + 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 .operation_list_response import OperationListResponse + from .password_management_settings import PasswordManagementSettings + from .password_hash_sync_configuration import PasswordHashSyncConfiguration + from .replication_status import ReplicationStatus + from .replication_summary import ReplicationSummary + from .replication_summary_list import ReplicationSummaryList + from .service_properties import ServiceProperties + from .service import Service + from .service_configuration import ServiceConfiguration + from .services import Services + from .service_member_properties import ServiceMemberProperties + from .service_member import ServiceMember + from .service_members import ServiceMembers + from .tabular_export_error import TabularExportError + from .tenant import Tenant + from .tenant_onboarding_details import TenantOnboardingDetails +from .ad_hybrid_health_service_enums import ( + Level, + ValueDeltaOperationType, + AttributeDeltaOperationType, + ValueType, + AttributeMappingType, + DeltaOperationType, + RunStepOperationType, + AlgorithmStepType, + HealthStatus, + PasswordOperationTypes, + ServiceType, + ServerDisabledReason, + MonitoringLevel, +) + +__all__ = [ + 'AdditionalInformation', + 'AddsServiceMember', + 'AddsServiceMembers', + 'Agent', + 'HelpLink', + 'Alert', + 'AlertFeedback', + 'AlertFeedbacks', + 'Alerts', + 'AssociatedObject', + 'ValueDelta', + 'AttributeDelta', + 'AttributeMppingSource', + 'AttributeMapping', + 'ChangeNotReimportedDelta', + 'ChangeNotReimportedEntry', + 'ChangeNotReimported', + 'PartitionScope', + 'Partition', + 'RunStep', + 'RunProfile', + 'RunProfiles', + 'Connector', + 'Connectors', + 'ConnectorConnectionError', + 'ConnectorConnectionErrors', + 'ConnectorObjectError', + 'ConnectorObjectErrors', + 'Credential', + 'DataFreshnessDetail', + 'Display', + 'ErrorCount', + 'ErrorCounts', + 'ObjectWithSyncError', + 'MergedExportError', + 'ErrorDetail', + 'ExportError', + 'ExportErrors', + 'ErrorReportUsersEntry', + 'ErrorReportUsersEntries', + 'ExportStatus', + 'ExportStatuses', + 'ExtensionErrorInfo', + 'ForestSummary', + 'GlobalConfiguration', + 'Hotfix', + 'Hotfixes', + 'RuleErrorInfo', + 'ImportError', + 'ImportErrors', + 'InboundReplicationNeighbor', + 'InboundReplicationNeighbors', + 'Item', + 'Items', + 'MergedExportErrors', + 'MetricGroup', + 'MetricMetadata', + 'MetricMetadataList', + 'MetricSet', + 'MetricSets', + 'ModuleConfiguration', + 'ModuleConfigurations', + 'Operation', + 'OperationListResponse', + 'PasswordManagementSettings', + 'PasswordHashSyncConfiguration', + 'ReplicationStatus', + 'ReplicationSummary', + 'ReplicationSummaryList', + 'ServiceProperties', + 'Service', + 'ServiceConfiguration', + 'Services', + 'ServiceMemberProperties', + 'ServiceMember', + 'ServiceMembers', + 'TabularExportError', + 'Tenant', + 'TenantOnboardingDetails', + 'Level', + 'ValueDeltaOperationType', + 'AttributeDeltaOperationType', + 'ValueType', + 'AttributeMappingType', + 'DeltaOperationType', + 'RunStepOperationType', + 'AlgorithmStepType', + 'HealthStatus', + 'PasswordOperationTypes', + 'ServiceType', + 'ServerDisabledReason', + 'MonitoringLevel', +] 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..5624425a7b8e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/ad_hybrid_health_service_enums.py @@ -0,0 +1,134 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 Level(str, Enum): + + warning = "Warning" + error = "Error" + pre_warning = "PreWarning" + + +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 RunStepOperationType(str, Enum): + + undefined = "Undefined" + full_import = "FullImport" + delta_import = "DeltaImport" + full_synchornization = "FullSynchornization" + delta_synchronization = "DeltaSynchronization" + apply_rules = "ApplyRules" + export = "Export" + full_export = "FullExport" + full_import_reevaluate_rules = "FullImportReevaluateRules" + + +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 HealthStatus(str, Enum): + + healthy = "Healthy" + warning = "Warning" + error = "Error" + not_monitored = "NotMonitored" + missing = "Missing" + + +class PasswordOperationTypes(str, Enum): + + undefined = "Undefined" + set = "Set" + change = "Change" + + +class ServiceType(str, Enum): + + undefined = "Undefined" + aad_connect_sync = "AadConnectSync" + dir_sync = "DirSync" + + +class ServerDisabledReason(str, Enum): + + none = "None" + gdpr_stop_collection = "GdprStopCollection" + deleted_from_portal = "DeletedFromPortal" + disabled_due_to_inactivity = "DisabledDueToInactivity" + + +class MonitoringLevel(str, Enum): + + partial = "Partial" + full = "Full" + off = "Off" 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..03db2ddbe6f1 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.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 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 + aditional information. + :type properties: object + """ + + _attribute_map = { + 'title_name': {'key': 'titleName', 'type': 'str'}, + 'title_value': {'key': 'titleValue', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + 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) 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..320ba41966b4 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information_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 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 + aditional information. + :type properties: object + """ + + _attribute_map = { + 'title_name': {'key': 'titleName', 'type': 'str'}, + 'title_value': {'key': 'titleValue', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, *, title_name: str=None, title_value: str=None, properties=None, **kwargs) -> None: + super(AdditionalInformation, self).__init__(**kwargs) + self.title_name = title_name + self.title_value = title_value + self.properties = 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..b1de9d940088 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.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 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 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] + """ + + _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'}, + 'pdc_reachable': {'key': 'pdcReachable', 'type': 'bool'}, + 'sysvol_state': {'key': 'sysvolState', 'type': 'bool'}, + 'dc_types': {'key': 'dcTypes', '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.pdc_reachable = kwargs.get('pdc_reachable', None) + self.sysvol_state = kwargs.get('sysvol_state', None) + self.dc_types = kwargs.get('dc_types', None) 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..167028363215 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_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 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 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] + """ + + _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'}, + 'pdc_reachable': {'key': 'pdcReachable', 'type': 'bool'}, + 'sysvol_state': {'key': 'sysvolState', 'type': 'bool'}, + 'dc_types': {'key': 'dcTypes', 'type': '[str]'}, + } + + def __init__(self, *, domain_name: str=None, site_name: str=None, adds_roles=None, gc_reachable: bool=None, pdc_reachable: bool=None, sysvol_state: bool=None, dc_types=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.pdc_reachable = pdc_reachable + self.sysvol_state = sysvol_state + self.dc_types = dc_types diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members.py new file mode 100644 index 000000000000..cbe6f2be8fc9 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members.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 AddsServiceMembers(Model): + """The list of ADDS service members. + + :param value: + :type value: + list[~azure.mgmt.adhybridhealthservice.models.AddsServiceMember] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[AddsServiceMember]'}, + } + + def __init__(self, **kwargs): + super(AddsServiceMembers, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members_py3.py new file mode 100644 index 000000000000..5d7bb61c7671 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members_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 AddsServiceMembers(Model): + """The list of ADDS service members. + + :param value: + :type value: + list[~azure.mgmt.adhybridhealthservice.models.AddsServiceMember] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[AddsServiceMember]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(AddsServiceMembers, self).__init__(**kwargs) + self.value = value 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..94e519052a3b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py @@ -0,0 +1,112 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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.enum + :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 monitoring_role_type: The monitoring role type for which the alert + was raised. + :type monitoring_role_type: str + :param active_alert_properties: The active alert properties. + :type active_alert_properties: object + :param resolved_alert_properties: The active alert properties. + :type resolved_alert_properties: object + :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'}, + 'monitoring_role_type': {'key': 'monitoringRoleType', 'type': 'str'}, + 'active_alert_properties': {'key': 'activeAlertProperties', 'type': 'object'}, + 'resolved_alert_properties': {'key': 'resolvedAlertProperties', 'type': 'object'}, + '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.monitoring_role_type = kwargs.get('monitoring_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_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_feedbacks.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks.py new file mode 100644 index 000000000000..516cf408c5c0 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks.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 AlertFeedbacks(Model): + """The list of alert feedback. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.AlertFeedback] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[AlertFeedback]'}, + } + + def __init__(self, **kwargs): + super(AlertFeedbacks, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks_py3.py new file mode 100644 index 000000000000..1cd5136140e2 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks_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 AlertFeedbacks(Model): + """The list of alert feedback. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.AlertFeedback] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[AlertFeedback]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(AlertFeedbacks, self).__init__(**kwargs) + self.value = value 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..f182b9985712 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py @@ -0,0 +1,112 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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.enum + :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 monitoring_role_type: The monitoring role type for which the alert + was raised. + :type monitoring_role_type: str + :param active_alert_properties: The active alert properties. + :type active_alert_properties: object + :param resolved_alert_properties: The active alert properties. + :type resolved_alert_properties: object + :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'}, + 'monitoring_role_type': {'key': 'monitoringRoleType', 'type': 'str'}, + 'active_alert_properties': {'key': 'activeAlertProperties', 'type': 'object'}, + 'resolved_alert_properties': {'key': 'resolvedAlertProperties', 'type': 'object'}, + '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, monitoring_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.monitoring_role_type = monitoring_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/alerts.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alerts.py new file mode 100644 index 000000000000..291b92d1610e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alerts.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 Alerts(Model): + """The list of alerts for a service. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.Alert] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Alert]'}, + } + + def __init__(self, **kwargs): + super(Alerts, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alerts_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alerts_py3.py new file mode 100644 index 000000000000..f7ef30c258ab --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alerts_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 Alerts(Model): + """The list of alerts for a service. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.Alert] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Alert]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(Alerts, self).__init__(**kwargs) + self.value = value 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..f8dd657167b3 --- /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_occured: The time of the error. + :type time_occured: 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_occured': {'key': 'timeOccured', '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_occured = kwargs.get('time_occured', 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..99556313d82e --- /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_occured: The time of the error. + :type time_occured: 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_occured': {'key': 'timeOccured', '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_occured=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_occured = time_occured + 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..cf5f757d8dbc --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.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 Connector(Model): + """The connect details. + + :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.RunProfiles] + :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 = { + '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': '[RunProfiles]'}, + 'classes_included': {'key': 'classesIncluded', 'type': '[str]'}, + 'attributes_included': {'key': 'attributesIncluded', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(Connector, self).__init__(**kwargs) + 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..1a772e25d5f7 --- /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: + :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..1a71671e14da --- /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: + :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..41c610c1d063 --- /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: + :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..373874c81e43 --- /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: + :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_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py new file mode 100644 index 000000000000..e31e4669299e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_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 Connector(Model): + """The connect details. + + :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.RunProfiles] + :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 = { + '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': '[RunProfiles]'}, + 'classes_included': {'key': 'classesIncluded', 'type': '[str]'}, + 'attributes_included': {'key': 'attributesIncluded', 'type': '[str]'}, + } + + def __init__(self, *, 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.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/connectors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors.py new file mode 100644 index 000000000000..8b60669dde63 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors.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 Connectors(Model): + """The list of connects for a service. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.Connector] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Connector]'}, + } + + def __init__(self, **kwargs): + super(Connectors, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors_py3.py new file mode 100644 index 000000000000..976133f782e4 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors_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 Connectors(Model): + """The list of connects for a service. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.Connector] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Connector]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(Connectors, self).__init__(**kwargs) + self.value = value 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_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/data_freshness_detail.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail.py new file mode 100644 index 000000000000..83925ca474c1 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail.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 DataFreshnessDetail(Model): + """The data freshness details for the server. + + :param service_id: The service Id to whom the server is onboarded to. + :type service_id: str + :param last_data_upload_time: The date time , in UTC, when data was last + uploaded by the server. + :type last_data_upload_time: datetime + """ + + _attribute_map = { + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'last_data_upload_time': {'key': 'lastDataUploadTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(DataFreshnessDetail, self).__init__(**kwargs) + self.service_id = kwargs.get('service_id', None) + self.last_data_upload_time = kwargs.get('last_data_upload_time', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail_py3.py new file mode 100644 index 000000000000..cf90e7cb39c1 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail_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 DataFreshnessDetail(Model): + """The data freshness details for the server. + + :param service_id: The service Id to whom the server is onboarded to. + :type service_id: str + :param last_data_upload_time: The date time , in UTC, when data was last + uploaded by the server. + :type last_data_upload_time: datetime + """ + + _attribute_map = { + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'last_data_upload_time': {'key': 'lastDataUploadTime', 'type': 'iso-8601'}, + } + + def __init__(self, *, service_id: str=None, last_data_upload_time=None, **kwargs) -> None: + super(DataFreshnessDetail, self).__init__(**kwargs) + self.service_id = service_id + self.last_data_upload_time = last_data_upload_time 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..2323824aece9 --- /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 trucated: Indicates if the error count is truncated or not. + :type trucated: bool + """ + + _attribute_map = { + 'error_bucket': {'key': 'errorBucket', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'trucated': {'key': 'trucated', '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.trucated = kwargs.get('trucated', None) 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..20b4827a702d --- /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 trucated: Indicates if the error count is truncated or not. + :type trucated: bool + """ + + _attribute_map = { + 'error_bucket': {'key': 'errorBucket', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'trucated': {'key': 'trucated', 'type': 'bool'}, + } + + def __init__(self, *, error_bucket: str=None, count: int=None, trucated: bool=None, **kwargs) -> None: + super(ErrorCount, self).__init__(**kwargs) + self.error_bucket = error_bucket + self.count = count + self.trucated = trucated diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts.py new file mode 100644 index 000000000000..c0a6f95143d8 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts.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 ErrorCounts(Model): + """The list of error counts. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.ErrorCount] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ErrorCount]'}, + } + + def __init__(self, **kwargs): + super(ErrorCounts, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts_py3.py new file mode 100644 index 000000000000..8644244da121 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts_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 ErrorCounts(Model): + """The list of error counts. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.ErrorCount] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ErrorCount]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ErrorCounts, self).__init__(**kwargs) + self.value = value 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_entries.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries.py new file mode 100644 index 000000000000..5ff9e37b1d22 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries.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 ErrorReportUsersEntries(Model): + """The list of bad password log in attempt entries. + + :param value: + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntry] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ErrorReportUsersEntry]'}, + } + + def __init__(self, **kwargs): + super(ErrorReportUsersEntries, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries_py3.py new file mode 100644 index 000000000000..477298c86883 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries_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 ErrorReportUsersEntries(Model): + """The list of bad password log in attempt entries. + + :param value: + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntry] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ErrorReportUsersEntry]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ErrorReportUsersEntries, self).__init__(**kwargs) + self.value = value 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..be7cf84cf957 --- /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_id_addresses: The list of unique IP addresses. + :type unique_id_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_id_addresses': {'key': 'uniqueIdAddresses', '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_id_addresses = kwargs.get('unique_id_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_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_py3.py new file mode 100644 index 000000000000..8caee156bea2 --- /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_id_addresses: The list of unique IP addresses. + :type unique_id_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_id_addresses': {'key': 'uniqueIdAddresses', 'type': 'str'}, + 'total_error_attempts': {'key': 'totalErrorAttempts', 'type': 'int'}, + } + + def __init__(self, *, user_id: str=None, ip_address: str=None, last_updated=None, unique_id_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_id_addresses = unique_id_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..d91139d97d89 --- /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 servver_error_detail: The server error detail. + :type servver_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'}, + 'servver_error_detail': {'key': 'servverErrorDetail', '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.servver_error_detail = kwargs.get('servver_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..d7886026af33 --- /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 servver_error_detail: The server error detail. + :type servver_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'}, + 'servver_error_detail': {'key': 'servverErrorDetail', '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, servver_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.servver_error_detail = servver_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..76e8957d1c17 --- /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: + :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..b10efda88e33 --- /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: + :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_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/export_statuses.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses.py new file mode 100644 index 000000000000..3d197768ea8b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses.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 ExportStatuses(Model): + """The list of export statuses. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportStatus] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExportStatus]'}, + } + + def __init__(self, **kwargs): + super(ExportStatuses, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses_py3.py new file mode 100644 index 000000000000..500defd6eac9 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses_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 ExportStatuses(Model): + """The list of export statuses. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportStatus] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExportStatus]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ExportStatuses, self).__init__(**kwargs) + self.value = value 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..e45a7a76bb35 --- /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 monitered_dc_count: The number of domain controllers that are + monitored by Azure Active Directory Connect Health. + :type monitered_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'}, + 'monitered_dc_count': {'key': 'moniteredDcCount', '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.monitered_dc_count = kwargs.get('monitered_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..085f763834df --- /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 monitered_dc_count: The number of domain controllers that are + monitored by Azure Active Directory Connect Health. + :type monitered_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'}, + 'monitered_dc_count': {'key': 'moniteredDcCount', '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, monitered_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.monitered_dc_count = monitered_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..99ee3c67d2c8 --- /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_events: The number of saved password events. + :type num_saved_pwd_events: int + :param feature_set: The list of additional feature sets. + :type feature_set: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'int'}, + 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, + 'password_sync_enabled': {'key': 'passwordSyncEnabled', 'type': 'bool'}, + 'num_saved_pwd_events': {'key': 'numSavedPwdEvents', 'type': 'int'}, + 'feature_set': {'key': 'featureSet', 'type': 'object'}, + } + + 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_events = kwargs.get('num_saved_pwd_events', None) + self.feature_set = kwargs.get('feature_set', None) 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..1a8df76df629 --- /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_events: The number of saved password events. + :type num_saved_pwd_events: int + :param feature_set: The list of additional feature sets. + :type feature_set: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'int'}, + 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, + 'password_sync_enabled': {'key': 'passwordSyncEnabled', 'type': 'bool'}, + 'num_saved_pwd_events': {'key': 'numSavedPwdEvents', 'type': 'int'}, + 'feature_set': {'key': 'featureSet', 'type': 'object'}, + } + + def __init__(self, *, version: int=None, schema_xml: str=None, password_sync_enabled: bool=None, num_saved_pwd_events: 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_events = num_saved_pwd_events + 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..fda5c0658c56 --- /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: + :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..3ee0e79e5b4b --- /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: + :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..6236bfef1878 --- /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: + :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..7928aaef73a8 --- /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: + :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..907f2dbf8056 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor.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 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: str + :param naming_context: The naming context. + :type naming_context: str + :param status: The health status for the domain controller. Possible + values include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' + :type status: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus + :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': 'str'}, + 'naming_context': {'key': 'namingContext', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + '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..ac82040b90e1 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor_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 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: str + :param naming_context: The naming context. + :type naming_context: str + :param status: The health status for the domain controller. Possible + values include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' + :type status: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus + :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': 'str'}, + 'naming_context': {'key': 'namingContext', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + '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: str=None, naming_context: str=None, status=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..5cfd8d579369 --- /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: + :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..bdf6d97a5689 --- /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: + :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_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/items.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items.py new file mode 100644 index 000000000000..621d59876300 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items.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 Items(Model): + """The list of key value properties. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.Item] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Item]'}, + } + + def __init__(self, **kwargs): + super(Items, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items_py3.py new file mode 100644 index 000000000000..bae44dcdfd2d --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items_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 Items(Model): + """The list of key value properties. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.Item] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Item]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(Items, self).__init__(**kwargs) + 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..705ae5c17d80 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.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. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MergedExportError(Model): + """The merged export error. + + :param id: The internal Id for the export error. + :type id: str + :param id_set: Indicates if the Id has been set externally or not. + :type id_set: bool + :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 + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'id_set': {'key': 'idSet', 'type': 'bool'}, + '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'}, + } + + def __init__(self, **kwargs): + super(MergedExportError, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.id_set = kwargs.get('id_set', 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) 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..0169edd89044 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_py3.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. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MergedExportError(Model): + """The merged export error. + + :param id: The internal Id for the export error. + :type id: str + :param id_set: Indicates if the Id has been set externally or not. + :type id_set: bool + :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 + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'id_set': {'key': 'idSet', 'type': 'bool'}, + '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'}, + } + + def __init__(self, *, id: str=None, id_set: bool=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, **kwargs) -> None: + super(MergedExportError, self).__init__(**kwargs) + self.id = id + self.id_set = id_set + 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 diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors.py new file mode 100644 index 000000000000..a40851fd66e4 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_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 MergedExportErrors(Model): + """The list of export errors. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportError] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExportError]'}, + } + + def __init__(self, **kwargs): + super(MergedExportErrors, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors_py3.py new file mode 100644 index 000000000000..82cdfa882077 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_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 MergedExportErrors(Model): + """The list of export errors. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportError] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExportError]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(MergedExportErrors, self).__init__(**kwargs) + self.value = value 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..1e9f96e7eed8 --- /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_list.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list.py new file mode 100644 index 000000000000..1fb070e5e57b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list.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 MetricMetadataList(Model): + """The list of metric metadata. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.MetricMetadata] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[MetricMetadata]'}, + } + + def __init__(self, **kwargs): + super(MetricMetadataList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list_py3.py new file mode 100644 index 000000000000..6c2eeda5d2ac --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list_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 MetricMetadataList(Model): + """The list of metric metadata. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.MetricMetadata] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[MetricMetadata]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(MetricMetadataList, self).__init__(**kwargs) + self.value = value 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..fd5e71948b5c --- /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..2c30f9b11270 --- /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: + :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..5fda2dea51c9 --- /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: + :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_list_response.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response.py new file mode 100644 index 000000000000..c6d7e17b19a0 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response.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 OperationListResponse(Model): + """Lists all of the available REST API operations for Azure Active Directory + Connect Health. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar next_link: URL to get the next set of operation list results if + there are any. + :vartype next_link: str + :ivar value: List of operations supported by the + Microsoft.ADHybridhHealthService resource provider. + :vartype value: list[~azure.mgmt.adhybridhealthservice.models.Operation] + :param continuation_token: The continuation token to get next set of + operations. + :type continuation_token: str + """ + + _validation = { + 'next_link': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Operation]'}, + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationListResponse, self).__init__(**kwargs) + self.next_link = None + self.value = None + self.continuation_token = kwargs.get('continuation_token', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response_py3.py new file mode 100644 index 000000000000..98626b6cccbc --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response_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 OperationListResponse(Model): + """Lists all of the available REST API operations for Azure Active Directory + Connect Health. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar next_link: URL to get the next set of operation list results if + there are any. + :vartype next_link: str + :ivar value: List of operations supported by the + Microsoft.ADHybridhHealthService resource provider. + :vartype value: list[~azure.mgmt.adhybridhealthservice.models.Operation] + :param continuation_token: The continuation token to get next set of + operations. + :type continuation_token: str + """ + + _validation = { + 'next_link': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Operation]'}, + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + } + + def __init__(self, *, continuation_token: str=None, **kwargs) -> None: + super(OperationListResponse, self).__init__(**kwargs) + self.next_link = None + self.value = None + self.continuation_token = continuation_token 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..9bbc0371dea7 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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. Possible values + include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' + :type status: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus + :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 service_id: The service Id. + :type service_id: str + :param service_member_id: The serviceMemberId. + :type service_member_id: str + :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': 'str'}, + 'last_attempted_sync': {'key': 'lastAttemptedSync', 'type': 'iso-8601'}, + 'last_successful_sync': {'key': 'lastSuccessfulSync', 'type': 'iso-8601'}, + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + '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.service_id = kwargs.get('service_id', None) + self.service_member_id = kwargs.get('service_member_id', None) + self.inbound_neighbor_collection = kwargs.get('inbound_neighbor_collection', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list.py new file mode 100644 index 000000000000..f1e29488dca2 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list.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 ReplicationSummaryList(Model): + """The list of replication summary details. + + :param value: + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ReplicationSummary] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ReplicationSummary]'}, + } + + def __init__(self, **kwargs): + super(ReplicationSummaryList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list_py3.py new file mode 100644 index 000000000000..c59c0a30c0be --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list_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 ReplicationSummaryList(Model): + """The list of replication summary details. + + :param value: + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ReplicationSummary] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ReplicationSummary]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ReplicationSummaryList, self).__init__(**kwargs) + self.value = value 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..d8d6c6bfe1fc --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_py3.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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. Possible values + include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' + :type status: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus + :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 service_id: The service Id. + :type service_id: str + :param service_member_id: The serviceMemberId. + :type service_member_id: str + :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': 'str'}, + 'last_attempted_sync': {'key': 'lastAttemptedSync', 'type': 'iso-8601'}, + 'last_successful_sync': {'key': 'lastSuccessfulSync', 'type': 'iso-8601'}, + 'service_id': {'key': 'serviceId', 'type': 'str'}, + 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, + 'inbound_neighbor_collection': {'key': 'inboundNeighborCollection', 'type': '[InboundReplicationNeighbor]'}, + } + + def __init__(self, *, target_server: str=None, site: str=None, domain: str=None, status=None, last_attempted_sync=None, last_successful_sync=None, service_id: str=None, service_member_id: str=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.service_id = service_id + self.service_member_id = service_member_id + self.inbound_neighbor_collection = inbound_neighbor_collection 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..ee1be81ab0f7 --- /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: + :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..73c59011f2d9 --- /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: + :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..c4838f53a3da --- /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 run_step_operation_type: The run step operation types. Possible + values include: 'Undefined', 'FullImport', 'DeltaImport', + 'FullSynchornization', 'DeltaSynchronization', 'ApplyRules', 'Export', + 'FullExport', 'FullImportReevaluateRules' + :type run_step_operation_type: str or + ~azure.mgmt.adhybridhealthservice.models.RunStepOperationType + """ + + _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'}, + 'run_step_operation_type': {'key': 'runStepOperationType', 'type': 'str'}, + } + + 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.run_step_operation_type = kwargs.get('run_step_operation_type', 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..a3cb24873866 --- /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 run_step_operation_type: The run step operation types. Possible + values include: 'Undefined', 'FullImport', 'DeltaImport', + 'FullSynchornization', 'DeltaSynchronization', 'ApplyRules', 'Export', + 'FullExport', 'FullImportReevaluateRules' + :type run_step_operation_type: str or + ~azure.mgmt.adhybridhealthservice.models.RunStepOperationType + """ + + _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'}, + 'run_step_operation_type': {'key': 'runStepOperationType', 'type': 'str'}, + } + + 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, run_step_operation_type=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.run_step_operation_type = run_step_operation_type diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service.py new file mode 100644 index 000000000000..e271884bb03e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service.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 Service(Model): + """The details of the service for a given onboarded tenant. + + :param continuation_token: The page-continuation token to use with a paged + version of this API. + :type continuation_token: str + :param total_count: The total number of services onboarded for a given + tenant. + :type total_count: int + :param next_link: The link used to get the next page of the operation. + :type next_link: str + :param value: The service properties. + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'total_count': {'key': 'totalCount', 'type': 'int'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ServiceProperties]'}, + } + + def __init__(self, **kwargs): + super(Service, self).__init__(**kwargs) + self.continuation_token = kwargs.get('continuation_token', None) + self.total_count = kwargs.get('total_count', None) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) 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..a4e1baa0f23e --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.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 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. Possible values + include: 'Undefined', 'AadConnectSync', 'DirSync' + :type service_type: str or + ~azure.mgmt.adhybridhealthservice.models.ServiceType + :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: The SQL database. + :type sql_database: 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': 'str'}, + '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': {'key': 'sqlDatabase', '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 = kwargs.get('sql_database', 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..96adac7b1378 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_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 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. Possible values + include: 'Undefined', 'AadConnectSync', 'DirSync' + :type service_type: str or + ~azure.mgmt.adhybridhealthservice.models.ServiceType + :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: The SQL database. + :type sql_database: 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': 'str'}, + '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': {'key': 'sqlDatabase', 'type': 'str'}, + 'sql_database_size': {'key': 'sqlDatabaseSize', 'type': 'int'}, + } + + def __init__(self, *, version: str=None, service_type=None, service_account: str=None, sql_server: str=None, sql_version: str=None, sql_edition: str=None, sql_instance: str=None, sql_database: 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 = sql_database + 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..39b53cd1b264 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.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 ServiceMember(Model): + """The details of the server for a given onboarded service. + + :param continuation_token: The page-continuation token to use with a paged + version of this API. + :type continuation_token: str + :param total_count: The total number of servers onboarded for a given + service. + :type total_count: int + :param next_link: The link used to get the next page of the operation. + :type next_link: str + :param value: The server properties. + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ServiceMemberProperties] + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'total_count': {'key': 'totalCount', 'type': 'int'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ServiceMemberProperties]'}, + } + + def __init__(self, **kwargs): + super(ServiceMember, self).__init__(**kwargs) + self.continuation_token = kwargs.get('continuation_token', None) + self.total_count = kwargs.get('total_count', None) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties.py new file mode 100644 index 000000000000..ae6cd839c93b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties.py @@ -0,0 +1,146 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ServiceMemberProperties(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. Possible + values include: 'None', 'GdprStopCollection', 'DeletedFromPortal', + 'DisabledDueToInactivity' + :type disabled_reason: str or + ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason + :param installed_qfe: The list of installed QFEs for the server. + :type installed_qfe: 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': 'ServerDisabledReason'}, + 'installed_qfe': {'key': 'installedQfe', '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(ServiceMemberProperties, 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_qfe = kwargs.get('installed_qfe', 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_properties_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties_py3.py new file mode 100644 index 000000000000..aa1d3008c1a7 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties_py3.py @@ -0,0 +1,146 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ServiceMemberProperties(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. Possible + values include: 'None', 'GdprStopCollection', 'DeletedFromPortal', + 'DisabledDueToInactivity' + :type disabled_reason: str or + ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason + :param installed_qfe: The list of installed QFEs for the server. + :type installed_qfe: 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': 'ServerDisabledReason'}, + 'installed_qfe': {'key': 'installedQfe', '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=None, installed_qfe=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(ServiceMemberProperties, 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_qfe = installed_qfe + 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_member_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py new file mode 100644 index 000000000000..587e9d0cf2e8 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_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 ServiceMember(Model): + """The details of the server for a given onboarded service. + + :param continuation_token: The page-continuation token to use with a paged + version of this API. + :type continuation_token: str + :param total_count: The total number of servers onboarded for a given + service. + :type total_count: int + :param next_link: The link used to get the next page of the operation. + :type next_link: str + :param value: The server properties. + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ServiceMemberProperties] + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'total_count': {'key': 'totalCount', 'type': 'int'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ServiceMemberProperties]'}, + } + + def __init__(self, *, continuation_token: str=None, total_count: int=None, next_link: str=None, value=None, **kwargs) -> None: + super(ServiceMember, self).__init__(**kwargs) + self.continuation_token = continuation_token + self.total_count = total_count + self.next_link = next_link + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members.py new file mode 100644 index 000000000000..c4c81b66f2b6 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members.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 ServiceMembers(Model): + """The list of servers that are onboarded for a given service. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.ServiceMember] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ServiceMember]'}, + } + + def __init__(self, **kwargs): + super(ServiceMembers, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members_py3.py new file mode 100644 index 000000000000..636aaa119a67 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members_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 ServiceMembers(Model): + """The list of servers that are onboarded for a given service. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.ServiceMember] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ServiceMember]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ServiceMembers, self).__init__(**kwargs) + self.value = value 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..f3808bbf6824 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py @@ -0,0 +1,135 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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_disable: The date and time, in UTC, when the service was last + disabled. + :type last_disable: 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: 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_disable': {'key': 'lastDisable', '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': {'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_disable = kwargs.get('last_disable', 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 = 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_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_py3.py new file mode 100644 index 000000000000..57ff9eba892b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_py3.py @@ -0,0 +1,135 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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_disable: The date and time, in UTC, when the service was last + disabled. + :type last_disable: 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: 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_disable': {'key': 'lastDisable', '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': {'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_disable=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=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_disable = last_disable + 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 = 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/service_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_py3.py new file mode 100644 index 000000000000..c3b4b0c2b887 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_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 Service(Model): + """The details of the service for a given onboarded tenant. + + :param continuation_token: The page-continuation token to use with a paged + version of this API. + :type continuation_token: str + :param total_count: The total number of services onboarded for a given + tenant. + :type total_count: int + :param next_link: The link used to get the next page of the operation. + :type next_link: str + :param value: The service properties. + :type value: + list[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'total_count': {'key': 'totalCount', 'type': 'int'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ServiceProperties]'}, + } + + def __init__(self, *, continuation_token: str=None, total_count: int=None, next_link: str=None, value=None, **kwargs) -> None: + super(Service, self).__init__(**kwargs) + self.continuation_token = continuation_token + self.total_count = total_count + self.next_link = next_link + self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services.py new file mode 100644 index 000000000000..3e45910333ad --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services.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 Services(Model): + """The list of services for a given onboarded tenant. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.Service] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Service]'}, + } + + def __init__(self, **kwargs): + super(Services, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services_py3.py new file mode 100644 index 000000000000..fc6132fa6b69 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services_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 Services(Model): + """The list of services for a given onboarded tenant. + + :param value: + :type value: list[~azure.mgmt.adhybridhealthservice.models.Service] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Service]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(Services, self).__init__(**kwargs) + self.value = value 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..1c955fb1c51f --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py @@ -0,0 +1,121 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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: datetime + :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: str + :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 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': 'iso-8601'}, + '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': 'str'}, + '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'}, + '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.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..975cc14e40e0 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py @@ -0,0 +1,121 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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: datetime + :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: str + :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 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': 'iso-8601'}, + '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': 'str'}, + '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'}, + '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=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: str=None, global_admins_email=None, initial_domain: str=None, last_disabled=None, last_verified=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.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/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..aaa91d733d14 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.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 .addsservices_operations import AddsservicesOperations +from .alerts_operations import AlertsOperations +from .addsservicemembers_operations import AddsservicemembersOperations +from .addomainservicemembers_operations import AddomainservicemembersOperations +from .forestsummary_operations import ForestsummaryOperations +from .metrics_operations import MetricsOperations +from .metricmetadata_operations import MetricmetadataOperations +from .replicationstatus_operations import ReplicationstatusOperations +from .replicationsummary_operations import ReplicationsummaryOperations +from .operations import Operations +from .configuration_operations import ConfigurationOperations +from .services_operations import ServicesOperations +from .premium_check_operations import PremiumCheckOperations +from .feedback_operations import FeedbackOperations + +__all__ = [ + 'AddsservicesOperations', + 'AlertsOperations', + 'AddsservicemembersOperations', + 'AddomainservicemembersOperations', + 'ForestsummaryOperations', + 'MetricsOperations', + 'MetricmetadataOperations', + 'ReplicationstatusOperations', + 'ReplicationsummaryOperations', + 'Operations', + 'ConfigurationOperations', + 'ServicesOperations', + 'PremiumCheckOperations', + 'FeedbackOperations', +] diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addomainservicemembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addomainservicemembers_operations.py new file mode 100644 index 000000000000..a03d1ef944f9 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addomainservicemembers_operations.py @@ -0,0 +1,122 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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 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_service_members_v2( + self, service_name, is_groupby_site, filter=None, query=None, next_partition_key=None, next_row_key=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 next_partition_key: The next partition key to query for. + :type next_partition_key: str + :param next_row_key: The next row key to query for. + :type next_row_key: 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: AddsServiceMembers or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.AddsServiceMembers or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_service_members_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 = {} + 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') + if next_partition_key is not None: + query_parameters['nextPartitionKey'] = self._serialize.query("next_partition_key", next_partition_key, 'str') + if next_row_key is not None: + query_parameters['nextRowKey'] = self._serialize.query("next_row_key", 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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('AddsServiceMembers', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_service_members_v2.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/addomainservicemembers'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservicemembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservicemembers_operations.py new file mode 100644 index 000000000000..d90fcf1c2f78 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservicemembers_operations.py @@ -0,0 +1,102 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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 get_service_members( + 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: AddsServiceMembers or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.AddsServiceMembers or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_service_members.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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('AddsServiceMembers', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_service_members.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/addsservicemembers'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py new file mode 100644 index 000000000000..70d4b27dad78 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py @@ -0,0 +1,619 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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". + """ + + 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_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 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: Services or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Services or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Services', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_services.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices'} + + def postaddsservices( + 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.Service + :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: Service or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Service or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.postaddsservices.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['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, 'Service') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, 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('Service', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + postaddsservices.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices'} + + def get_service( + 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: Service or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Service or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_service.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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Service', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} + + def delete_service( + 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_service.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 = {} + 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 and send request + request = self._client.delete(url, query_parameters) + response = self._client.send(request, header_parameters, 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_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} + + def update_service( + 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.Service + :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: Service or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Service or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.update_service.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(service, 'Service') + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, 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('Service', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} + + def get_configuration( + 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: Tenant or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Tenant or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_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 = {} + if grouping is not None: + query_parameters['grouping'] = self._serialize.query("grouping", grouping, '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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200, 400]: + 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_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/configuration'} + + def get_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: list or ClientRawResponse if raw=true + :rtype: list[str] or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('[str]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_dimensions.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/dimensions/{dimension}'} + + def get_adds_service_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: Items or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Items or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_adds_service_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Items', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_adds_service_metrics_sum.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}/sum'} + + def get_services_premium_check( + 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: Services or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Services or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_services_premium_check.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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Services', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_services_premium_check.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/premiumCheck'} 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..325dfdb185c6 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/alerts_operations.py @@ -0,0 +1,265 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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 get_adds_services_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: Alerts or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Alerts or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_adds_services_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Alerts', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_adds_services_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/alerts'} + + def get_adds_service_member_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 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: Alerts or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Alerts or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_adds_service_member_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Alerts', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_adds_service_member_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}/alerts'} + + def get_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: Alerts or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Alerts or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Alerts', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{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..ca25efc873ff --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py @@ -0,0 +1,203 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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 post_tenant_configuration( + 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.post_tenant_configuration.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['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 and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200, 403]: + 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 + post_tenant_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} + + def get_tenant( + 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_tenant.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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200, 400]: + 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_tenant.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} + + def patch_tenant( + 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.patch_tenant.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['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) + response = self._client.send( + request, header_parameters, body_content, stream=False, **operation_config) + + if response.status_code not in [200, 404]: + 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 + patch_tenant.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/feedback_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/feedback_operations.py new file mode 100644 index 000000000000..1681714921c6 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/feedback_operations.py @@ -0,0 +1,103 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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 FeedbackOperations(object): + """FeedbackOperations 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 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['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) + response = self._client.send( + request, header_parameters, body_content, 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'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/forestsummary_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/forestsummary_operations.py new file mode 100644 index 000000000000..54d2424eeec0 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/forestsummary_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 ForestsummaryOperations(object): + """ForestsummaryOperations 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_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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metricmetadata_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metricmetadata_operations.py new file mode 100644 index 000000000000..5313d96fe72b --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metricmetadata_operations.py @@ -0,0 +1,243 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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 MetricmetadataOperations(object): + """MetricmetadataOperations 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_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: MetricMetadataList or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricMetadataList 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') + } + 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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('MetricMetadataList', 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'} + + def get_adds_service_single_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_adds_service_single_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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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_adds_service_single_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}'} + + def get_metrics_for_service( + 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_metrics_for_service.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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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_for_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metrics_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metrics_operations.py new file mode 100644 index 000000000000..3786d8226da8 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metrics_operations.py @@ -0,0 +1,103 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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 MetricsOperations(object): + """MetricsOperations 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_adds_service_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: Items or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Items or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_adds_service_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Items', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_adds_service_metrics_average.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}/average'} 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..e3efb026190d --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/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 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: OperationListResponse or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.OperationListResponse + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # 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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('OperationListResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/operations'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/premium_check_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/premium_check_operations.py new file mode 100644 index 000000000000..f4769cdeadea --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/premium_check_operations.py @@ -0,0 +1,113 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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 PremiumCheckOperations(object): + """PremiumCheckOperations 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_services_premium_check( + 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: Services or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Services or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_services_premium_check.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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Services', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_services_premium_check.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/premiumCheck'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationstatus_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationstatus_operations.py new file mode 100644 index 000000000000..735f4393fbf6 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationstatus_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 ReplicationstatusOperations(object): + """ReplicationstatusOperations 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_replication_status( + 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_replication_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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_replication_status.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationstatus'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationsummary_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationsummary_operations.py new file mode 100644 index 000000000000..05cf26d3c1f2 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationsummary_operations.py @@ -0,0 +1,121 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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 ReplicationsummaryOperations(object): + """ReplicationsummaryOperations 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_replication_summaryv2( + self, service_name, is_groupby_site, query, next_partition_key, filter=None, next_row_key=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 next_partition_key: The next partition key to query for. + :type next_partition_key: str + :param filter: The server property filter to apply. + :type filter: str + :param next_row_key: The next row key to query for. + :type next_row_key: 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: ReplicationSummary or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ReplicationSummary or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_replication_summaryv2.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("next_partition_key", next_partition_key, 'str') + if next_row_key is not None: + query_parameters['nextRowKey'] = self._serialize.query("next_row_key", 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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('ReplicationSummary', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_replication_summaryv2.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationsummary'} 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..f96f4b138425 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py @@ -0,0 +1,2017 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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 get_services( + 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: Services or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Services or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Services', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_services.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services'} + + def post_services( + 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.Service + :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: Service or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Service or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.post_services.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['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, 'Service') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, 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('Service', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + post_services.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services'} + + def get_service( + 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: Service or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Service or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_service.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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Service', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} + + def delete_service( + 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_service.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 = {} + 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 and send request + request = self._client.delete(url, query_parameters) + response = self._client.send(request, header_parameters, 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_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} + + def update_service( + 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.Service + :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: Service or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Service or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.update_service.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(service, 'Service') + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, 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('Service', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} + + def check_service_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: bool or ClientRawResponse if raw=true + :rtype: bool or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.check_service_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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('bool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + check_service_feature_availibility.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/checkServiceFeatureAvailibility/{featureName}'} + + def get_latest_aad_export_error_count( + 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: ErrorCounts or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ErrorCounts or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_latest_aad_export_error_count.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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('ErrorCounts', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_latest_aad_export_error_count.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exporterrors/counts'} + + def get_latest_aad_export_errors_v2( + self, service_name, error_bucket, next_link=None, 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 next_link: The next link to get next step of data. + :type next_link: 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: MergedExportErrors or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.MergedExportErrors or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_latest_aad_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') + if next_link is not None: + query_parameters['nextLink'] = self._serialize.query("next_link", next_link, 'str') + 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('MergedExportErrors', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_latest_aad_export_errors_v2.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exporterrors/listV2'} + + def get_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: ExportStatuses or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ExportStatuses or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('ExportStatuses', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_export_status.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exportstatus'} + + def get_peralertfeedback( + 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: AlertFeedbacks or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.AlertFeedbacks or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_peralertfeedback.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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('AlertFeedbacks', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_peralertfeedback.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/feedbacktype/alerts/{shortName}/alertfeedback'} + + def get_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: Items or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Items or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Items', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_metrics_average.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}/average'} + + def get_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: Items or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Items or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Items', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_metrics_sum.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}/sum'} + + def get_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: MetricMetadataList or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricMetadataList 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') + } + 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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('MetricMetadataList', 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'} + + def get_single_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_single_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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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_single_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata/{metricName}'} + + def get_metrics_for_service( + 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_metrics_for_service.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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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_for_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} + + def update_service_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_service_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) + response = self._client.send( + request, header_parameters, body_content, 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_service_monitoring_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/monitoringconfiguration'} + + def get_service_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: Items or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Items or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_service_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Items', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_service_monitoring_configurations.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/monitoringconfigurations'} + + def get_service_members( + 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: ServiceMembers or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceMembers or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_service_members.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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('ServiceMembers', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_service_members.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers'} + + def add_service_members( + 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_service_members.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(service_member, 'ServiceMember') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, 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_service_members.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers'} + + def get_service_member( + 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_service_member.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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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_service_member.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}'} + + def delete_service_member( + 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_service_member.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 = {} + 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 and send request + request = self._client.delete(url, query_parameters) + response = self._client.send(request, header_parameters, 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_service_member.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}'} + + def get_service_member_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: Alerts or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Alerts or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_service_member_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Alerts', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_service_member_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/alerts'} + + def get_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: Connectors or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Connectors or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Connectors', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_connectors.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/service/{serviceName}/servicemembers/{serviceMemberId}/connectors'} + + def get_service_member_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: Credential or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Credential or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_service_member_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Credential', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_service_member_credentials.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/credentials'} + + def delete_service_member_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_service_member_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 = {} + 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 and send request + request = self._client.delete(url, query_parameters) + response = self._client.send(request, header_parameters, 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_service_member_data.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/data'} + + def get_service_member_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: DataFreshnessDetail or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.DataFreshnessDetail + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_service_member_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('DataFreshnessDetail', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_service_member_data_freshness.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/datafreshness'} + + def get_service_member_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: ExportStatuses or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ExportStatuses or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_service_member_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('ExportStatuses', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_service_member_export_status.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/exportstatus'} + + def get_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: GlobalConfiguration or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.GlobalConfiguration + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('GlobalConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_global_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/globalconfiguration'} + + def get_metrics_for_service_member( + 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_for_service_member.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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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_for_service_member.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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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'} + + def check_tenant_whitelisting_for_feature( + 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: bool or ClientRawResponse if raw=true + :rtype: bool or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.check_tenant_whitelisting_for_feature.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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('bool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + check_tenant_whitelisting_for_feature.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" + From c142f3fc8f098185549f78d7350ad815397849da Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 1 May 2018 21:54:45 +0000 Subject: [PATCH 02/20] Generated from 06c7e623e952e481543fbdc85a2396e652e6e36f Updating ADhybridhealthService.json with feedback comments --- .../ad_hybrid_health_service.py | 123 +- .../adhybridhealthservice/models/__init__.py | 49 +- .../models/ad_hybrid_health_service_enums.py | 27 +- .../models/adds_service_member_paged.py | 27 + .../adhybridhealthservice/models/alert.py | 2 +- .../models/alert_feedbacks.py | 2 +- .../models/alert_feedbacks_py3.py | 2 +- ...{export_statuses_py3.py => alert_paged.py} | 19 +- .../adhybridhealthservice/models/alert_py3.py | 2 +- .../models/connector_connection_errors.py | 2 +- .../models/connector_connection_errors_py3.py | 2 +- .../models/connector_object_errors.py | 2 +- .../models/connector_object_errors_py3.py | 2 +- .../models/connectors.py | 2 +- .../models/connectors_py3.py | 2 +- .../adhybridhealthservice/models/dimension.py | 69 + .../models/{alerts.py => dimension_paged.py} | 19 +- .../models/dimension_py3.py | 69 + .../models/error_counts.py | 2 +- .../models/error_counts_py3.py | 2 +- .../models/error_report_users_entries.py | 2 +- .../models/error_report_users_entries_py3.py | 2 +- .../models/export_errors.py | 2 +- .../models/export_errors_py3.py | 2 +- ...vice_members.py => export_status_paged.py} | 20 +- .../adhybridhealthservice/models/hotfixes.py | 2 +- .../models/hotfixes_py3.py | 2 +- .../models/import_errors.py | 2 +- .../models/import_errors_py3.py | 2 +- .../models/{services.py => item_paged.py} | 19 +- .../adhybridhealthservice/models/items.py | 2 +- .../adhybridhealthservice/models/items_py3.py | 2 +- .../models/merged_export_errors.py | 2 +- .../models/merged_export_errors_py3.py | 2 +- .../models/metric_metadata_list.py | 28 - .../models/metric_metadata_list_py3.py | 28 - ...alerts_py3.py => metric_metadata_paged.py} | 19 +- .../models/module_configurations.py | 2 +- .../models/module_configurations_py3.py | 2 +- .../models/replication_summary_list.py | 2 +- .../models/replication_summary_list_py3.py | 2 +- .../models/run_profiles.py | 2 +- .../models/run_profiles_py3.py | 2 +- ...members_py3.py => service_member_paged.py} | 20 +- .../models/service_members.py | 28 - .../models/service_members_py3.py | 28 - .../{export_statuses.py => service_paged.py} | 19 +- .../models/services_py3.py | 28 - .../operations/__init__.py | 24 +- .../addomainservicemembers_operations.py | 111 +- .../addsservicemembers_operations.py | 93 +- .../operations/addsservices_operations.py | 707 ++++++-- .../operations/alerts_operations.py | 258 +-- .../operations/configuration_operations.py | 88 +- .../operations/dimensions_operations.py | 108 ++ .../operations/feedback_operations.py | 103 -- .../operations/forestsummary_operations.py | 97 -- .../operations/metricmetadata_operations.py | 243 --- .../operations/metrics_operations.py | 103 -- .../operations/premium_check_operations.py | 113 -- .../replicationstatus_operations.py | 97 -- .../replicationsummary_operations.py | 121 -- .../operations/servicemembers_operations.py | 788 +++++++++ .../operations/services_operations.py | 1525 ++++++----------- .../operations/servimembers_operations.py | 161 ++ 65 files changed, 2737 insertions(+), 2702 deletions(-) create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_paged.py rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{export_statuses_py3.py => alert_paged.py} (56%) create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension.py rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{alerts.py => dimension_paged.py} (54%) create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{adds_service_members.py => export_status_paged.py} (54%) rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{services.py => item_paged.py} (56%) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list_py3.py rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{alerts_py3.py => metric_metadata_paged.py} (53%) rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{adds_service_members_py3.py => service_member_paged.py} (53%) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members_py3.py rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{export_statuses.py => service_paged.py} (55%) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/dimensions_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/feedback_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/forestsummary_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metricmetadata_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metrics_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/premium_check_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationstatus_operations.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationsummary_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servimembers_operations.py 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 index 92858a6d3d8e..b61e392b125d 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py @@ -13,23 +13,16 @@ from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -import uuid from .operations.addsservices_operations import AddsservicesOperations from .operations.alerts_operations import AlertsOperations +from .operations.configuration_operations import ConfigurationOperations +from .operations.dimensions_operations import DimensionsOperations from .operations.addsservicemembers_operations import AddsservicemembersOperations from .operations.addomainservicemembers_operations import AddomainservicemembersOperations -from .operations.forestsummary_operations import ForestsummaryOperations -from .operations.metrics_operations import MetricsOperations -from .operations.metricmetadata_operations import MetricmetadataOperations -from .operations.replicationstatus_operations import ReplicationstatusOperations -from .operations.replicationsummary_operations import ReplicationsummaryOperations from .operations.operations import Operations -from .operations.configuration_operations import ConfigurationOperations from .operations.services_operations import ServicesOperations -from .operations.premium_check_operations import PremiumCheckOperations -from .operations.feedback_operations import FeedbackOperations +from .operations.servicemembers_operations import ServicemembersOperations +from .operations.servimembers_operations import ServimembersOperations from . import models @@ -70,30 +63,22 @@ class ADHybridHealthService(SDKClient): :vartype addsservices: 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 addsservicemembers: Addsservicemembers operations :vartype addsservicemembers: azure.mgmt.adhybridhealthservice.operations.AddsservicemembersOperations :ivar addomainservicemembers: Addomainservicemembers operations :vartype addomainservicemembers: azure.mgmt.adhybridhealthservice.operations.AddomainservicemembersOperations - :ivar forestsummary: Forestsummary operations - :vartype forestsummary: azure.mgmt.adhybridhealthservice.operations.ForestsummaryOperations - :ivar metrics: Metrics operations - :vartype metrics: azure.mgmt.adhybridhealthservice.operations.MetricsOperations - :ivar metricmetadata: Metricmetadata operations - :vartype metricmetadata: azure.mgmt.adhybridhealthservice.operations.MetricmetadataOperations - :ivar replicationstatus: Replicationstatus operations - :vartype replicationstatus: azure.mgmt.adhybridhealthservice.operations.ReplicationstatusOperations - :ivar replicationsummary: Replicationsummary operations - :vartype replicationsummary: azure.mgmt.adhybridhealthservice.operations.ReplicationsummaryOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.adhybridhealthservice.operations.Operations - :ivar configuration: Configuration operations - :vartype configuration: azure.mgmt.adhybridhealthservice.operations.ConfigurationOperations :ivar services: Services operations :vartype services: azure.mgmt.adhybridhealthservice.operations.ServicesOperations - :ivar premium_check: PremiumCheck operations - :vartype premium_check: azure.mgmt.adhybridhealthservice.operations.PremiumCheckOperations - :ivar feedback: Feedback operations - :vartype feedback: azure.mgmt.adhybridhealthservice.operations.FeedbackOperations + :ivar servicemembers: Servicemembers operations + :vartype servicemembers: azure.mgmt.adhybridhealthservice.operations.ServicemembersOperations + :ivar servimembers: Servimembers operations + :vartype servimembers: azure.mgmt.adhybridhealthservice.operations.ServimembersOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -116,91 +101,19 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.alerts = AlertsOperations( self._client, self.config, self._serialize, self._deserialize) - self.addsservicemembers = AddsservicemembersOperations( - self._client, self.config, self._serialize, self._deserialize) - self.addomainservicemembers = AddomainservicemembersOperations( - self._client, self.config, self._serialize, self._deserialize) - self.forestsummary = ForestsummaryOperations( - self._client, self.config, self._serialize, self._deserialize) - self.metrics = MetricsOperations( + self.configuration = ConfigurationOperations( self._client, self.config, self._serialize, self._deserialize) - self.metricmetadata = MetricmetadataOperations( + self.dimensions = DimensionsOperations( self._client, self.config, self._serialize, self._deserialize) - self.replicationstatus = ReplicationstatusOperations( + self.addsservicemembers = AddsservicemembersOperations( self._client, self.config, self._serialize, self._deserialize) - self.replicationsummary = ReplicationsummaryOperations( + self.addomainservicemembers = AddomainservicemembersOperations( self._client, self.config, self._serialize, self._deserialize) self.operations = Operations( self._client, self.config, self._serialize, self._deserialize) - self.configuration = ConfigurationOperations( - self._client, self.config, self._serialize, self._deserialize) self.services = ServicesOperations( self._client, self.config, self._serialize, self._deserialize) - self.premium_check = PremiumCheckOperations( + self.servicemembers = ServicemembersOperations( self._client, self.config, self._serialize, self._deserialize) - self.feedback = FeedbackOperations( + self.servimembers = ServimembersOperations( self._client, self.config, self._serialize, self._deserialize) - - def services_get_bad_pwd_user_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: ErrorReportUsersEntries or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntries or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.services_get_bad_pwd_user_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('ErrorReportUsersEntries', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - services_get_bad_pwd_user_report.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/reports/badpassword/details/user'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index ee15f9760abe..ec282a69fbf7 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -10,15 +10,14 @@ # -------------------------------------------------------------------------- try: + from .item_py3 import Item from .additional_information_py3 import AdditionalInformation from .adds_service_member_py3 import AddsServiceMember - from .adds_service_members_py3 import AddsServiceMembers from .agent_py3 import Agent from .help_link_py3 import HelpLink from .alert_py3 import Alert from .alert_feedback_py3 import AlertFeedback from .alert_feedbacks_py3 import AlertFeedbacks - from .alerts_py3 import Alerts from .associated_object_py3 import AssociatedObject from .value_delta_py3 import ValueDelta from .attribute_delta_py3 import AttributeDelta @@ -40,6 +39,7 @@ from .connector_object_errors_py3 import ConnectorObjectErrors from .credential_py3 import Credential from .data_freshness_detail_py3 import DataFreshnessDetail + from .dimension_py3 import Dimension from .display_py3 import Display from .error_count_py3 import ErrorCount from .error_counts_py3 import ErrorCounts @@ -51,7 +51,6 @@ from .error_report_users_entry_py3 import ErrorReportUsersEntry from .error_report_users_entries_py3 import ErrorReportUsersEntries from .export_status_py3 import ExportStatus - from .export_statuses_py3 import ExportStatuses from .extension_error_info_py3 import ExtensionErrorInfo from .forest_summary_py3 import ForestSummary from .global_configuration_py3 import GlobalConfiguration @@ -62,12 +61,10 @@ from .import_errors_py3 import ImportErrors from .inbound_replication_neighbor_py3 import InboundReplicationNeighbor from .inbound_replication_neighbors_py3 import InboundReplicationNeighbors - from .item_py3 import Item from .items_py3 import Items from .merged_export_errors_py3 import MergedExportErrors from .metric_group_py3 import MetricGroup from .metric_metadata_py3 import MetricMetadata - from .metric_metadata_list_py3 import MetricMetadataList from .metric_set_py3 import MetricSet from .metric_sets_py3 import MetricSets from .module_configuration_py3 import ModuleConfiguration @@ -82,23 +79,20 @@ from .service_properties_py3 import ServiceProperties from .service_py3 import Service from .service_configuration_py3 import ServiceConfiguration - from .services_py3 import Services from .service_member_properties_py3 import ServiceMemberProperties from .service_member_py3 import ServiceMember - from .service_members_py3 import ServiceMembers from .tabular_export_error_py3 import TabularExportError from .tenant_py3 import Tenant from .tenant_onboarding_details_py3 import TenantOnboardingDetails except (SyntaxError, ImportError): + from .item import Item from .additional_information import AdditionalInformation from .adds_service_member import AddsServiceMember - from .adds_service_members import AddsServiceMembers from .agent import Agent from .help_link import HelpLink from .alert import Alert from .alert_feedback import AlertFeedback from .alert_feedbacks import AlertFeedbacks - from .alerts import Alerts from .associated_object import AssociatedObject from .value_delta import ValueDelta from .attribute_delta import AttributeDelta @@ -120,6 +114,7 @@ from .connector_object_errors import ConnectorObjectErrors from .credential import Credential from .data_freshness_detail import DataFreshnessDetail + from .dimension import Dimension from .display import Display from .error_count import ErrorCount from .error_counts import ErrorCounts @@ -131,7 +126,6 @@ from .error_report_users_entry import ErrorReportUsersEntry from .error_report_users_entries import ErrorReportUsersEntries from .export_status import ExportStatus - from .export_statuses import ExportStatuses from .extension_error_info import ExtensionErrorInfo from .forest_summary import ForestSummary from .global_configuration import GlobalConfiguration @@ -142,12 +136,10 @@ from .import_errors import ImportErrors from .inbound_replication_neighbor import InboundReplicationNeighbor from .inbound_replication_neighbors import InboundReplicationNeighbors - from .item import Item from .items import Items from .merged_export_errors import MergedExportErrors from .metric_group import MetricGroup from .metric_metadata import MetricMetadata - from .metric_metadata_list import MetricMetadataList from .metric_set import MetricSet from .metric_sets import MetricSets from .module_configuration import ModuleConfiguration @@ -162,23 +154,30 @@ from .service_properties import ServiceProperties from .service import Service from .service_configuration import ServiceConfiguration - from .services import Services from .service_member_properties import ServiceMemberProperties from .service_member import ServiceMember - from .service_members import ServiceMembers from .tabular_export_error import TabularExportError from .tenant import Tenant from .tenant_onboarding_details import TenantOnboardingDetails +from .service_paged import ServicePaged +from .item_paged import ItemPaged +from .metric_metadata_paged import MetricMetadataPaged +from .alert_paged import AlertPaged +from .dimension_paged import DimensionPaged +from .adds_service_member_paged import AddsServiceMemberPaged +from .export_status_paged import ExportStatusPaged +from .service_member_paged import ServiceMemberPaged from .ad_hybrid_health_service_enums import ( Level, + State, ValueDeltaOperationType, AttributeDeltaOperationType, ValueType, AttributeMappingType, DeltaOperationType, RunStepOperationType, - AlgorithmStepType, HealthStatus, + AlgorithmStepType, PasswordOperationTypes, ServiceType, ServerDisabledReason, @@ -186,15 +185,14 @@ ) __all__ = [ + 'Item', 'AdditionalInformation', 'AddsServiceMember', - 'AddsServiceMembers', 'Agent', 'HelpLink', 'Alert', 'AlertFeedback', 'AlertFeedbacks', - 'Alerts', 'AssociatedObject', 'ValueDelta', 'AttributeDelta', @@ -216,6 +214,7 @@ 'ConnectorObjectErrors', 'Credential', 'DataFreshnessDetail', + 'Dimension', 'Display', 'ErrorCount', 'ErrorCounts', @@ -227,7 +226,6 @@ 'ErrorReportUsersEntry', 'ErrorReportUsersEntries', 'ExportStatus', - 'ExportStatuses', 'ExtensionErrorInfo', 'ForestSummary', 'GlobalConfiguration', @@ -238,12 +236,10 @@ 'ImportErrors', 'InboundReplicationNeighbor', 'InboundReplicationNeighbors', - 'Item', 'Items', 'MergedExportErrors', 'MetricGroup', 'MetricMetadata', - 'MetricMetadataList', 'MetricSet', 'MetricSets', 'ModuleConfiguration', @@ -258,22 +254,29 @@ 'ServiceProperties', 'Service', 'ServiceConfiguration', - 'Services', 'ServiceMemberProperties', 'ServiceMember', - 'ServiceMembers', 'TabularExportError', 'Tenant', 'TenantOnboardingDetails', + 'ServicePaged', + 'ItemPaged', + 'MetricMetadataPaged', + 'AlertPaged', + 'DimensionPaged', + 'AddsServiceMemberPaged', + 'ExportStatusPaged', + 'ServiceMemberPaged', 'Level', + 'State', 'ValueDeltaOperationType', 'AttributeDeltaOperationType', 'ValueType', 'AttributeMappingType', 'DeltaOperationType', 'RunStepOperationType', - 'AlgorithmStepType', 'HealthStatus', + 'AlgorithmStepType', 'PasswordOperationTypes', 'ServiceType', 'ServerDisabledReason', 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 index 5624425a7b8e..da6b66889a89 100644 --- 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 @@ -19,6 +19,15 @@ class Level(str, Enum): 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" @@ -79,6 +88,15 @@ class RunStepOperationType(str, Enum): full_import_reevaluate_rules = "FullImportReevaluateRules" +class HealthStatus(str, Enum): + + healthy = "Healthy" + warning = "Warning" + error = "Error" + not_monitored = "NotMonitored" + missing = "Missing" + + class AlgorithmStepType(str, Enum): undefined = "Undefined" @@ -96,15 +114,6 @@ class AlgorithmStepType(str, Enum): mv_object_type_change = "MvObjectTypeChange" -class HealthStatus(str, Enum): - - healthy = "Healthy" - warning = "Warning" - error = "Error" - not_monitored = "NotMonitored" - missing = "Missing" - - class PasswordOperationTypes(str, Enum): undefined = "Undefined" 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/alert.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py index 94e519052a3b..f6a981541027 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py @@ -24,7 +24,7 @@ class Alert(Model): multile resolution types. Possible values include: 'Active', 'ResolvedByPositiveResult', 'ResolvedManually', 'ResolvedByTimer', 'ResolvedByStateChange' - :type state: str or ~azure.mgmt.adhybridhealthservice.models.enum + :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. diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks.py index 516cf408c5c0..c6aa33e78dd2 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks.py @@ -15,7 +15,7 @@ class AlertFeedbacks(Model): """The list of alert feedback. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.AlertFeedback] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks_py3.py index 1cd5136140e2..dc737d878b74 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks_py3.py @@ -15,7 +15,7 @@ class AlertFeedbacks(Model): """The list of alert feedback. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.AlertFeedback] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_paged.py similarity index 56% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses_py3.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_paged.py index 500defd6eac9..a9185fe635af 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_paged.py @@ -9,20 +9,19 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from msrest.paging import Paged -class ExportStatuses(Model): - """The list of export statuses. - - :param value: - :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportStatus] +class AlertPaged(Paged): + """ + A paging container for iterating over a list of :class:`Alert ` object """ _attribute_map = { - 'value': {'key': 'value', 'type': '[ExportStatus]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Alert]'} } - def __init__(self, *, value=None, **kwargs) -> None: - super(ExportStatuses, self).__init__(**kwargs) - self.value = value + 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 index f182b9985712..25c7fbaf812d 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py @@ -24,7 +24,7 @@ class Alert(Model): multile resolution types. Possible values include: 'Active', 'ResolvedByPositiveResult', 'ResolvedManually', 'ResolvedByTimer', 'ResolvedByStateChange' - :type state: str or ~azure.mgmt.adhybridhealthservice.models.enum + :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. 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 index 1a772e25d5f7..365da9b3e344 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_connection_errors.py @@ -15,7 +15,7 @@ class ConnectorConnectionErrors(Model): """The list of connector connection errors. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ConnectorConnectionError] """ 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 index 1a71671e14da..ff631d65ec5b 100644 --- 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 @@ -15,7 +15,7 @@ class ConnectorConnectionErrors(Model): """The list of connector connection errors. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ConnectorConnectionError] """ 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 index 41c610c1d063..77beba70f0a9 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_object_errors.py @@ -15,7 +15,7 @@ class ConnectorObjectErrors(Model): """The list of connector object errors. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ConnectorObjectError] """ 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 index 373874c81e43..be2bf709d9e5 100644 --- 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 @@ -15,7 +15,7 @@ class ConnectorObjectErrors(Model): """The list of connector object errors. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ConnectorObjectError] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors.py index 8b60669dde63..a83089a48536 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors.py @@ -15,7 +15,7 @@ class Connectors(Model): """The list of connects for a service. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.Connector] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors_py3.py index 976133f782e4..2176a05396d7 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connectors_py3.py @@ -15,7 +15,7 @@ class Connectors(Model): """The list of connects for a service. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.Connector] """ 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..e53c115cee4a --- /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 status: The health status for the domain controller. Possible + values include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' + :type status: 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 = { + 'status': {'key': 'status', '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.status = kwargs.get('status', 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/alerts.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_paged.py similarity index 54% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alerts.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_paged.py index 291b92d1610e..1f18fa53897f 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alerts.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_paged.py @@ -9,20 +9,19 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from msrest.paging import Paged -class Alerts(Model): - """The list of alerts for a service. - - :param value: - :type value: list[~azure.mgmt.adhybridhealthservice.models.Alert] +class DimensionPaged(Paged): + """ + A paging container for iterating over a list of :class:`Dimension ` object """ _attribute_map = { - 'value': {'key': 'value', 'type': '[Alert]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Dimension]'} } - def __init__(self, **kwargs): - super(Alerts, self).__init__(**kwargs) - self.value = kwargs.get('value', None) + 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..52fd0f0d46b9 --- /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 status: The health status for the domain controller. Possible + values include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' + :type status: 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 = { + 'status': {'key': 'status', '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, *, status=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.status = status + 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/error_counts.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts.py index c0a6f95143d8..7933b5885408 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts.py @@ -15,7 +15,7 @@ class ErrorCounts(Model): """The list of error counts. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ErrorCount] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts_py3.py index 8644244da121..d950e87c81f1 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts_py3.py @@ -15,7 +15,7 @@ class ErrorCounts(Model): """The list of error counts. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ErrorCount] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries.py index 5ff9e37b1d22..adf1019c4ab5 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries.py @@ -15,7 +15,7 @@ class ErrorReportUsersEntries(Model): """The list of bad password log in attempt entries. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntry] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries_py3.py index 477298c86883..9be95a76dee8 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries_py3.py @@ -15,7 +15,7 @@ class ErrorReportUsersEntries(Model): """The list of bad password log in attempt entries. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntry] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors.py index 76e8957d1c17..8e19f1621018 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors.py @@ -15,7 +15,7 @@ class ExportErrors(Model): """The list of export errors. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportError] """ 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 index b10efda88e33..44890655a5d9 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_errors_py3.py @@ -15,7 +15,7 @@ class ExportErrors(Model): """The list of export errors. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportError] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_paged.py similarity index 54% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_paged.py index cbe6f2be8fc9..52e68d6cfbf6 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_status_paged.py @@ -9,21 +9,19 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from msrest.paging import Paged -class AddsServiceMembers(Model): - """The list of ADDS service members. - - :param value: - :type value: - list[~azure.mgmt.adhybridhealthservice.models.AddsServiceMember] +class ExportStatusPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExportStatus ` object """ _attribute_map = { - 'value': {'key': 'value', 'type': '[AddsServiceMember]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExportStatus]'} } - def __init__(self, **kwargs): - super(AddsServiceMembers, self).__init__(**kwargs) - self.value = kwargs.get('value', None) + def __init__(self, *args, **kwargs): + + super(ExportStatusPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes.py index fda5c0658c56..ed610e0b3417 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes.py @@ -15,7 +15,7 @@ class Hotfixes(Model): """The list of hotfixes installed in the server. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.Hotfix] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes_py3.py index 3ee0e79e5b4b..a48b635db659 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/hotfixes_py3.py @@ -15,7 +15,7 @@ class Hotfixes(Model): """The list of hotfixes installed in the server. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.Hotfix] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors.py index 6236bfef1878..7f687411a2c4 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors.py @@ -15,7 +15,7 @@ class ImportErrors(Model): """The list of import errors. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ImportError] """ 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 index 7928aaef73a8..b7e8bffc89e1 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/import_errors_py3.py @@ -15,7 +15,7 @@ class ImportErrors(Model): """The list of import errors. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ImportError] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_paged.py similarity index 56% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_paged.py index 3e45910333ad..8970f99e86b8 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/item_paged.py @@ -9,20 +9,19 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from msrest.paging import Paged -class Services(Model): - """The list of services for a given onboarded tenant. - - :param value: - :type value: list[~azure.mgmt.adhybridhealthservice.models.Service] +class ItemPaged(Paged): + """ + A paging container for iterating over a list of :class:`Item ` object """ _attribute_map = { - 'value': {'key': 'value', 'type': '[Service]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Item]'} } - def __init__(self, **kwargs): - super(Services, self).__init__(**kwargs) - self.value = kwargs.get('value', None) + def __init__(self, *args, **kwargs): + + super(ItemPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items.py index 621d59876300..c5d0338250a6 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items.py @@ -15,7 +15,7 @@ class Items(Model): """The list of key value properties. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.Item] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items_py3.py index bae44dcdfd2d..1539a77e3a16 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items_py3.py @@ -15,7 +15,7 @@ class Items(Model): """The list of key value properties. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.Item] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors.py index a40851fd66e4..030265969e37 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors.py @@ -15,7 +15,7 @@ class MergedExportErrors(Model): """The list of export errors. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportError] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors_py3.py index 82cdfa882077..b506e95ec50b 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors_py3.py @@ -15,7 +15,7 @@ class MergedExportErrors(Model): """The list of export errors. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportError] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list.py deleted file mode 100644 index 1fb070e5e57b..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list.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 MetricMetadataList(Model): - """The list of metric metadata. - - :param value: - :type value: list[~azure.mgmt.adhybridhealthservice.models.MetricMetadata] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[MetricMetadata]'}, - } - - def __init__(self, **kwargs): - super(MetricMetadataList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list_py3.py deleted file mode 100644 index 6c2eeda5d2ac..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_list_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 MetricMetadataList(Model): - """The list of metric metadata. - - :param value: - :type value: list[~azure.mgmt.adhybridhealthservice.models.MetricMetadata] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[MetricMetadata]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(MetricMetadataList, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alerts_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_paged.py similarity index 53% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alerts_py3.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_paged.py index f7ef30c258ab..95908771fe42 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alerts_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_paged.py @@ -9,20 +9,19 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from msrest.paging import Paged -class Alerts(Model): - """The list of alerts for a service. - - :param value: - :type value: list[~azure.mgmt.adhybridhealthservice.models.Alert] +class MetricMetadataPaged(Paged): + """ + A paging container for iterating over a list of :class:`MetricMetadata ` object """ _attribute_map = { - 'value': {'key': 'value', 'type': '[Alert]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[MetricMetadata]'} } - def __init__(self, *, value=None, **kwargs) -> None: - super(Alerts, self).__init__(**kwargs) - self.value = value + def __init__(self, *args, **kwargs): + + super(MetricMetadataPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations.py index 2c30f9b11270..48e85ab3f099 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations.py @@ -15,7 +15,7 @@ class ModuleConfigurations(Model): """The list of module configurations. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ModuleConfiguration] """ 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 index 5fda2dea51c9..bc8872ff609c 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/module_configurations_py3.py @@ -15,7 +15,7 @@ class ModuleConfigurations(Model): """The list of module configurations. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ModuleConfiguration] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list.py index f1e29488dca2..034735ba4b5c 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list.py @@ -15,7 +15,7 @@ class ReplicationSummaryList(Model): """The list of replication summary details. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ReplicationSummary] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list_py3.py index c59c0a30c0be..9a00dd333632 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_list_py3.py @@ -15,7 +15,7 @@ class ReplicationSummaryList(Model): """The list of replication summary details. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.ReplicationSummary] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles.py index ee1be81ab0f7..75f70427d75d 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles.py @@ -15,7 +15,7 @@ class RunProfiles(Model): """The list of run profiles. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.RunProfile] """ 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 index 73c59011f2d9..1e040d9fc474 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_profiles_py3.py @@ -15,7 +15,7 @@ class RunProfiles(Model): """The list of run profiles. - :param value: + :param value: The value returned by the operation. :type value: list[~azure.mgmt.adhybridhealthservice.models.RunProfile] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_paged.py similarity index 53% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members_py3.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_paged.py index 5d7bb61c7671..93c6c6fd2f3d 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_members_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_paged.py @@ -9,21 +9,19 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from msrest.paging import Paged -class AddsServiceMembers(Model): - """The list of ADDS service members. - - :param value: - :type value: - list[~azure.mgmt.adhybridhealthservice.models.AddsServiceMember] +class ServiceMemberPaged(Paged): + """ + A paging container for iterating over a list of :class:`ServiceMember ` object """ _attribute_map = { - 'value': {'key': 'value', 'type': '[AddsServiceMember]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ServiceMember]'} } - def __init__(self, *, value=None, **kwargs) -> None: - super(AddsServiceMembers, self).__init__(**kwargs) - self.value = value + def __init__(self, *args, **kwargs): + + super(ServiceMemberPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members.py deleted file mode 100644 index c4c81b66f2b6..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members.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 ServiceMembers(Model): - """The list of servers that are onboarded for a given service. - - :param value: - :type value: list[~azure.mgmt.adhybridhealthservice.models.ServiceMember] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ServiceMember]'}, - } - - def __init__(self, **kwargs): - super(ServiceMembers, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members_py3.py deleted file mode 100644 index 636aaa119a67..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_members_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 ServiceMembers(Model): - """The list of servers that are onboarded for a given service. - - :param value: - :type value: list[~azure.mgmt.adhybridhealthservice.models.ServiceMember] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ServiceMember]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ServiceMembers, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_paged.py similarity index 55% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_paged.py index 3d197768ea8b..d8afe3dfdac8 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_statuses.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_paged.py @@ -9,20 +9,19 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from msrest.paging import Paged -class ExportStatuses(Model): - """The list of export statuses. - - :param value: - :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportStatus] +class ServicePaged(Paged): + """ + A paging container for iterating over a list of :class:`Service ` object """ _attribute_map = { - 'value': {'key': 'value', 'type': '[ExportStatus]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Service]'} } - def __init__(self, **kwargs): - super(ExportStatuses, self).__init__(**kwargs) - self.value = kwargs.get('value', None) + def __init__(self, *args, **kwargs): + + super(ServicePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services_py3.py deleted file mode 100644 index fc6132fa6b69..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/services_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 Services(Model): - """The list of services for a given onboarded tenant. - - :param value: - :type value: list[~azure.mgmt.adhybridhealthservice.models.Service] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Service]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(Services, self).__init__(**kwargs) - 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 index aaa91d733d14..ed1c8d16cc5c 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py @@ -11,32 +11,24 @@ from .addsservices_operations import AddsservicesOperations from .alerts_operations import AlertsOperations +from .configuration_operations import ConfigurationOperations +from .dimensions_operations import DimensionsOperations from .addsservicemembers_operations import AddsservicemembersOperations from .addomainservicemembers_operations import AddomainservicemembersOperations -from .forestsummary_operations import ForestsummaryOperations -from .metrics_operations import MetricsOperations -from .metricmetadata_operations import MetricmetadataOperations -from .replicationstatus_operations import ReplicationstatusOperations -from .replicationsummary_operations import ReplicationsummaryOperations from .operations import Operations -from .configuration_operations import ConfigurationOperations from .services_operations import ServicesOperations -from .premium_check_operations import PremiumCheckOperations -from .feedback_operations import FeedbackOperations +from .servicemembers_operations import ServicemembersOperations +from .servimembers_operations import ServimembersOperations __all__ = [ 'AddsservicesOperations', 'AlertsOperations', + 'ConfigurationOperations', + 'DimensionsOperations', 'AddsservicemembersOperations', 'AddomainservicemembersOperations', - 'ForestsummaryOperations', - 'MetricsOperations', - 'MetricmetadataOperations', - 'ReplicationstatusOperations', - 'ReplicationsummaryOperations', 'Operations', - 'ConfigurationOperations', 'ServicesOperations', - 'PremiumCheckOperations', - 'FeedbackOperations', + 'ServicemembersOperations', + 'ServimembersOperations', ] diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addomainservicemembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addomainservicemembers_operations.py index a03d1ef944f9..a3b9f4b6a131 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addomainservicemembers_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addomainservicemembers_operations.py @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self.config = config - def get_service_members_v2( + def list( self, service_name, is_groupby_site, filter=None, query=None, next_partition_key=None, next_row_key=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. @@ -63,60 +63,69 @@ def get_service_members_v2( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: AddsServiceMembers or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.AddsServiceMembers or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of AddsServiceMember + :rtype: + ~azure.mgmt.adhybridhealthservice.models.AddsServiceMemberPaged[~azure.mgmt.adhybridhealthservice.models.AddsServiceMember] :raises: :class:`CloudError` """ - # Construct URL - url = self.get_service_members_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 = {} - 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') - if next_partition_key is not None: - query_parameters['nextPartitionKey'] = self._serialize.query("next_partition_key", next_partition_key, 'str') - if next_row_key is not None: - query_parameters['nextRowKey'] = self._serialize.query("next_row_key", 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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('AddsServiceMembers', response) + 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') + if next_partition_key is not None: + query_parameters['nextPartitionKey'] = self._serialize.query("next_partition_key", next_partition_key, 'str') + if next_row_key is not None: + query_parameters['nextRowKey'] = self._serialize.query("next_row_key", 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.AddsServiceMemberPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized - get_service_members_v2.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/addomainservicemembers'} + list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/addomainservicemembers'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservicemembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservicemembers_operations.py index d90fcf1c2f78..fe1048ffd20d 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservicemembers_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservicemembers_operations.py @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self.config = config - def get_service_members( + 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 @@ -52,51 +52,60 @@ def get_service_members( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: AddsServiceMembers or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.AddsServiceMembers or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of AddsServiceMember + :rtype: + ~azure.mgmt.adhybridhealthservice.models.AddsServiceMemberPaged[~azure.mgmt.adhybridhealthservice.models.AddsServiceMember] :raises: :class:`CloudError` """ - # Construct URL - url = self.get_service_members.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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('AddsServiceMembers', response) + 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.AddsServiceMemberPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized - get_service_members.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/addsservicemembers'} + list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/addsservicemembers'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py index 70d4b27dad78..794ee64642a7 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self.config = config - def get_services( + 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. @@ -61,58 +61,67 @@ def get_services( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: Services or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Services or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of Service + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ServicePaged[~azure.mgmt.adhybridhealthservice.models.Service] :raises: :class:`CloudError` """ - # Construct URL - url = self.get_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('Services', response) + 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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.ServicePaged(internal_paging, self._deserialize.dependencies) if raw: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.ServicePaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized - get_services.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices'} + list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices'} - def postaddsservices( + def add( self, service, custom_headers=None, raw=False, **operation_config): """Onboards a service for a given tenant in Azure Active Directory Connect Health. @@ -130,7 +139,7 @@ def postaddsservices( :raises: :class:`CloudError` """ # Construct URL - url = self.postaddsservices.metadata['url'] + url = self.add.metadata['url'] # Construct parameters query_parameters = {} @@ -169,9 +178,9 @@ def postaddsservices( return client_raw_response return deserialized - postaddsservices.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices'} + add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices'} - def get_service( + 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 @@ -190,7 +199,7 @@ def get_service( :raises: :class:`CloudError` """ # Construct URL - url = self.get_service.metadata['url'] + url = self.get.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -229,9 +238,9 @@ def get_service( return client_raw_response return deserialized - get_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} + get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} - def delete_service( + 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. @@ -254,7 +263,7 @@ def delete_service( :raises: :class:`CloudError` """ # Construct URL - url = self.delete_service.metadata['url'] + url = self.delete.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -288,9 +297,9 @@ def delete_service( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - delete_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} + delete.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} - def update_service( + def update( self, service_name, service, custom_headers=None, raw=False, **operation_config): """Updates an Active Directory Domain Service properties of an onboarded service. @@ -311,7 +320,7 @@ def update_service( :raises: :class:`CloudError` """ # Construct URL - url = self.update_service.metadata['url'] + url = self.update.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -354,28 +363,27 @@ def update_service( return client_raw_response return deserialized - update_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} + update.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} - def get_configuration( - self, service_name, grouping=None, custom_headers=None, raw=False, **operation_config): - """Gets the service configurations. + def getforest_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 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: Tenant or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Tenant or + :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_configuration.metadata['url'] + url = self.getforest_summary.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -383,8 +391,7 @@ def get_configuration( # Construct parameters query_parameters = {} - if grouping is not None: - query_parameters['grouping'] = self._serialize.query("grouping", grouping, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} @@ -400,7 +407,7 @@ def get_configuration( request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, stream=False, **operation_config) - if response.status_code not in [200, 400]: + if response.status_code not in [200]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp @@ -408,37 +415,262 @@ def get_configuration( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('Tenant', response) + deserialized = self._deserialize('ForestSummary', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized - get_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/configuration'} + getforest_summary.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/forestsummary'} - def get_dimensions( - self, service_name, dimension, custom_headers=None, raw=False, **operation_config): - """Gets the dimensions for a given dimension type in a server. + 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 dimension: The dimension type. - :type dimension: 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: list or ClientRawResponse if raw=true - :rtype: list[str] or ~msrest.pipeline.ClientRawResponse + :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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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_dimensions.metadata['url'] + url = self.get_metric_metadata.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str'), - 'dimension': self._serialize.url("dimension", dimension, 'str') + 'metricName': self._serialize.url("metric_name", metric_name, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -468,18 +700,18 @@ def get_dimensions( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('[str]', response) + deserialized = self._deserialize('MetricMetadata', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized - get_dimensions.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/dimensions/{dimension}'} + get_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}'} - def get_adds_service_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 + def list_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. @@ -488,18 +720,24 @@ def get_adds_service_metrics_sum( :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: Items or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Items or + :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_adds_service_metrics_sum.metadata['url'] + url = self.list_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'), @@ -509,6 +747,12 @@ def get_adds_service_metrics_sum( # 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 @@ -533,32 +777,93 @@ def get_adds_service_metrics_sum( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('Items', response) + deserialized = self._deserialize('MetricSets', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized - get_adds_service_metrics_sum.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}/sum'} + list_metric_metadata_for_group.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} - def get_services_premium_check( - 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. + def get_replication_status( + 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 filter: The service property filter to apply. + :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_replication_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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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_replication_status.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationstatus'} + + def get_replication_summary( + self, service_name, is_groupby_site, query, next_partition_key, filter=None, next_row_key=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 next_partition_key: The next partition key to query for. + :type next_partition_key: str + :param filter: The server 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 next_row_key: The next row key to query for. + :type next_row_key: str :param take_count: The take count , which specifies the number of elements that can be returned from a sequence. :type take_count: int @@ -567,22 +872,27 @@ def get_services_premium_check( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: Services or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Services or + :return: ReplicationSummary or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ReplicationSummary or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ # Construct URL - url = self.get_services_premium_check.metadata['url'] + url = self.get_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') - 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') + 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("next_partition_key", next_partition_key, 'str') + if next_row_key is not None: + query_parameters['nextRowKey'] = self._serialize.query("next_row_key", 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') @@ -609,11 +919,184 @@ def get_services_premium_check( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('Services', response) + deserialized = self._deserialize('ReplicationSummary', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized - get_services_premium_check.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/premiumCheck'} + get_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 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_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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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 Service + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ServicePaged[~azure.mgmt.adhybridhealthservice.models.Service] + :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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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.ServicePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServicePaged(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/alerts_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/alerts_operations.py index 325dfdb185c6..cade95912850 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/alerts_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/alerts_operations.py @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self.config = config - def get_adds_services_alerts( + 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. @@ -56,210 +56,66 @@ def get_adds_services_alerts( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: Alerts or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Alerts or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of Alert + :rtype: + ~azure.mgmt.adhybridhealthservice.models.AlertPaged[~azure.mgmt.adhybridhealthservice.models.Alert] :raises: :class:`CloudError` """ - # Construct URL - url = self.get_adds_services_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('Alerts', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_adds_services_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/alerts'} - - def get_adds_service_member_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 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: Alerts or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Alerts or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_adds_service_member_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('Alerts', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_adds_service_member_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}/alerts'} - - def get_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: Alerts or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Alerts or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('Alerts', response) + 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.AlertPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized - get_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/alerts'} + 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 index ca25efc873ff..085a22482fd6 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py @@ -37,7 +37,77 @@ def __init__(self, client, config, serializer, deserializer): self.config = config - def post_tenant_configuration( + 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200, 400]: + 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. @@ -52,7 +122,7 @@ def post_tenant_configuration( :raises: :class:`CloudError` """ # Construct URL - url = self.post_tenant_configuration.metadata['url'] + url = self.add.metadata['url'] # Construct parameters query_parameters = {} @@ -87,9 +157,9 @@ def post_tenant_configuration( return client_raw_response return deserialized - post_tenant_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} + add.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} - def get_tenant( + def get( self, custom_headers=None, raw=False, **operation_config): """Gets the details of a tenant onboarded to Azure Active Directory Connect Health. @@ -105,7 +175,7 @@ def get_tenant( :raises: :class:`CloudError` """ # Construct URL - url = self.get_tenant.metadata['url'] + url = self.get.metadata['url'] # Construct parameters query_parameters = {} @@ -140,9 +210,9 @@ def get_tenant( return client_raw_response return deserialized - get_tenant.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} + get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} - def patch_tenant( + def update( self, tenant, custom_headers=None, raw=False, **operation_config): """Updates tenant properties for tenants onboarded to Azure Active Directory Connect Health. @@ -161,7 +231,7 @@ def patch_tenant( :raises: :class:`CloudError` """ # Construct URL - url = self.patch_tenant.metadata['url'] + url = self.update.metadata['url'] # Construct parameters query_parameters = {} @@ -200,4 +270,4 @@ def patch_tenant( return client_raw_response return deserialized - patch_tenant.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/configuration'} + 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..de7514c4de63 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/dimensions_operations.py @@ -0,0 +1,108 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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/feedback_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/feedback_operations.py deleted file mode 100644 index 1681714921c6..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/feedback_operations.py +++ /dev/null @@ -1,103 +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 FeedbackOperations(object): - """FeedbackOperations 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 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['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) - response = self._client.send( - request, header_parameters, body_content, 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'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/forestsummary_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/forestsummary_operations.py deleted file mode 100644 index 54d2424eeec0..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/forestsummary_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 ForestsummaryOperations(object): - """ForestsummaryOperations 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_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['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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metricmetadata_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metricmetadata_operations.py deleted file mode 100644 index 5313d96fe72b..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metricmetadata_operations.py +++ /dev/null @@ -1,243 +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 MetricmetadataOperations(object): - """MetricmetadataOperations 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_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: MetricMetadataList or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricMetadataList 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') - } - 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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('MetricMetadataList', 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'} - - def get_adds_service_single_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_adds_service_single_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['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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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_adds_service_single_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}'} - - def get_metrics_for_service( - 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_metrics_for_service.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['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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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_for_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metrics_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metrics_operations.py deleted file mode 100644 index 3786d8226da8..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/metrics_operations.py +++ /dev/null @@ -1,103 +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 MetricsOperations(object): - """MetricsOperations 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_adds_service_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: Items or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Items or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_adds_service_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('Items', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_adds_service_metrics_average.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}/average'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/premium_check_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/premium_check_operations.py deleted file mode 100644 index f4769cdeadea..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/premium_check_operations.py +++ /dev/null @@ -1,113 +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 PremiumCheckOperations(object): - """PremiumCheckOperations 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_services_premium_check( - 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: Services or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Services or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_services_premium_check.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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('Services', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_services_premium_check.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/premiumCheck'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationstatus_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationstatus_operations.py deleted file mode 100644 index 735f4393fbf6..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationstatus_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 ReplicationstatusOperations(object): - """ReplicationstatusOperations 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_replication_status( - 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_replication_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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_replication_status.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationstatus'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationsummary_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationsummary_operations.py deleted file mode 100644 index 05cf26d3c1f2..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/replicationsummary_operations.py +++ /dev/null @@ -1,121 +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 ReplicationsummaryOperations(object): - """ReplicationsummaryOperations 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_replication_summaryv2( - self, service_name, is_groupby_site, query, next_partition_key, filter=None, next_row_key=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 next_partition_key: The next partition key to query for. - :type next_partition_key: str - :param filter: The server property filter to apply. - :type filter: str - :param next_row_key: The next row key to query for. - :type next_row_key: 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: ReplicationSummary or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ReplicationSummary or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_replication_summaryv2.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("next_partition_key", next_partition_key, 'str') - if next_row_key is not None: - query_parameters['nextRowKey'] = self._serialize.query("next_row_key", 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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('ReplicationSummary', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_replication_summaryv2.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationsummary'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py new file mode 100644 index 000000000000..dc6278578013 --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py @@ -0,0 +1,788 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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['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) + response = self._client.send( + request, header_parameters, body_content, 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 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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: Connectors or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Connectors or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # 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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Connectors', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + 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: Credential or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Credential or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # 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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('Credential', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + 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 = {} + 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 and send request + request = self._client.delete(url, query_parameters) + response = self._client.send(request, header_parameters, 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: DataFreshnessDetail or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.DataFreshnessDetail + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # 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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('DataFreshnessDetail', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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: GlobalConfiguration or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.GlobalConfiguration + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # 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') + + # 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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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('GlobalConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_global_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/globalconfiguration'} + + def list_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.list_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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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 + list_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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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/services_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py index f96f4b138425..df6101f98360 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self.config = config - def get_services( + 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. @@ -61,58 +61,67 @@ def get_services( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: Services or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Services or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of Service + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ServicePaged[~azure.mgmt.adhybridhealthservice.models.Service] :raises: :class:`CloudError` """ - # Construct URL - url = self.get_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('Services', response) + 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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.ServicePaged(internal_paging, self._deserialize.dependencies) if raw: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.ServicePaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized - get_services.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services'} + list.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services'} - def post_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. @@ -130,7 +139,7 @@ def post_services( :raises: :class:`CloudError` """ # Construct URL - url = self.post_services.metadata['url'] + url = self.add.metadata['url'] # Construct parameters query_parameters = {} @@ -169,9 +178,93 @@ def post_services( return client_raw_response return deserialized - post_services.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services'} + 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 Service + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ServicePaged[~azure.mgmt.adhybridhealthservice.models.Service] + :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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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.ServicePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServicePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_premium.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/premiumCheck'} - def get_service( + 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. @@ -189,7 +282,7 @@ def get_service( :raises: :class:`CloudError` """ # Construct URL - url = self.get_service.metadata['url'] + url = self.get.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -228,9 +321,9 @@ def get_service( return client_raw_response return deserialized - get_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} + get.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} - def delete_service( + 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. @@ -253,7 +346,7 @@ def delete_service( :raises: :class:`CloudError` """ # Construct URL - url = self.delete_service.metadata['url'] + url = self.delete.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -287,9 +380,9 @@ def delete_service( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - delete_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} + delete.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} - def update_service( + def update( self, service_name, service, custom_headers=None, raw=False, **operation_config): """Updates the service properties of an onboarded service. @@ -309,7 +402,7 @@ def update_service( :raises: :class:`CloudError` """ # Construct URL - url = self.update_service.metadata['url'] + url = self.update.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -352,9 +445,92 @@ def update_service( return client_raw_response return deserialized - update_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}'} + 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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 check_service_feature_availibility( + 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. @@ -372,7 +548,7 @@ def check_service_feature_availibility( :raises: :class:`CloudError` """ # Construct URL - url = self.check_service_feature_availibility.metadata['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') @@ -412,9 +588,9 @@ def check_service_feature_availibility( return client_raw_response return deserialized - check_service_feature_availibility.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/checkServiceFeatureAvailibility/{featureName}'} + get_feature_availibility.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/checkServiceFeatureAvailibility/{featureName}'} - def get_latest_aad_export_error_count( + def list_export_errors( self, service_name, custom_headers=None, raw=False, **operation_config): """Gets the count of latest AAD export errors. @@ -431,7 +607,7 @@ def get_latest_aad_export_error_count( :raises: :class:`CloudError` """ # Construct URL - url = self.get_latest_aad_export_error_count.metadata['url'] + url = self.list_export_errors.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -470,9 +646,9 @@ def get_latest_aad_export_error_count( return client_raw_response return deserialized - get_latest_aad_export_error_count.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exporterrors/counts'} + list_export_errors.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exporterrors/counts'} - def get_latest_aad_export_errors_v2( + def list_export_errors_v2( self, service_name, error_bucket, next_link=None, custom_headers=None, raw=False, **operation_config): """Gets the categorized export errors. @@ -493,7 +669,7 @@ def get_latest_aad_export_errors_v2( :raises: :class:`CloudError` """ # Construct URL - url = self.get_latest_aad_export_errors_v2.metadata['url'] + url = self.list_export_errors_v2.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -535,9 +711,9 @@ def get_latest_aad_export_errors_v2( return client_raw_response return deserialized - get_latest_aad_export_errors_v2.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exporterrors/listV2'} + list_export_errors_v2.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exporterrors/listV2'} - def get_export_status( + def list_export_status( self, service_name, custom_headers=None, raw=False, **operation_config): """Gets the export status. @@ -548,13 +724,83 @@ def get_export_status( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: ExportStatuses or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ExportStatuses or + :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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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.get_export_status.metadata['url'] + url = self.add_alert_feedback.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -574,9 +820,13 @@ def get_export_status( 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.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -586,16 +836,16 @@ def get_export_status( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('ExportStatuses', response) + deserialized = self._deserialize('AlertFeedback', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized - get_export_status.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exportstatus'} + add_alert_feedback.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/feedbacktype/alerts/feedback'} - def get_peralertfeedback( + 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. @@ -614,7 +864,7 @@ def get_peralertfeedback( :raises: :class:`CloudError` """ # Construct URL - url = self.get_peralertfeedback.metadata['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') @@ -654,9 +904,9 @@ def get_peralertfeedback( return client_raw_response return deserialized - get_peralertfeedback.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/feedbacktype/alerts/{shortName}/alertfeedback'} + list_alert_feedback.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/feedbacktype/alerts/{shortName}/alertfeedback'} - def get_metrics_average( + 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. @@ -672,56 +922,65 @@ def get_metrics_average( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: Items or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Items or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of Item + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] :raises: :class:`CloudError` """ - # Construct URL - url = self.get_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('Items', response) + 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized - get_metrics_average.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}/average'} + list_metrics_average.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}/average'} - def get_metrics_sum( + 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. @@ -737,56 +996,65 @@ def get_metrics_sum( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: Items or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Items or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of Item + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] :raises: :class:`CloudError` """ - # Construct URL - url = self.get_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('Items', response) + 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized - get_metrics_sum.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}/sum'} + list_metrics_sum.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}/sum'} - def get_metric_metadata( + 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. @@ -802,58 +1070,67 @@ def get_metric_metadata( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: MetricMetadataList or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.MetricMetadataList or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of MetricMetadata + :rtype: + ~azure.mgmt.adhybridhealthservice.models.MetricMetadataPaged[~azure.mgmt.adhybridhealthservice.models.MetricMetadata] :raises: :class:`CloudError` """ - # Construct URL - url = self.get_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('MetricMetadataList', response) + 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.MetricMetadataPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized - get_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata'} + list_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata'} - def get_single_metric_metadata( + def get_metric_metadata( self, service_name, metric_name, custom_headers=None, raw=False, **operation_config): """Gets the service related metrics information. @@ -872,7 +1149,7 @@ def get_single_metric_metadata( :raises: :class:`CloudError` """ # Construct URL - url = self.get_single_metric_metadata.metadata['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') @@ -912,9 +1189,9 @@ def get_single_metric_metadata( return client_raw_response return deserialized - get_single_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata/{metricName}'} + get_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata/{metricName}'} - def get_metrics_for_service( + def list_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. @@ -942,7 +1219,7 @@ def get_metrics_for_service( :raises: :class:`CloudError` """ # Construct URL - url = self.get_metrics_for_service.metadata['url'] + url = self.list_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'), @@ -989,9 +1266,9 @@ def get_metrics_for_service( return client_raw_response return deserialized - get_metrics_for_service.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} + list_metric_metadata_for_group.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} - def update_service_monitoring_configuration( + def update_monitoring_configuration( self, service_name, key=None, value=None, custom_headers=None, raw=False, **operation_config): """Updates the service level monitoring configuration. @@ -1013,7 +1290,7 @@ def update_service_monitoring_configuration( configuration_setting = models.Item(key=key, value=value) # Construct URL - url = self.update_service_monitoring_configuration.metadata['url'] + url = self.update_monitoring_configuration.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -1049,9 +1326,9 @@ def update_service_monitoring_configuration( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - update_service_monitoring_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/monitoringconfiguration'} + update_monitoring_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/monitoringconfiguration'} - def get_service_monitoring_configurations( + def list_monitoring_configurations( self, service_name, custom_headers=None, raw=False, **operation_config): """Gets the service level monitoring configurations. @@ -1068,7 +1345,7 @@ def get_service_monitoring_configurations( :raises: :class:`CloudError` """ # Construct URL - url = self.get_service_monitoring_configurations.metadata['url'] + url = self.list_monitoring_configurations.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -1107,33 +1384,30 @@ def get_service_monitoring_configurations( return client_raw_response return deserialized - get_service_monitoring_configurations.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/monitoringconfigurations'} + list_monitoring_configurations.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/monitoringconfigurations'} - def get_service_members( - 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. + 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 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 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: ServiceMembers or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceMembers or + :return: ErrorReportUsersEntries or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntries or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ # Construct URL - url = self.get_service_members.metadata['url'] + url = self.list_user_bad_password_report.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -1141,787 +1415,8 @@ def get_service_members( # 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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('ServiceMembers', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_service_members.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers'} - - def add_service_members( - 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_service_members.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(service_member, 'ServiceMember') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, 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_service_members.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers'} - - def get_service_member( - 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_service_member.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['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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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_service_member.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}'} - - def delete_service_member( - 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_service_member.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 = {} - 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 and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, 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_service_member.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}'} - - def get_service_member_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: Alerts or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Alerts or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_service_member_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('Alerts', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_service_member_alerts.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/alerts'} - - def get_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: Connectors or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Connectors or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('Connectors', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_connectors.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/service/{serviceName}/servicemembers/{serviceMemberId}/connectors'} - - def get_service_member_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: Credential or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Credential or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_service_member_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('Credential', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_service_member_credentials.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/credentials'} - - def delete_service_member_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_service_member_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 = {} - 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 and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, 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_service_member_data.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/data'} - - def get_service_member_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: DataFreshnessDetail or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.DataFreshnessDetail - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_service_member_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('DataFreshnessDetail', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_service_member_data_freshness.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/datafreshness'} - - def get_service_member_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: ExportStatuses or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ExportStatuses or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_service_member_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('ExportStatuses', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_service_member_export_status.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/exportstatus'} - - def get_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: GlobalConfiguration or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.GlobalConfiguration - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get_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') - - # 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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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('GlobalConfiguration', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_global_configuration.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/globalconfiguration'} - - def get_metrics_for_service_member( - 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_for_service_member.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['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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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_for_service_member.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 = {} + 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') # Construct headers @@ -1946,16 +1441,16 @@ def get_service_configuration( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('ServiceConfiguration', response) + deserialized = self._deserialize('ErrorReportUsersEntries', 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'} + list_user_bad_password_report.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/reports/badpassword/details/user'} - def check_tenant_whitelisting_for_feature( + 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. @@ -1974,7 +1469,7 @@ def check_tenant_whitelisting_for_feature( :raises: :class:`CloudError` """ # Construct URL - url = self.check_tenant_whitelisting_for_feature.metadata['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') @@ -2014,4 +1509,4 @@ def check_tenant_whitelisting_for_feature( return client_raw_response return deserialized - check_tenant_whitelisting_for_feature.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/TenantWhitelisting/{featureName}'} + get_tenant_whitelisting.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/TenantWhitelisting/{featureName}'} diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servimembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servimembers_operations.py new file mode 100644 index 000000000000..6b3868154c7f --- /dev/null +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servimembers_operations.py @@ -0,0 +1,161 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# 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 ServimembersOperations(object): + """ServimembersOperations 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, 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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 = {} + 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 and send request + request = self._client.delete(url, query_parameters) + response = self._client.send(request, header_parameters, 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}/servicemembers/{serviceMemberId}'} From f7c9cebd6094900b80cfe4f28358cb5d1d0b3b32 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 2 May 2018 00:20:02 +0000 Subject: [PATCH 03/20] Generated from e7ce7447dbddef0f1d6ab32520d10a3d95f17f2a Incremental update to fix build related issue --- .../adhybridhealthservice/models/__init__.py | 5 +- .../models/operation_list_response.py | 48 -------------- .../models/operation_list_response_py3.py | 48 -------------- .../models/operation_paged.py | 27 ++++++++ .../operations/addsservices_operations.py | 6 +- .../operations/operations.py | 65 +++++++++++-------- 6 files changed, 69 insertions(+), 130 deletions(-) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response_py3.py create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_paged.py diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index ec282a69fbf7..83bbc19972d3 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -70,7 +70,6 @@ from .module_configuration_py3 import ModuleConfiguration from .module_configurations_py3 import ModuleConfigurations from .operation_py3 import Operation - from .operation_list_response_py3 import OperationListResponse from .password_management_settings_py3 import PasswordManagementSettings from .password_hash_sync_configuration_py3 import PasswordHashSyncConfiguration from .replication_status_py3 import ReplicationStatus @@ -145,7 +144,6 @@ from .module_configuration import ModuleConfiguration from .module_configurations import ModuleConfigurations from .operation import Operation - from .operation_list_response import OperationListResponse from .password_management_settings import PasswordManagementSettings from .password_hash_sync_configuration import PasswordHashSyncConfiguration from .replication_status import ReplicationStatus @@ -165,6 +163,7 @@ from .alert_paged import AlertPaged from .dimension_paged import DimensionPaged from .adds_service_member_paged import AddsServiceMemberPaged +from .operation_paged import OperationPaged from .export_status_paged import ExportStatusPaged from .service_member_paged import ServiceMemberPaged from .ad_hybrid_health_service_enums import ( @@ -245,7 +244,6 @@ 'ModuleConfiguration', 'ModuleConfigurations', 'Operation', - 'OperationListResponse', 'PasswordManagementSettings', 'PasswordHashSyncConfiguration', 'ReplicationStatus', @@ -265,6 +263,7 @@ 'AlertPaged', 'DimensionPaged', 'AddsServiceMemberPaged', + 'OperationPaged', 'ExportStatusPaged', 'ServiceMemberPaged', 'Level', diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response.py deleted file mode 100644 index c6d7e17b19a0..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response.py +++ /dev/null @@ -1,48 +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 OperationListResponse(Model): - """Lists all of the available REST API operations for Azure Active Directory - Connect Health. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar next_link: URL to get the next set of operation list results if - there are any. - :vartype next_link: str - :ivar value: List of operations supported by the - Microsoft.ADHybridhHealthService resource provider. - :vartype value: list[~azure.mgmt.adhybridhealthservice.models.Operation] - :param continuation_token: The continuation token to get next set of - operations. - :type continuation_token: str - """ - - _validation = { - 'next_link': {'readonly': True}, - 'value': {'readonly': True}, - } - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[Operation]'}, - 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationListResponse, self).__init__(**kwargs) - self.next_link = None - self.value = None - self.continuation_token = kwargs.get('continuation_token', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response_py3.py deleted file mode 100644 index 98626b6cccbc..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/operation_list_response_py3.py +++ /dev/null @@ -1,48 +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 OperationListResponse(Model): - """Lists all of the available REST API operations for Azure Active Directory - Connect Health. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar next_link: URL to get the next set of operation list results if - there are any. - :vartype next_link: str - :ivar value: List of operations supported by the - Microsoft.ADHybridhHealthService resource provider. - :vartype value: list[~azure.mgmt.adhybridhealthservice.models.Operation] - :param continuation_token: The continuation token to get next set of - operations. - :type continuation_token: str - """ - - _validation = { - 'next_link': {'readonly': True}, - 'value': {'readonly': True}, - } - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[Operation]'}, - 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, - } - - def __init__(self, *, continuation_token: str=None, **kwargs) -> None: - super(OperationListResponse, self).__init__(**kwargs) - self.next_link = None - self.value = None - self.continuation_token = continuation_token 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/operations/addsservices_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py index 794ee64642a7..9f2299889d14 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py @@ -709,7 +709,7 @@ def get_metric_metadata( return deserialized get_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}'} - def list_metric_metadata_for_group( + 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. @@ -737,7 +737,7 @@ def list_metric_metadata_for_group( :raises: :class:`CloudError` """ # Construct URL - url = self.list_metric_metadata_for_group.metadata['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'), @@ -784,7 +784,7 @@ def list_metric_metadata_for_group( return client_raw_response return deserialized - list_metric_metadata_for_group.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} + get_metric_metadata_for_group.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} def get_replication_status( self, service_name, custom_headers=None, raw=False, **operation_config): diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py index e3efb026190d..8e060738526d 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/operations.py @@ -46,44 +46,53 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: OperationListResponse or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.OperationListResponse - or ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of Operation + :rtype: + ~azure.mgmt.adhybridhealthservice.models.OperationPaged[~azure.mgmt.adhybridhealthservice.models.Operation] :raises: :class:`CloudError` """ - # Construct URL - url = self.list.metadata['url'] + def internal_paging(next_link=None, raw=False): - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if not next_link: + # Construct URL + url = self.list.metadata['url'] - # 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 parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + else: + url = next_link + query_parameters = {} - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + # 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') - deserialized = None + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) - if response.status_code == 200: - deserialized = self._deserialize('OperationListResponse', response) + 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized From 122b7f6c3dd02122d397dc7a26c9fdcc8e6b5d42 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 2 May 2018 00:27:49 +0000 Subject: [PATCH 04/20] Generated from 82198cb0eaa205579f1f688c44426069f6ba614d Incremental Fix to identify build break issue --- .../adhybridhealthservice/models/__init__.py | 5 +- ...export_errors.py => export_error_paged.py} | 19 +++-- .../models/merged_export_errors_py3.py | 28 ------- .../operations/services_operations.py | 79 +++++++++++-------- 4 files changed, 55 insertions(+), 76 deletions(-) rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{merged_export_errors.py => export_error_paged.py} (54%) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors_py3.py diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index 83bbc19972d3..8cfc47b8cc80 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -62,7 +62,6 @@ from .inbound_replication_neighbor_py3 import InboundReplicationNeighbor from .inbound_replication_neighbors_py3 import InboundReplicationNeighbors from .items_py3 import Items - from .merged_export_errors_py3 import MergedExportErrors from .metric_group_py3 import MetricGroup from .metric_metadata_py3 import MetricMetadata from .metric_set_py3 import MetricSet @@ -136,7 +135,6 @@ from .inbound_replication_neighbor import InboundReplicationNeighbor from .inbound_replication_neighbors import InboundReplicationNeighbors from .items import Items - from .merged_export_errors import MergedExportErrors from .metric_group import MetricGroup from .metric_metadata import MetricMetadata from .metric_set import MetricSet @@ -164,6 +162,7 @@ from .dimension_paged import DimensionPaged from .adds_service_member_paged import AddsServiceMemberPaged from .operation_paged import OperationPaged +from .export_error_paged import ExportErrorPaged from .export_status_paged import ExportStatusPaged from .service_member_paged import ServiceMemberPaged from .ad_hybrid_health_service_enums import ( @@ -236,7 +235,6 @@ 'InboundReplicationNeighbor', 'InboundReplicationNeighbors', 'Items', - 'MergedExportErrors', 'MetricGroup', 'MetricMetadata', 'MetricSet', @@ -264,6 +262,7 @@ 'DimensionPaged', 'AddsServiceMemberPaged', 'OperationPaged', + 'ExportErrorPaged', 'ExportStatusPaged', 'ServiceMemberPaged', 'Level', diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_paged.py similarity index 54% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_paged.py index 030265969e37..01b2b22a8c06 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_paged.py @@ -9,20 +9,19 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from msrest.paging import Paged -class MergedExportErrors(Model): - """The list of export errors. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.ExportError] +class ExportErrorPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExportError ` object """ _attribute_map = { - 'value': {'key': 'value', 'type': '[ExportError]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExportError]'} } - def __init__(self, **kwargs): - super(MergedExportErrors, self).__init__(**kwargs) - self.value = kwargs.get('value', None) + def __init__(self, *args, **kwargs): + + super(ExportErrorPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_errors_py3.py deleted file mode 100644 index b506e95ec50b..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_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 MergedExportErrors(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(MergedExportErrors, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py index df6101f98360..a6b78bb14528 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py @@ -663,51 +663,60 @@ def list_export_errors_v2( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: MergedExportErrors or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.MergedExportErrors or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of ExportError + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ExportErrorPaged[~azure.mgmt.adhybridhealthservice.models.ExportError] :raises: :class:`CloudError` """ - # 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) + def internal_paging(next_link=None, raw=False): - # Construct parameters - query_parameters = {} - query_parameters['errorBucket'] = self._serialize.query("error_bucket", error_bucket, 'str') - if next_link is not None: - query_parameters['nextLink'] = self._serialize.query("next_link", next_link, 'str') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + 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 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 parameters + query_parameters = {} + query_parameters['errorBucket'] = self._serialize.query("error_bucket", error_bucket, 'str') + if next_link is not None: + query_parameters['nextLink'] = self._serialize.query("next_link", next_link, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + else: + url = next_link + query_parameters = {} - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + # 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') - deserialized = None + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) - if response.status_code == 200: - deserialized = self._deserialize('MergedExportErrors', response) + 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.ExportErrorPaged(internal_paging, self._deserialize.dependencies) if raw: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.ExportErrorPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized From dd61657e3d6d3051425e8f1bcae1ddbcebd8a81d Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 2 May 2018 00:44:23 +0000 Subject: [PATCH 05/20] Generated from 8300f2533477582feddd01284de4dcac79b5876d Incremental change to identify build break --- .../adhybridhealthservice/models/__init__.py | 13 +- ...t_feedbacks.py => alert_feedback_paged.py} | 19 +- .../models/error_report_users_entries.py | 29 --- .../models/error_report_users_entries_py3.py | 29 --- ...3.py => error_report_users_entry_paged.py} | 19 +- .../adhybridhealthservice/models/items.py | 28 --- .../adhybridhealthservice/models/items_py3.py | 28 --- .../operations/services_operations.py | 230 ++++++++++-------- 8 files changed, 150 insertions(+), 245 deletions(-) rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{alert_feedbacks.py => alert_feedback_paged.py} (53%) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries_py3.py rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{alert_feedbacks_py3.py => error_report_users_entry_paged.py} (51%) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items_py3.py diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index 8cfc47b8cc80..c0b60b4460fb 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -17,7 +17,6 @@ from .help_link_py3 import HelpLink from .alert_py3 import Alert from .alert_feedback_py3 import AlertFeedback - from .alert_feedbacks_py3 import AlertFeedbacks from .associated_object_py3 import AssociatedObject from .value_delta_py3 import ValueDelta from .attribute_delta_py3 import AttributeDelta @@ -49,7 +48,6 @@ from .export_error_py3 import ExportError from .export_errors_py3 import ExportErrors from .error_report_users_entry_py3 import ErrorReportUsersEntry - from .error_report_users_entries_py3 import ErrorReportUsersEntries from .export_status_py3 import ExportStatus from .extension_error_info_py3 import ExtensionErrorInfo from .forest_summary_py3 import ForestSummary @@ -61,7 +59,6 @@ from .import_errors_py3 import ImportErrors from .inbound_replication_neighbor_py3 import InboundReplicationNeighbor from .inbound_replication_neighbors_py3 import InboundReplicationNeighbors - from .items_py3 import Items from .metric_group_py3 import MetricGroup from .metric_metadata_py3 import MetricMetadata from .metric_set_py3 import MetricSet @@ -90,7 +87,6 @@ from .help_link import HelpLink from .alert import Alert from .alert_feedback import AlertFeedback - from .alert_feedbacks import AlertFeedbacks from .associated_object import AssociatedObject from .value_delta import ValueDelta from .attribute_delta import AttributeDelta @@ -122,7 +118,6 @@ from .export_error import ExportError from .export_errors import ExportErrors from .error_report_users_entry import ErrorReportUsersEntry - from .error_report_users_entries import ErrorReportUsersEntries from .export_status import ExportStatus from .extension_error_info import ExtensionErrorInfo from .forest_summary import ForestSummary @@ -134,7 +129,6 @@ from .import_errors import ImportErrors from .inbound_replication_neighbor import InboundReplicationNeighbor from .inbound_replication_neighbors import InboundReplicationNeighbors - from .items import Items from .metric_group import MetricGroup from .metric_metadata import MetricMetadata from .metric_set import MetricSet @@ -164,6 +158,8 @@ from .operation_paged import OperationPaged from .export_error_paged import ExportErrorPaged from .export_status_paged import ExportStatusPaged +from .alert_feedback_paged import AlertFeedbackPaged +from .error_report_users_entry_paged import ErrorReportUsersEntryPaged from .service_member_paged import ServiceMemberPaged from .ad_hybrid_health_service_enums import ( Level, @@ -190,7 +186,6 @@ 'HelpLink', 'Alert', 'AlertFeedback', - 'AlertFeedbacks', 'AssociatedObject', 'ValueDelta', 'AttributeDelta', @@ -222,7 +217,6 @@ 'ExportError', 'ExportErrors', 'ErrorReportUsersEntry', - 'ErrorReportUsersEntries', 'ExportStatus', 'ExtensionErrorInfo', 'ForestSummary', @@ -234,7 +228,6 @@ 'ImportErrors', 'InboundReplicationNeighbor', 'InboundReplicationNeighbors', - 'Items', 'MetricGroup', 'MetricMetadata', 'MetricSet', @@ -264,6 +257,8 @@ 'OperationPaged', 'ExportErrorPaged', 'ExportStatusPaged', + 'AlertFeedbackPaged', + 'ErrorReportUsersEntryPaged', 'ServiceMemberPaged', 'Level', 'State', diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_paged.py similarity index 53% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_paged.py index c6aa33e78dd2..5c252b506778 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedback_paged.py @@ -9,20 +9,19 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from msrest.paging import Paged -class AlertFeedbacks(Model): - """The list of alert feedback. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.AlertFeedback] +class AlertFeedbackPaged(Paged): + """ + A paging container for iterating over a list of :class:`AlertFeedback ` object """ _attribute_map = { - 'value': {'key': 'value', 'type': '[AlertFeedback]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[AlertFeedback]'} } - def __init__(self, **kwargs): - super(AlertFeedbacks, self).__init__(**kwargs) - self.value = kwargs.get('value', None) + def __init__(self, *args, **kwargs): + + super(AlertFeedbackPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries.py deleted file mode 100644 index adf1019c4ab5..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries.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 ErrorReportUsersEntries(Model): - """The list of bad password log in attempt entries. - - :param value: The value returned by the operation. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntry] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ErrorReportUsersEntry]'}, - } - - def __init__(self, **kwargs): - super(ErrorReportUsersEntries, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries_py3.py deleted file mode 100644 index 9be95a76dee8..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entries_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 ErrorReportUsersEntries(Model): - """The list of bad password log in attempt entries. - - :param value: The value returned by the operation. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntry] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ErrorReportUsersEntry]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ErrorReportUsersEntries, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_paged.py similarity index 51% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks_py3.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_paged.py index dc737d878b74..dc13ce9b5c45 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_feedbacks_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_paged.py @@ -9,20 +9,19 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from msrest.paging import Paged -class AlertFeedbacks(Model): - """The list of alert feedback. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.AlertFeedback] +class ErrorReportUsersEntryPaged(Paged): + """ + A paging container for iterating over a list of :class:`ErrorReportUsersEntry ` object """ _attribute_map = { - 'value': {'key': 'value', 'type': '[AlertFeedback]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ErrorReportUsersEntry]'} } - def __init__(self, *, value=None, **kwargs) -> None: - super(AlertFeedbacks, self).__init__(**kwargs) - self.value = value + def __init__(self, *args, **kwargs): + + super(ErrorReportUsersEntryPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items.py deleted file mode 100644 index c5d0338250a6..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items.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 Items(Model): - """The list of key value properties. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.Item] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Item]'}, - } - - def __init__(self, **kwargs): - super(Items, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items_py3.py deleted file mode 100644 index 1539a77e3a16..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/items_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 Items(Model): - """The list of key value properties. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.Item] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Item]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(Items, self).__init__(**kwargs) - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py index a6b78bb14528..a205772b542e 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py @@ -867,49 +867,58 @@ def list_alert_feedback( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: AlertFeedbacks or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.AlertFeedbacks or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of AlertFeedback + :rtype: + ~azure.mgmt.adhybridhealthservice.models.AlertFeedbackPaged[~azure.mgmt.adhybridhealthservice.models.AlertFeedback] :raises: :class:`CloudError` """ - # 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) + def internal_paging(next_link=None, raw=False): - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + 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 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 parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + else: + url = next_link + query_parameters = {} - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + # 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') - deserialized = None + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) - if response.status_code == 200: - deserialized = self._deserialize('AlertFeedbacks', response) + 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.AlertFeedbackPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized @@ -1200,7 +1209,7 @@ def get_metric_metadata( return deserialized get_metric_metadata.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata/{metricName}'} - def list_metric_metadata_for_group( + 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. @@ -1228,7 +1237,7 @@ def list_metric_metadata_for_group( :raises: :class:`CloudError` """ # Construct URL - url = self.list_metric_metadata_for_group.metadata['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'), @@ -1275,7 +1284,7 @@ def list_metric_metadata_for_group( return client_raw_response return deserialized - list_metric_metadata_for_group.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metricmetadata/{metricName}/groups/{groupName}'} + 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): @@ -1348,48 +1357,57 @@ def list_monitoring_configurations( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: Items or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Items or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of Item + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] :raises: :class:`CloudError` """ - # 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) + def internal_paging(next_link=None, raw=False): - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + 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 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 parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + else: + url = next_link + query_parameters = {} - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + # 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') - deserialized = None + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) - if response.status_code == 200: - deserialized = self._deserialize('Items', response) + 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized @@ -1409,51 +1427,59 @@ def list_user_bad_password_report( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: ErrorReportUsersEntries or ClientRawResponse if raw=true + :return: An iterator like instance of ErrorReportUsersEntry :rtype: - ~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntries or - ~msrest.pipeline.ClientRawResponse + ~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntryPaged[~azure.mgmt.adhybridhealthservice.models.ErrorReportUsersEntry] :raises: :class:`CloudError` """ - # 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) + def internal_paging(next_link=None, raw=False): - # 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') + 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 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 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') - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + else: + url = next_link + query_parameters = {} - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + # 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') - deserialized = None + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) - if response.status_code == 200: - deserialized = self._deserialize('ErrorReportUsersEntries', response) + 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.ErrorReportUsersEntryPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized From 1ac160113abfe7f35224b90b987b8af6175df3b6 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 2 May 2018 02:31:08 +0000 Subject: [PATCH 06/20] Generated from 8dfc6b2438d2993379780253f6318f7552ebba67 Update ADHybridHealthService.json --- .../adhybridhealthservice/models/__init__.py | 2 + .../models/credential_paged.py | 27 +++++++ .../operations/servicemembers_operations.py | 79 +++++++++++-------- 3 files changed, 73 insertions(+), 35 deletions(-) create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/credential_paged.py diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index c0b60b4460fb..4d358de0096e 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -161,6 +161,7 @@ from .alert_feedback_paged import AlertFeedbackPaged from .error_report_users_entry_paged import ErrorReportUsersEntryPaged from .service_member_paged import ServiceMemberPaged +from .credential_paged import CredentialPaged from .ad_hybrid_health_service_enums import ( Level, State, @@ -260,6 +261,7 @@ 'AlertFeedbackPaged', 'ErrorReportUsersEntryPaged', 'ServiceMemberPaged', + 'CredentialPaged', 'Level', 'State', 'ValueDeltaOperationType', 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/operations/servicemembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py index dc6278578013..a0659bb2dc01 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py @@ -349,51 +349,60 @@ def list_credentials( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: Credential or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Credential or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of Credential + :rtype: + ~azure.mgmt.adhybridhealthservice.models.CredentialPaged[~azure.mgmt.adhybridhealthservice.models.Credential] :raises: :class:`CloudError` """ - # 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) + def internal_paging(next_link=None, raw=False): - # 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') + 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 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 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') - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + else: + url = next_link + query_parameters = {} - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + # 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') - deserialized = None + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) - if response.status_code == 200: - deserialized = self._deserialize('Credential', response) + 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.CredentialPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized From 03c9c39a622c962a78ef4e9b1aebc33c5ef0a804 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 2 May 2018 02:38:51 +0000 Subject: [PATCH 07/20] Generated from 3a575b76a30d715122b53597babba3aaa3325c08 Update ADHybridHealthService.json --- .../adhybridhealthservice/models/__init__.py | 2 + .../models/global_configuration_paged.py | 27 +++++++ .../operations/servicemembers_operations.py | 75 +++++++++++-------- 3 files changed, 71 insertions(+), 33 deletions(-) create mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_paged.py diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index 4d358de0096e..76299dbd4027 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -162,6 +162,7 @@ from .error_report_users_entry_paged import ErrorReportUsersEntryPaged from .service_member_paged import ServiceMemberPaged from .credential_paged import CredentialPaged +from .global_configuration_paged import GlobalConfigurationPaged from .ad_hybrid_health_service_enums import ( Level, State, @@ -262,6 +263,7 @@ 'ErrorReportUsersEntryPaged', 'ServiceMemberPaged', 'CredentialPaged', + 'GlobalConfigurationPaged', 'Level', 'State', 'ValueDeltaOperationType', 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/operations/servicemembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py index a0659bb2dc01..658b23b86fc4 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py @@ -607,49 +607,58 @@ def list_global_configuration( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: GlobalConfiguration or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.GlobalConfiguration - or ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of GlobalConfiguration + :rtype: + ~azure.mgmt.adhybridhealthservice.models.GlobalConfigurationPaged[~azure.mgmt.adhybridhealthservice.models.GlobalConfiguration] :raises: :class:`CloudError` """ - # 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) + def internal_paging(next_link=None, raw=False): - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + 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 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 parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + else: + url = next_link + query_parameters = {} - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + # 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') - deserialized = None + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) - if response.status_code == 200: - deserialized = self._deserialize('GlobalConfiguration', response) + 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.GlobalConfigurationPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized From 8e72d31cd4b18e4338ff3238952327eb66839db2 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 2 May 2018 02:45:35 +0000 Subject: [PATCH 08/20] Generated from 524aff24431e66050381befd54ef7ecc9f128a11 Update ADHybridHealthService.json --- .../adhybridhealthservice/models/__init__.py | 5 +- .../{error_counts.py => error_count_paged.py} | 19 +++-- .../models/error_counts_py3.py | 28 ------- .../models/inbound_replication_neighbors.py | 2 +- .../inbound_replication_neighbors_py3.py | 2 +- .../operations/services_operations.py | 73 +++++++++++-------- 6 files changed, 54 insertions(+), 75 deletions(-) rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{error_counts.py => error_count_paged.py} (54%) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts_py3.py diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index 76299dbd4027..0484efd75372 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -41,7 +41,6 @@ from .dimension_py3 import Dimension from .display_py3 import Display from .error_count_py3 import ErrorCount - from .error_counts_py3 import ErrorCounts from .object_with_sync_error_py3 import ObjectWithSyncError from .merged_export_error_py3 import MergedExportError from .error_detail_py3 import ErrorDetail @@ -111,7 +110,6 @@ from .dimension import Dimension from .display import Display from .error_count import ErrorCount - from .error_counts import ErrorCounts from .object_with_sync_error import ObjectWithSyncError from .merged_export_error import MergedExportError from .error_detail import ErrorDetail @@ -156,6 +154,7 @@ from .dimension_paged import DimensionPaged from .adds_service_member_paged import AddsServiceMemberPaged from .operation_paged import OperationPaged +from .error_count_paged import ErrorCountPaged from .export_error_paged import ExportErrorPaged from .export_status_paged import ExportStatusPaged from .alert_feedback_paged import AlertFeedbackPaged @@ -212,7 +211,6 @@ 'Dimension', 'Display', 'ErrorCount', - 'ErrorCounts', 'ObjectWithSyncError', 'MergedExportError', 'ErrorDetail', @@ -257,6 +255,7 @@ 'DimensionPaged', 'AddsServiceMemberPaged', 'OperationPaged', + 'ErrorCountPaged', 'ExportErrorPaged', 'ExportStatusPaged', 'AlertFeedbackPaged', diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_paged.py similarity index 54% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_paged.py index 7933b5885408..603405010ccc 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_paged.py @@ -9,20 +9,19 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from msrest.paging import Paged -class ErrorCounts(Model): - """The list of error counts. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.ErrorCount] +class ErrorCountPaged(Paged): + """ + A paging container for iterating over a list of :class:`ErrorCount ` object """ _attribute_map = { - 'value': {'key': 'value', 'type': '[ErrorCount]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ErrorCount]'} } - def __init__(self, **kwargs): - super(ErrorCounts, self).__init__(**kwargs) - self.value = kwargs.get('value', None) + def __init__(self, *args, **kwargs): + + super(ErrorCountPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts_py3.py deleted file mode 100644 index d950e87c81f1..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_counts_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 ErrorCounts(Model): - """The list of error counts. - - :param value: The value returned by the operation. - :type value: list[~azure.mgmt.adhybridhealthservice.models.ErrorCount] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ErrorCount]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ErrorCounts, self).__init__(**kwargs) - self.value = value 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 index 5cfd8d579369..0903cab0a5e3 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbors.py @@ -15,7 +15,7 @@ class InboundReplicationNeighbors(Model): """The list of replication summary for the domain controller inbound neighbor. - :param value: + :param value: The details of inbound replication neighbors. :type value: list[~azure.mgmt.adhybridhealthservice.models.InboundReplicationNeighbor] """ 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 index bdf6d97a5689..161651d7ffe7 100644 --- 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 @@ -15,7 +15,7 @@ class InboundReplicationNeighbors(Model): """The list of replication summary for the domain controller inbound neighbor. - :param value: + :param value: The details of inbound replication neighbors. :type value: list[~azure.mgmt.adhybridhealthservice.models.InboundReplicationNeighbor] """ diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py index a205772b542e..f79e2aee7771 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py @@ -601,48 +601,57 @@ def list_export_errors( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: ErrorCounts or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ErrorCounts or - ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of ErrorCount + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ErrorCountPaged[~azure.mgmt.adhybridhealthservice.models.ErrorCount] :raises: :class:`CloudError` """ - # 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) + def internal_paging(next_link=None, raw=False): - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + 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 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 parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + else: + url = next_link + query_parameters = {} - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + # 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') - deserialized = None + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) - if response.status_code == 200: - deserialized = self._deserialize('ErrorCounts', response) + 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.ErrorCountPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized From f652c67466c77bbcc671299a02da382e7651d90c Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 2 May 2018 03:01:39 +0000 Subject: [PATCH 09/20] Generated from 26036b4fb816def3eb398986c54b8da0b64d476d Update ADHybridHealthService.json --- .../adhybridhealthservice/models/__init__.py | 3 - .../models/data_freshness_detail.py | 33 -------- .../models/data_freshness_detail_py3.py | 33 -------- .../operations/servicemembers_operations.py | 75 +++++++++++-------- 4 files changed, 42 insertions(+), 102 deletions(-) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail_py3.py diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index 0484efd75372..831d4c951a4a 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -37,7 +37,6 @@ from .connector_object_error_py3 import ConnectorObjectError from .connector_object_errors_py3 import ConnectorObjectErrors from .credential_py3 import Credential - from .data_freshness_detail_py3 import DataFreshnessDetail from .dimension_py3 import Dimension from .display_py3 import Display from .error_count_py3 import ErrorCount @@ -106,7 +105,6 @@ from .connector_object_error import ConnectorObjectError from .connector_object_errors import ConnectorObjectErrors from .credential import Credential - from .data_freshness_detail import DataFreshnessDetail from .dimension import Dimension from .display import Display from .error_count import ErrorCount @@ -207,7 +205,6 @@ 'ConnectorObjectError', 'ConnectorObjectErrors', 'Credential', - 'DataFreshnessDetail', 'Dimension', 'Display', 'ErrorCount', diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail.py deleted file mode 100644 index 83925ca474c1..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail.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 DataFreshnessDetail(Model): - """The data freshness details for the server. - - :param service_id: The service Id to whom the server is onboarded to. - :type service_id: str - :param last_data_upload_time: The date time , in UTC, when data was last - uploaded by the server. - :type last_data_upload_time: datetime - """ - - _attribute_map = { - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'last_data_upload_time': {'key': 'lastDataUploadTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(DataFreshnessDetail, self).__init__(**kwargs) - self.service_id = kwargs.get('service_id', None) - self.last_data_upload_time = kwargs.get('last_data_upload_time', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail_py3.py deleted file mode 100644 index cf90e7cb39c1..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/data_freshness_detail_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 DataFreshnessDetail(Model): - """The data freshness details for the server. - - :param service_id: The service Id to whom the server is onboarded to. - :type service_id: str - :param last_data_upload_time: The date time , in UTC, when data was last - uploaded by the server. - :type last_data_upload_time: datetime - """ - - _attribute_map = { - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'last_data_upload_time': {'key': 'lastDataUploadTime', 'type': 'iso-8601'}, - } - - def __init__(self, *, service_id: str=None, last_data_upload_time=None, **kwargs) -> None: - super(DataFreshnessDetail, self).__init__(**kwargs) - self.service_id = service_id - self.last_data_upload_time = last_data_upload_time diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py index 658b23b86fc4..e1eb816f0b90 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py @@ -476,49 +476,58 @@ def list_data_freshness( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: DataFreshnessDetail or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.DataFreshnessDetail - or ~msrest.pipeline.ClientRawResponse + :return: An iterator like instance of Item + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ItemPaged[~azure.mgmt.adhybridhealthservice.models.Item] :raises: :class:`CloudError` """ - # 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) + def internal_paging(next_link=None, raw=False): - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + 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 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 parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + else: + url = next_link + query_parameters = {} - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + # 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') - deserialized = None + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) - if response.status_code == 200: - deserialized = self._deserialize('DataFreshnessDetail', response) + 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: - client_raw_response = ClientRawResponse(deserialized, response) + header_dict = {} + client_raw_response = models.ItemPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized From 3efdd61faee2fd5b2dc35f8e59718fc1fee13592 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 2 May 2018 19:22:39 +0000 Subject: [PATCH 10/20] Generated from 6b0610fb8c2de9d19cee37c9e3055c2ef8642228 Addressing review comments --- .../ad_hybrid_health_service.py | 37 ++-- .../operations/__init__.py | 18 +- ...> ad_domain_service_members_operations.py} | 4 +- ...s.py => adds_servicemembers_operations.py} | 4 +- ...rations.py => adds_services_operations.py} | 10 +- ...tions.py => service_members_operations.py} | 127 +++++++++++++- .../operations/services_operations.py | 6 +- .../operations/servimembers_operations.py | 161 ------------------ 8 files changed, 159 insertions(+), 208 deletions(-) rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/{addomainservicemembers_operations.py => ad_domain_service_members_operations.py} (98%) rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/{addsservicemembers_operations.py => adds_servicemembers_operations.py} (98%) rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/{addsservices_operations.py => adds_services_operations.py} (99%) rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/{servicemembers_operations.py => service_members_operations.py} (86%) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servimembers_operations.py 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 index b61e392b125d..9b75716744d8 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py @@ -13,16 +13,15 @@ from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION -from .operations.addsservices_operations import AddsservicesOperations +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.addsservicemembers_operations import AddsservicemembersOperations -from .operations.addomainservicemembers_operations import AddomainservicemembersOperations +from .operations.adds_servicemembers_operations import AddsServicemembersOperations +from .operations.ad_domain_service_members_operations import AdDomainServiceMembersOperations from .operations.operations import Operations from .operations.services_operations import ServicesOperations -from .operations.servicemembers_operations import ServicemembersOperations -from .operations.servimembers_operations import ServimembersOperations +from .operations.service_members_operations import ServiceMembersOperations from . import models @@ -59,26 +58,24 @@ class ADHybridHealthService(SDKClient): :ivar config: Configuration for client. :vartype config: ADHybridHealthServiceConfiguration - :ivar addsservices: Addsservices operations - :vartype addsservices: azure.mgmt.adhybridhealthservice.operations.AddsservicesOperations + :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 addsservicemembers: Addsservicemembers operations - :vartype addsservicemembers: azure.mgmt.adhybridhealthservice.operations.AddsservicemembersOperations - :ivar addomainservicemembers: Addomainservicemembers operations - :vartype addomainservicemembers: azure.mgmt.adhybridhealthservice.operations.AddomainservicemembersOperations + :ivar adds_servicemembers: AddsServicemembers operations + :vartype adds_servicemembers: azure.mgmt.adhybridhealthservice.operations.AddsServicemembersOperations + :ivar ad_domain_service_members: AdDomainServiceMembers operations + :vartype ad_domain_service_members: azure.mgmt.adhybridhealthservice.operations.AdDomainServiceMembersOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.adhybridhealthservice.operations.Operations :ivar services: Services operations :vartype services: azure.mgmt.adhybridhealthservice.operations.ServicesOperations - :ivar servicemembers: Servicemembers operations - :vartype servicemembers: azure.mgmt.adhybridhealthservice.operations.ServicemembersOperations - :ivar servimembers: Servimembers operations - :vartype servimembers: azure.mgmt.adhybridhealthservice.operations.ServimembersOperations + :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 @@ -97,7 +94,7 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - self.addsservices = AddsservicesOperations( + self.adds_services = AddsServicesOperations( self._client, self.config, self._serialize, self._deserialize) self.alerts = AlertsOperations( self._client, self.config, self._serialize, self._deserialize) @@ -105,15 +102,13 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.dimensions = DimensionsOperations( self._client, self.config, self._serialize, self._deserialize) - self.addsservicemembers = AddsservicemembersOperations( + self.adds_servicemembers = AddsServicemembersOperations( self._client, self.config, self._serialize, self._deserialize) - self.addomainservicemembers = AddomainservicemembersOperations( + self.ad_domain_service_members = AdDomainServiceMembersOperations( self._client, self.config, self._serialize, self._deserialize) self.operations = Operations( self._client, self.config, self._serialize, self._deserialize) self.services = ServicesOperations( self._client, self.config, self._serialize, self._deserialize) - self.servicemembers = ServicemembersOperations( - self._client, self.config, self._serialize, self._deserialize) - self.servimembers = ServimembersOperations( + self.service_members = ServiceMembersOperations( self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py index ed1c8d16cc5c..40cff3cb4dc8 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py @@ -9,26 +9,24 @@ # regenerated. # -------------------------------------------------------------------------- -from .addsservices_operations import AddsservicesOperations +from .adds_services_operations import AddsServicesOperations from .alerts_operations import AlertsOperations from .configuration_operations import ConfigurationOperations from .dimensions_operations import DimensionsOperations -from .addsservicemembers_operations import AddsservicemembersOperations -from .addomainservicemembers_operations import AddomainservicemembersOperations +from .adds_servicemembers_operations import AddsServicemembersOperations +from .ad_domain_service_members_operations import AdDomainServiceMembersOperations from .operations import Operations from .services_operations import ServicesOperations -from .servicemembers_operations import ServicemembersOperations -from .servimembers_operations import ServimembersOperations +from .service_members_operations import ServiceMembersOperations __all__ = [ - 'AddsservicesOperations', + 'AddsServicesOperations', 'AlertsOperations', 'ConfigurationOperations', 'DimensionsOperations', - 'AddsservicemembersOperations', - 'AddomainservicemembersOperations', + 'AddsServicemembersOperations', + 'AdDomainServiceMembersOperations', 'Operations', 'ServicesOperations', - 'ServicemembersOperations', - 'ServimembersOperations', + 'ServiceMembersOperations', ] diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addomainservicemembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/ad_domain_service_members_operations.py similarity index 98% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addomainservicemembers_operations.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/ad_domain_service_members_operations.py index a3b9f4b6a131..7a61ffc8e0d0 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addomainservicemembers_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/ad_domain_service_members_operations.py @@ -16,8 +16,8 @@ from .. import models -class AddomainservicemembersOperations(object): - """AddomainservicemembersOperations operations. +class AdDomainServiceMembersOperations(object): + """AdDomainServiceMembersOperations operations. :param client: Client for service requests. :param config: Configuration of service client. diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservicemembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_servicemembers_operations.py similarity index 98% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservicemembers_operations.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_servicemembers_operations.py index fe1048ffd20d..86c1719be42c 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservicemembers_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_servicemembers_operations.py @@ -16,8 +16,8 @@ from .. import models -class AddsservicemembersOperations(object): - """AddsservicemembersOperations operations. +class AddsServicemembersOperations(object): + """AddsServicemembersOperations operations. :param client: Client for service requests. :param config: Configuration of service client. diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py similarity index 99% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py index 9f2299889d14..e5f8f919490a 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/addsservices_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py @@ -16,8 +16,8 @@ from .. import models -class AddsservicesOperations(object): - """AddsservicesOperations operations. +class AddsServicesOperations(object): + """AddsServicesOperations operations. :param client: Client for service requests. :param config: Configuration of service client. @@ -365,7 +365,7 @@ def update( return deserialized update.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}'} - def getforest_summary( + 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. @@ -383,7 +383,7 @@ def getforest_summary( :raises: :class:`CloudError` """ # Construct URL - url = self.getforest_summary.metadata['url'] + url = self.get_forest_summary.metadata['url'] path_format_arguments = { 'serviceName': self._serialize.url("service_name", service_name, 'str') } @@ -422,7 +422,7 @@ def getforest_summary( return client_raw_response return deserialized - getforest_summary.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/forestsummary'} + 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): diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py similarity index 86% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py index e1eb816f0b90..f66247ba0bd0 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servicemembers_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py @@ -16,8 +16,8 @@ from .. import models -class ServicemembersOperations(object): - """ServicemembersOperations operations. +class ServiceMembersOperations(object): + """ServiceMembersOperations operations. :param client: Client for service requests. :param config: Configuration of service client. @@ -184,6 +184,129 @@ def add( 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['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 and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, 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 = {} + 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 and send request + request = self._client.delete(url, query_parameters) + response = self._client.send(request, header_parameters, 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}/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 diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py index f79e2aee7771..c9970fe939fe 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py @@ -658,15 +658,13 @@ def internal_paging(next_link=None, raw=False): list_export_errors.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/services/{serviceName}/exporterrors/counts'} def list_export_errors_v2( - self, service_name, error_bucket, next_link=None, custom_headers=None, raw=False, **operation_config): + 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 next_link: The next link to get next step of data. - :type next_link: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -690,8 +688,6 @@ def internal_paging(next_link=None, raw=False): # Construct parameters query_parameters = {} query_parameters['errorBucket'] = self._serialize.query("error_bucket", error_bucket, 'str') - if next_link is not None: - query_parameters['nextLink'] = self._serialize.query("next_link", next_link, 'str') query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') else: diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servimembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servimembers_operations.py deleted file mode 100644 index 6b3868154c7f..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/servimembers_operations.py +++ /dev/null @@ -1,161 +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 ServimembersOperations(object): - """ServimembersOperations 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, 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['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 and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, 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 = {} - 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 and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, 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}/servicemembers/{serviceMemberId}'} From e3f85cbd689d5198c4af481629abd6508d9bf2c7 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 3 May 2018 04:03:10 +0000 Subject: [PATCH 11/20] Generated from 25072645b1b5725c48869908793d757df3836057 Update ADHybridHealthService.json --- .../ad_domain_service_members_operations.py | 16 +++++++--------- .../operations/adds_services_operations.py | 15 +++++++-------- 2 files changed, 14 insertions(+), 17 deletions(-) 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 index 7a61ffc8e0d0..528b08cb4f82 100644 --- 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 @@ -23,6 +23,8 @@ class AdDomainServiceMembersOperations(object): :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". """ @@ -33,12 +35,14 @@ 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, next_partition_key=None, next_row_key=None, take_count=None, custom_headers=None, raw=False, **operation_config): + 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. @@ -51,10 +55,6 @@ def list( :type filter: str :param query: The custom query. :type query: str - :param next_partition_key: The next partition key to query for. - :type next_partition_key: str - :param next_row_key: The next row key to query for. - :type next_row_key: str :param take_count: The take count , which specifies the number of elements that can be returned from a sequence. :type take_count: int @@ -85,10 +85,8 @@ def internal_paging(next_link=None, raw=False): 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') - if next_partition_key is not None: - query_parameters['nextPartitionKey'] = self._serialize.query("next_partition_key", next_partition_key, 'str') - if next_row_key is not None: - query_parameters['nextRowKey'] = self._serialize.query("next_row_key", next_row_key, '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') 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 index e5f8f919490a..81f2a661935a 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py @@ -24,6 +24,8 @@ class AddsServicesOperations(object): :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 @@ -34,6 +36,8 @@ def __init__(self, client, config, serializer, deserializer): self._serialize = serializer self._deserialize = deserializer self.api_version = "2014-01-01" + self.next_partition_key = "" + self.next_row_key = "" self.config = config @@ -846,7 +850,7 @@ def get_replication_status( get_replication_status.metadata = {'url': '/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationstatus'} def get_replication_summary( - self, service_name, is_groupby_site, query, next_partition_key, filter=None, next_row_key=None, take_count=None, custom_headers=None, raw=False, **operation_config): + 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. @@ -858,12 +862,8 @@ def get_replication_summary( :type is_groupby_site: bool :param query: The custom query. :type query: str - :param next_partition_key: The next partition key to query for. - :type next_partition_key: str :param filter: The server property filter to apply. :type filter: str - :param next_row_key: The next row key to query for. - :type next_row_key: str :param take_count: The take count , which specifies the number of elements that can be returned from a sequence. :type take_count: int @@ -890,9 +890,8 @@ def get_replication_summary( 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("next_partition_key", next_partition_key, 'str') - if next_row_key is not None: - query_parameters['nextRowKey'] = self._serialize.query("next_row_key", next_row_key, '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') From f3d389f2fcfb7cb975492cc4ed29dc30da568d8a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 3 May 2018 16:15:37 +0000 Subject: [PATCH 12/20] Generated from d8882f8dbfce0a7f7b604c72ccfc708689c24c44 Update ADHybridHealthService.json --- .../adhybridhealthservice/ad_hybrid_health_service.py | 8 ++++---- .../mgmt/adhybridhealthservice/operations/__init__.py | 4 ++-- ...s_operations.py => adds_service_members_operations.py} | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/{adds_servicemembers_operations.py => adds_service_members_operations.py} (98%) 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 index 9b75716744d8..142c6697f26a 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/ad_hybrid_health_service.py @@ -17,7 +17,7 @@ from .operations.alerts_operations import AlertsOperations from .operations.configuration_operations import ConfigurationOperations from .operations.dimensions_operations import DimensionsOperations -from .operations.adds_servicemembers_operations import AddsServicemembersOperations +from .operations.adds_service_members_operations import AddsServiceMembersOperations from .operations.ad_domain_service_members_operations import AdDomainServiceMembersOperations from .operations.operations import Operations from .operations.services_operations import ServicesOperations @@ -66,8 +66,8 @@ class ADHybridHealthService(SDKClient): :vartype configuration: azure.mgmt.adhybridhealthservice.operations.ConfigurationOperations :ivar dimensions: Dimensions operations :vartype dimensions: azure.mgmt.adhybridhealthservice.operations.DimensionsOperations - :ivar adds_servicemembers: AddsServicemembers operations - :vartype adds_servicemembers: azure.mgmt.adhybridhealthservice.operations.AddsServicemembersOperations + :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 operations: Operations operations @@ -102,7 +102,7 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.dimensions = DimensionsOperations( self._client, self.config, self._serialize, self._deserialize) - self.adds_servicemembers = AddsServicemembersOperations( + 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) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py index 40cff3cb4dc8..54877a540481 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/__init__.py @@ -13,7 +13,7 @@ from .alerts_operations import AlertsOperations from .configuration_operations import ConfigurationOperations from .dimensions_operations import DimensionsOperations -from .adds_servicemembers_operations import AddsServicemembersOperations +from .adds_service_members_operations import AddsServiceMembersOperations from .ad_domain_service_members_operations import AdDomainServiceMembersOperations from .operations import Operations from .services_operations import ServicesOperations @@ -24,7 +24,7 @@ 'AlertsOperations', 'ConfigurationOperations', 'DimensionsOperations', - 'AddsServicemembersOperations', + 'AddsServiceMembersOperations', 'AdDomainServiceMembersOperations', 'Operations', 'ServicesOperations', diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_servicemembers_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_members_operations.py similarity index 98% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_servicemembers_operations.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_members_operations.py index 86c1719be42c..fb2e75b9eea8 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_servicemembers_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_service_members_operations.py @@ -16,8 +16,8 @@ from .. import models -class AddsServicemembersOperations(object): - """AddsServicemembersOperations operations. +class AddsServiceMembersOperations(object): + """AddsServiceMembersOperations operations. :param client: Client for service requests. :param config: Configuration of service client. From 4a70d375a6bd624eea92d3ed8b95809603bbfde1 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 3 May 2018 18:54:12 +0000 Subject: [PATCH 13/20] Generated from 243a682205bac87cdc500e500d970d7e9648ce25 Adding new example --- .../adhybridhealthservice/models/__init__.py | 13 ++--- .../adhybridhealthservice/models/alert.py | 10 ++-- .../adhybridhealthservice/models/alert_py3.py | 12 ++--- .../models/forest_summary.py | 8 +-- .../models/forest_summary_py3.py | 10 ++-- .../models/metric_metadata.py | 2 +- .../models/metric_metadata_py3.py | 2 +- .../adhybridhealthservice/models/service.py | 43 ---------------- ...e_paged.py => service_properties_paged.py} | 8 +-- .../models/service_py3.py | 43 ---------------- .../adhybridhealthservice/models/tenant.py | 13 +++-- .../models/tenant_py3.py | 15 ++++-- .../operations/adds_services_operations.py | 51 ++++++++++--------- .../operations/services_operations.py | 44 ++++++++-------- 14 files changed, 100 insertions(+), 174 deletions(-) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service.py rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{service_paged.py => service_properties_paged.py} (73%) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_py3.py diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index 831d4c951a4a..642b6771b10c 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -69,9 +69,8 @@ from .replication_status_py3 import ReplicationStatus from .replication_summary_py3 import ReplicationSummary from .replication_summary_list_py3 import ReplicationSummaryList - from .service_properties_py3 import ServiceProperties - from .service_py3 import Service from .service_configuration_py3 import ServiceConfiguration + from .service_properties_py3 import ServiceProperties from .service_member_properties_py3 import ServiceMemberProperties from .service_member_py3 import ServiceMember from .tabular_export_error_py3 import TabularExportError @@ -137,15 +136,14 @@ from .replication_status import ReplicationStatus from .replication_summary import ReplicationSummary from .replication_summary_list import ReplicationSummaryList - from .service_properties import ServiceProperties - from .service import Service from .service_configuration import ServiceConfiguration + from .service_properties import ServiceProperties from .service_member_properties import ServiceMemberProperties from .service_member import ServiceMember from .tabular_export_error import TabularExportError from .tenant import Tenant from .tenant_onboarding_details import TenantOnboardingDetails -from .service_paged import ServicePaged +from .service_properties_paged import ServicePropertiesPaged from .item_paged import ItemPaged from .metric_metadata_paged import MetricMetadataPaged from .alert_paged import AlertPaged @@ -237,15 +235,14 @@ 'ReplicationStatus', 'ReplicationSummary', 'ReplicationSummaryList', - 'ServiceProperties', - 'Service', 'ServiceConfiguration', + 'ServiceProperties', 'ServiceMemberProperties', 'ServiceMember', 'TabularExportError', 'Tenant', 'TenantOnboardingDetails', - 'ServicePaged', + 'ServicePropertiesPaged', 'ItemPaged', 'MetricMetadataPaged', 'AlertPaged', diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py index f6a981541027..1c37dbd6855b 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py @@ -52,9 +52,9 @@ class Alert(Model): :param last_updated: The date and time, in UTC, when the alert was last updated. :type last_updated: datetime - :param monitoring_role_type: The monitoring role type for which the alert - was raised. - :type monitoring_role_type: str + :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: object :param resolved_alert_properties: The active alert properties. @@ -81,7 +81,7 @@ class Alert(Model): 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, 'resolved_date': {'key': 'resolvedDate', 'type': 'iso-8601'}, 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'monitoring_role_type': {'key': 'monitoringRoleType', 'type': 'str'}, + 'monitor_role_type': {'key': 'monitorRoleType', 'type': 'str'}, 'active_alert_properties': {'key': 'activeAlertProperties', 'type': 'object'}, 'resolved_alert_properties': {'key': 'resolvedAlertProperties', 'type': 'object'}, 'tenant_id': {'key': 'tenantId', 'type': 'str'}, @@ -104,7 +104,7 @@ def __init__(self, **kwargs): 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.monitoring_role_type = kwargs.get('monitoring_role_type', 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) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py index 25c7fbaf812d..f9a55f0ccc07 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py @@ -52,9 +52,9 @@ class Alert(Model): :param last_updated: The date and time, in UTC, when the alert was last updated. :type last_updated: datetime - :param monitoring_role_type: The monitoring role type for which the alert - was raised. - :type monitoring_role_type: str + :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: object :param resolved_alert_properties: The active alert properties. @@ -81,7 +81,7 @@ class Alert(Model): 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, 'resolved_date': {'key': 'resolvedDate', 'type': 'iso-8601'}, 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'monitoring_role_type': {'key': 'monitoringRoleType', 'type': 'str'}, + 'monitor_role_type': {'key': 'monitorRoleType', 'type': 'str'}, 'active_alert_properties': {'key': 'activeAlertProperties', 'type': 'object'}, 'resolved_alert_properties': {'key': 'resolvedAlertProperties', 'type': 'object'}, 'tenant_id': {'key': 'tenantId', 'type': 'str'}, @@ -89,7 +89,7 @@ class Alert(Model): '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, monitoring_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: + 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 @@ -104,7 +104,7 @@ def __init__(self, *, alert_id: str=None, level=None, state=None, short_name: st self.created_date = created_date self.resolved_date = resolved_date self.last_updated = last_updated - self.monitoring_role_type = monitoring_role_type + 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 diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary.py index e45a7a76bb35..29eea554a047 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary.py @@ -21,9 +21,9 @@ class ForestSummary(Model): :type domain_count: int :param site_count: The site count. :type site_count: int - :param monitered_dc_count: The number of domain controllers that are + :param monitored_dc_count: The number of domain controllers that are monitored by Azure Active Directory Connect Health. - :type monitered_dc_count: int + :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. @@ -36,7 +36,7 @@ class ForestSummary(Model): 'forest_name': {'key': 'forestName', 'type': 'str'}, 'domain_count': {'key': 'domainCount', 'type': 'int'}, 'site_count': {'key': 'siteCount', 'type': 'int'}, - 'monitered_dc_count': {'key': 'moniteredDcCount', '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]'}, @@ -47,7 +47,7 @@ def __init__(self, **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.monitered_dc_count = kwargs.get('monitered_dc_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 index 085f763834df..ab6d04623cb4 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/forest_summary_py3.py @@ -21,9 +21,9 @@ class ForestSummary(Model): :type domain_count: int :param site_count: The site count. :type site_count: int - :param monitered_dc_count: The number of domain controllers that are + :param monitored_dc_count: The number of domain controllers that are monitored by Azure Active Directory Connect Health. - :type monitered_dc_count: int + :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. @@ -36,18 +36,18 @@ class ForestSummary(Model): 'forest_name': {'key': 'forestName', 'type': 'str'}, 'domain_count': {'key': 'domainCount', 'type': 'int'}, 'site_count': {'key': 'siteCount', 'type': 'int'}, - 'monitered_dc_count': {'key': 'moniteredDcCount', '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, monitered_dc_count: int=None, total_dc_count: int=None, domains=None, sites=None, **kwargs) -> None: + 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.monitered_dc_count = monitered_dc_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/metric_metadata.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata.py index 1e9f96e7eed8..862bd6f790d3 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata.py @@ -45,7 +45,7 @@ class MetricMetadata(Model): """ _attribute_map = { - 'metrics_processor_class_name': {'key': 'metricsPRocessorClassName', 'type': 'str'}, + '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'}, 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 index fd5e71948b5c..8087ee60b9d1 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/metric_metadata_py3.py @@ -45,7 +45,7 @@ class MetricMetadata(Model): """ _attribute_map = { - 'metrics_processor_class_name': {'key': 'metricsPRocessorClassName', 'type': 'str'}, + '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'}, diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service.py deleted file mode 100644 index e271884bb03e..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service.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 Service(Model): - """The details of the service for a given onboarded tenant. - - :param continuation_token: The page-continuation token to use with a paged - version of this API. - :type continuation_token: str - :param total_count: The total number of services onboarded for a given - tenant. - :type total_count: int - :param next_link: The link used to get the next page of the operation. - :type next_link: str - :param value: The service properties. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] - """ - - _attribute_map = { - 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, - 'total_count': {'key': 'totalCount', 'type': 'int'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ServiceProperties]'}, - } - - def __init__(self, **kwargs): - super(Service, self).__init__(**kwargs) - self.continuation_token = kwargs.get('continuation_token', None) - self.total_count = kwargs.get('total_count', None) - self.next_link = kwargs.get('next_link', None) - self.value = kwargs.get('value', None) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_paged.py similarity index 73% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_paged.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_paged.py index d8afe3dfdac8..e9b71906ed48 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_paged.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_paged.py @@ -12,16 +12,16 @@ from msrest.paging import Paged -class ServicePaged(Paged): +class ServicePropertiesPaged(Paged): """ - A paging container for iterating over a list of :class:`Service ` object + 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': '[Service]'} + 'current_page': {'key': 'value', 'type': '[ServiceProperties]'} } def __init__(self, *args, **kwargs): - super(ServicePaged, self).__init__(*args, **kwargs) + super(ServicePropertiesPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_py3.py deleted file mode 100644 index c3b4b0c2b887..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_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 Service(Model): - """The details of the service for a given onboarded tenant. - - :param continuation_token: The page-continuation token to use with a paged - version of this API. - :type continuation_token: str - :param total_count: The total number of services onboarded for a given - tenant. - :type total_count: int - :param next_link: The link used to get the next page of the operation. - :type next_link: str - :param value: The service properties. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] - """ - - _attribute_map = { - 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, - 'total_count': {'key': 'totalCount', 'type': 'int'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ServiceProperties]'}, - } - - def __init__(self, *, continuation_token: str=None, total_count: int=None, next_link: str=None, value=None, **kwargs) -> None: - super(Service, self).__init__(**kwargs) - self.continuation_token = continuation_token - self.total_count = total_count - self.next_link = next_link - self.value = value diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py index 1c955fb1c51f..09c5f6608af3 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant.py @@ -28,7 +28,7 @@ class Tenant(Model): :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: datetime + :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 @@ -45,7 +45,7 @@ class Tenant(Model): :type disabled: bool :param disabled_reason: The reason due to which the tenant was disabled in Azure Active Directory Connect Health. - :type disabled_reason: str + :type disabled_reason: int :param global_admins_email: The list of golbal administrators for the tenant. :type global_admins_email: object @@ -58,6 +58,9 @@ class Tenant(Model): 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 @@ -79,17 +82,18 @@ class Tenant(Model): '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': 'iso-8601'}, + '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': 'str'}, + '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'}, @@ -114,6 +118,7 @@ def __init__(self, **kwargs): 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) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py index 975cc14e40e0..3cecba14153e 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/tenant_py3.py @@ -28,7 +28,7 @@ class Tenant(Model): :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: datetime + :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 @@ -45,7 +45,7 @@ class Tenant(Model): :type disabled: bool :param disabled_reason: The reason due to which the tenant was disabled in Azure Active Directory Connect Health. - :type disabled_reason: str + :type disabled_reason: int :param global_admins_email: The list of golbal administrators for the tenant. :type global_admins_email: object @@ -58,6 +58,9 @@ class Tenant(Model): 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 @@ -79,17 +82,18 @@ class Tenant(Model): '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': 'iso-8601'}, + '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': 'str'}, + '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'}, @@ -97,7 +101,7 @@ class Tenant(Model): '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=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: str=None, global_admins_email=None, initial_domain: str=None, last_disabled=None, last_verified=None, onboarded: bool=None, pks_certificate=None, private_preview_tenant: bool=None, tenant_in_quarantine: bool=None, tenant_name: str=None, **kwargs) -> None: + 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 @@ -114,6 +118,7 @@ def __init__(self, *, tenant_id: str=None, aad_license: str=None, aad_premium: b 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 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 index 81f2a661935a..327de6c480c6 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py @@ -65,9 +65,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: An iterator like instance of Service + :return: An iterator like instance of ServiceProperties :rtype: - ~azure.mgmt.adhybridhealthservice.models.ServicePaged[~azure.mgmt.adhybridhealthservice.models.Service] + ~azure.mgmt.adhybridhealthservice.models.ServicePropertiesPaged[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -115,11 +115,11 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ServicePaged(internal_paging, self._deserialize.dependencies) + deserialized = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} - client_raw_response = models.ServicePaged(internal_paging, self._deserialize.dependencies, header_dict) + client_raw_response = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized @@ -131,14 +131,15 @@ def add( Health. :param service: The service object. - :type service: ~azure.mgmt.adhybridhealthservice.models.Service + :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: Service or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Service or + :return: ServiceProperties or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -160,7 +161,7 @@ def add( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(service, 'Service') + body_content = self._serialize.body(service, 'ServiceProperties') # Construct and send request request = self._client.post(url, query_parameters) @@ -175,7 +176,7 @@ def add( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('Service', response) + deserialized = self._deserialize('ServiceProperties', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -197,8 +198,8 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: Service or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Service or + :return: ServiceProperties or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -235,7 +236,7 @@ def get( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('Service', response) + deserialized = self._deserialize('ServiceProperties', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -312,14 +313,15 @@ def update( deleted. :type service_name: str :param service: The service object. - :type service: ~azure.mgmt.adhybridhealthservice.models.Service + :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: Service or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Service or + :return: ServiceProperties or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -345,7 +347,7 @@ def update( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(service, 'Service') + body_content = self._serialize.body(service, 'ServiceProperties') # Construct and send request request = self._client.patch(url, query_parameters) @@ -360,7 +362,7 @@ def update( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('Service', response) + deserialized = self._deserialize('ServiceProperties', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -872,8 +874,9 @@ def get_replication_summary( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: ReplicationSummary or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.ReplicationSummary or + :return: ReplicationSummaryList or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.adhybridhealthservice.models.ReplicationSummaryList or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -918,7 +921,7 @@ def get_replication_summary( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('ReplicationSummary', response) + deserialized = self._deserialize('ReplicationSummaryList', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -1040,9 +1043,9 @@ def list_premium_services( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: An iterator like instance of Service + :return: An iterator like instance of ServiceProperties :rtype: - ~azure.mgmt.adhybridhealthservice.models.ServicePaged[~azure.mgmt.adhybridhealthservice.models.Service] + ~azure.mgmt.adhybridhealthservice.models.ServicePropertiesPaged[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -1090,11 +1093,11 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ServicePaged(internal_paging, self._deserialize.dependencies) + deserialized = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} - client_raw_response = models.ServicePaged(internal_paging, self._deserialize.dependencies, header_dict) + client_raw_response = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py index c9970fe939fe..8346c7fa7b0e 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py @@ -61,9 +61,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: An iterator like instance of Service + :return: An iterator like instance of ServiceProperties :rtype: - ~azure.mgmt.adhybridhealthservice.models.ServicePaged[~azure.mgmt.adhybridhealthservice.models.Service] + ~azure.mgmt.adhybridhealthservice.models.ServicePropertiesPaged[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -111,11 +111,11 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ServicePaged(internal_paging, self._deserialize.dependencies) + deserialized = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} - client_raw_response = models.ServicePaged(internal_paging, self._deserialize.dependencies, header_dict) + client_raw_response = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized @@ -127,14 +127,15 @@ def add( Health. :param service: The service object. - :type service: ~azure.mgmt.adhybridhealthservice.models.Service + :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: Service or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Service or + :return: ServiceProperties or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -156,7 +157,7 @@ def add( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(service, 'Service') + body_content = self._serialize.body(service, 'ServiceProperties') # Construct and send request request = self._client.post(url, query_parameters) @@ -171,7 +172,7 @@ def add( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('Service', response) + deserialized = self._deserialize('ServiceProperties', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -204,9 +205,9 @@ def list_premium( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: An iterator like instance of Service + :return: An iterator like instance of ServiceProperties :rtype: - ~azure.mgmt.adhybridhealthservice.models.ServicePaged[~azure.mgmt.adhybridhealthservice.models.Service] + ~azure.mgmt.adhybridhealthservice.models.ServicePropertiesPaged[~azure.mgmt.adhybridhealthservice.models.ServiceProperties] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -254,11 +255,11 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ServicePaged(internal_paging, self._deserialize.dependencies) + deserialized = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} - client_raw_response = models.ServicePaged(internal_paging, self._deserialize.dependencies, header_dict) + client_raw_response = models.ServicePropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized @@ -276,8 +277,8 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: Service or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Service or + :return: ServiceProperties or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -314,7 +315,7 @@ def get( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('Service', response) + deserialized = self._deserialize('ServiceProperties', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -390,14 +391,15 @@ def update( deleted. :type service_name: str :param service: The service object. - :type service: ~azure.mgmt.adhybridhealthservice.models.Service + :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: Service or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.adhybridhealthservice.models.Service or + :return: ServiceProperties or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.ServiceProperties or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -423,7 +425,7 @@ def update( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(service, 'Service') + body_content = self._serialize.body(service, 'ServiceProperties') # Construct and send request request = self._client.patch(url, query_parameters) @@ -438,7 +440,7 @@ def update( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('Service', response) + deserialized = self._deserialize('ServiceProperties', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) From be37bb86cd66faf2c3226d31b3ace2a01ee42c6b Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 3 May 2018 19:12:39 +0000 Subject: [PATCH 14/20] Generated from ed3a34d985aff45a85a1c8e99047e4492c7e1534 Update ADHybridHealthService.json --- .../models/service_properties.py | 13 +++++++++---- .../models/service_properties_py3.py | 15 ++++++++++----- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py index f3808bbf6824..6d857a32f1db 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties.py @@ -35,9 +35,9 @@ class ServiceProperties(Model): :type display_name: str :param health: The health of the service. :type health: str - :param last_disable: The date and time, in UTC, when the service was last + :param last_disabled: The date and time, in UTC, when the service was last disabled. - :type last_disable: datetime + :type last_disabled: datetime :param last_updated: The date or time , in UTC, when the service properties were last updated. :type last_updated: datetime @@ -55,6 +55,9 @@ class ServiceProperties(Model): :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] @@ -91,12 +94,13 @@ class ServiceProperties(Model): 'disabled': {'key': 'disabled', 'type': 'bool'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'health': {'key': 'health', 'type': 'str'}, - 'last_disable': {'key': 'lastDisable', 'type': 'iso-8601'}, + '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'}, @@ -118,12 +122,13 @@ def __init__(self, **kwargs): self.disabled = kwargs.get('disabled', None) self.display_name = kwargs.get('display_name', None) self.health = kwargs.get('health', None) - self.last_disable = kwargs.get('last_disable', 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) 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 index 57ff9eba892b..09deee65fdb6 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_properties_py3.py @@ -35,9 +35,9 @@ class ServiceProperties(Model): :type display_name: str :param health: The health of the service. :type health: str - :param last_disable: The date and time, in UTC, when the service was last + :param last_disabled: The date and time, in UTC, when the service was last disabled. - :type last_disable: datetime + :type last_disabled: datetime :param last_updated: The date or time , in UTC, when the service properties were last updated. :type last_updated: datetime @@ -55,6 +55,9 @@ class ServiceProperties(Model): :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] @@ -91,12 +94,13 @@ class ServiceProperties(Model): 'disabled': {'key': 'disabled', 'type': 'bool'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'health': {'key': 'health', 'type': 'str'}, - 'last_disable': {'key': 'lastDisable', 'type': 'iso-8601'}, + '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'}, @@ -108,7 +112,7 @@ class ServiceProperties(Model): '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_disable=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=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: + 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 @@ -118,12 +122,13 @@ def __init__(self, *, id: str=None, active_alerts: int=None, additional_informat self.disabled = disabled self.display_name = display_name self.health = health - self.last_disable = last_disable + 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 From 52f5eaca271550e0b6274b722af4c8cdbdeff379 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 4 May 2018 01:13:57 +0000 Subject: [PATCH 15/20] Generated from 15fc3e90ba9726dfec0fb851fd15695e6e20d0dc Update Services.json --- .../adhybridhealthservice/models/__init__.py | 12 +- .../models/ad_hybrid_health_service_enums.py | 30 ++-- .../models/adds_service_member.py | 126 +++++++++++++++++ .../models/adds_service_member_py3.py | 128 +++++++++++++++++- .../adhybridhealthservice/models/dimension.py | 8 +- .../models/dimension_py3.py | 10 +- .../models/error_count.py | 8 +- .../models/error_count_py3.py | 10 +- .../models/export_error.py | 8 +- .../models/export_error_py3.py | 10 +- .../models/global_configuration.py | 4 +- .../models/global_configuration_py3.py | 4 +- .../models/inbound_replication_neighbor.py | 11 +- .../inbound_replication_neighbor_py3.py | 13 +- .../models/merged_export_error.py | 8 -- ..._paged.py => merged_export_error_paged.py} | 8 +- .../models/merged_export_error_py3.py | 10 +- .../models/replication_summary.py | 15 +- .../models/replication_summary_py3.py | 17 +-- .../operations/configuration_operations.py | 6 +- .../operations/services_operations.py | 8 +- 21 files changed, 335 insertions(+), 119 deletions(-) rename azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/{export_error_paged.py => merged_export_error_paged.py} (66%) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index 642b6771b10c..4dae01dc63b0 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -151,7 +151,7 @@ from .adds_service_member_paged import AddsServiceMemberPaged from .operation_paged import OperationPaged from .error_count_paged import ErrorCountPaged -from .export_error_paged import ExportErrorPaged +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 @@ -159,6 +159,8 @@ from .credential_paged import CredentialPaged from .global_configuration_paged import GlobalConfigurationPaged from .ad_hybrid_health_service_enums import ( + ServerDisabledReason, + MonitoringLevel, Level, State, ValueDeltaOperationType, @@ -171,8 +173,6 @@ AlgorithmStepType, PasswordOperationTypes, ServiceType, - ServerDisabledReason, - MonitoringLevel, ) __all__ = [ @@ -250,13 +250,15 @@ 'AddsServiceMemberPaged', 'OperationPaged', 'ErrorCountPaged', - 'ExportErrorPaged', + 'MergedExportErrorPaged', 'ExportStatusPaged', 'AlertFeedbackPaged', 'ErrorReportUsersEntryPaged', 'ServiceMemberPaged', 'CredentialPaged', 'GlobalConfigurationPaged', + 'ServerDisabledReason', + 'MonitoringLevel', 'Level', 'State', 'ValueDeltaOperationType', @@ -269,6 +271,4 @@ 'AlgorithmStepType', 'PasswordOperationTypes', 'ServiceType', - 'ServerDisabledReason', - 'MonitoringLevel', ] 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 index da6b66889a89..c6b2d96721c0 100644 --- 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 @@ -12,6 +12,21 @@ from enum import Enum +class ServerDisabledReason(str, Enum): + + none = "None" + gdpr_stop_collection = "GdprStopCollection" + deleted_from_portal = "DeletedFromPortal" + disabled_due_to_inactivity = "DisabledDueToInactivity" + + +class MonitoringLevel(str, Enum): + + partial = "Partial" + full = "Full" + off = "Off" + + class Level(str, Enum): warning = "Warning" @@ -126,18 +141,3 @@ class ServiceType(str, Enum): undefined = "Undefined" aad_connect_sync = "AadConnectSync" dir_sync = "DirSync" - - -class ServerDisabledReason(str, Enum): - - none = "None" - gdpr_stop_collection = "GdprStopCollection" - deleted_from_portal = "DeletedFromPortal" - disabled_due_to_inactivity = "DisabledDueToInactivity" - - -class MonitoringLevel(str, Enum): - - partial = "Partial" - full = "Full" - off = "Off" 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 index b1de9d940088..ac0ff45ac697 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py @@ -24,6 +24,8 @@ class AddsServiceMember(Model): :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 @@ -31,6 +33,76 @@ class AddsServiceMember(Model): :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: object + :param disabled: Indicates if the server is disabled or not. + :type disabled: bool + :param disabled_reason: The reason for disabling the server. Possible + values include: 'None', 'GdprStopCollection', 'DeletedFromPortal', + 'DisabledDueToInactivity' + :type disabled_reason: str or + ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason + :param installed_qfe: The list of installed QFEs for the server. + :type installed_qfe: 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 = { @@ -38,9 +110,36 @@ class AddsServiceMember(Model): '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': 'object'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'disabled_reason': {'key': 'disabledReason', 'type': 'ServerDisabledReason'}, + 'installed_qfe': {'key': 'installedQfe', '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): @@ -49,6 +148,33 @@ def __init__(self, **kwargs): 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_qfe = kwargs.get('installed_qfe', 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_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member_py3.py index 167028363215..7518ba0ffc8c 100644 --- 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 @@ -24,6 +24,8 @@ class AddsServiceMember(Model): :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 @@ -31,6 +33,76 @@ class AddsServiceMember(Model): :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: object + :param disabled: Indicates if the server is disabled or not. + :type disabled: bool + :param disabled_reason: The reason for disabling the server. Possible + values include: 'None', 'GdprStopCollection', 'DeletedFromPortal', + 'DisabledDueToInactivity' + :type disabled_reason: str or + ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason + :param installed_qfe: The list of installed QFEs for the server. + :type installed_qfe: 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 = { @@ -38,17 +110,71 @@ class AddsServiceMember(Model): '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': 'object'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'disabled_reason': {'key': 'disabledReason', 'type': 'ServerDisabledReason'}, + 'installed_qfe': {'key': 'installedQfe', '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, *, domain_name: str=None, site_name: str=None, adds_roles=None, gc_reachable: bool=None, pdc_reachable: bool=None, sysvol_state: bool=None, dc_types=None, **kwargs) -> None: + 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=None, installed_qfe=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_qfe = installed_qfe + 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/dimension.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension.py index e53c115cee4a..adb66ea70829 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension.py @@ -15,9 +15,9 @@ class Dimension(Model): """The connector object error. - :param status: The health status for the domain controller. Possible + :param health: The health status for the domain controller. Possible values include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' - :type status: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus + :type health: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus :param simple_properties: List of service specific configuration properties. :type simple_properties: object @@ -45,7 +45,7 @@ class Dimension(Model): """ _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, + 'health': {'key': 'health', 'type': 'str'}, 'simple_properties': {'key': 'simpleProperties', 'type': 'object'}, 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, @@ -58,7 +58,7 @@ class Dimension(Model): def __init__(self, **kwargs): super(Dimension, self).__init__(**kwargs) - self.status = kwargs.get('status', None) + 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) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py index 52fd0f0d46b9..ce7228d6fb1c 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/dimension_py3.py @@ -15,9 +15,9 @@ class Dimension(Model): """The connector object error. - :param status: The health status for the domain controller. Possible + :param health: The health status for the domain controller. Possible values include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' - :type status: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus + :type health: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus :param simple_properties: List of service specific configuration properties. :type simple_properties: object @@ -45,7 +45,7 @@ class Dimension(Model): """ _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, + 'health': {'key': 'health', 'type': 'str'}, 'simple_properties': {'key': 'simpleProperties', 'type': 'object'}, 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, @@ -56,9 +56,9 @@ class Dimension(Model): 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, status=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: + 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.status = status + self.health = health self.simple_properties = simple_properties self.active_alerts = active_alerts self.additional_information = additional_information diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count.py index 2323824aece9..4a45c001fe7c 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count.py @@ -19,18 +19,18 @@ class ErrorCount(Model): :type error_bucket: str :param count: The error count. :type count: int - :param trucated: Indicates if the error count is truncated or not. - :type trucated: bool + :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'}, - 'trucated': {'key': 'trucated', 'type': 'bool'}, + '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.trucated = kwargs.get('trucated', None) + self.truncated = kwargs.get('truncated', None) 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 index 20b4827a702d..61a71398c8c1 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_count_py3.py @@ -19,18 +19,18 @@ class ErrorCount(Model): :type error_bucket: str :param count: The error count. :type count: int - :param trucated: Indicates if the error count is truncated or not. - :type trucated: bool + :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'}, - 'trucated': {'key': 'trucated', 'type': 'bool'}, + 'truncated': {'key': 'truncated', 'type': 'bool'}, } - def __init__(self, *, error_bucket: str=None, count: int=None, trucated: bool=None, **kwargs) -> None: + 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.trucated = trucated + self.truncated = truncated diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error.py index d91139d97d89..1565c300e2d7 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error.py @@ -27,8 +27,8 @@ class ExportError(Model): :type error_code: str :param message: The export error message. :type message: str - :param servver_error_detail: The server error detail. - :type servver_error_detail: 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 @@ -103,7 +103,7 @@ class ExportError(Model): 'type': {'key': 'type', 'type': 'str'}, 'error_code': {'key': 'errorCode', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, - 'servver_error_detail': {'key': 'servverErrorDetail', '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'}, @@ -144,7 +144,7 @@ def __init__(self, **kwargs): self.type = kwargs.get('type', None) self.error_code = kwargs.get('error_code', None) self.message = kwargs.get('message', None) - self.servver_error_detail = kwargs.get('servver_error_detail', 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) 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 index d7886026af33..edb418af3084 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_py3.py @@ -27,8 +27,8 @@ class ExportError(Model): :type error_code: str :param message: The export error message. :type message: str - :param servver_error_detail: The server error detail. - :type servver_error_detail: 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 @@ -103,7 +103,7 @@ class ExportError(Model): 'type': {'key': 'type', 'type': 'str'}, 'error_code': {'key': 'errorCode', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, - 'servver_error_detail': {'key': 'servverErrorDetail', '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'}, @@ -136,7 +136,7 @@ class ExportError(Model): '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, servver_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: + 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 @@ -144,7 +144,7 @@ def __init__(self, *, id: str=None, run_step_result_id: str=None, connector_id: self.type = type self.error_code = error_code self.message = message - self.servver_error_detail = servver_error_detail + 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 diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py index 99ee3c67d2c8..cd1a27590889 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py @@ -25,7 +25,7 @@ class GlobalConfiguration(Model): :param num_saved_pwd_events: The number of saved password events. :type num_saved_pwd_events: int :param feature_set: The list of additional feature sets. - :type feature_set: object + :type feature_set: list[~azure.mgmt.adhybridhealthservice.models.Item] """ _attribute_map = { @@ -33,7 +33,7 @@ class GlobalConfiguration(Model): 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, 'password_sync_enabled': {'key': 'passwordSyncEnabled', 'type': 'bool'}, 'num_saved_pwd_events': {'key': 'numSavedPwdEvents', 'type': 'int'}, - 'feature_set': {'key': 'featureSet', 'type': 'object'}, + 'feature_set': {'key': 'featureSet', 'type': '[Item]'}, } def __init__(self, **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 index 1a8df76df629..7432fc5be22d 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py @@ -25,7 +25,7 @@ class GlobalConfiguration(Model): :param num_saved_pwd_events: The number of saved password events. :type num_saved_pwd_events: int :param feature_set: The list of additional feature sets. - :type feature_set: object + :type feature_set: list[~azure.mgmt.adhybridhealthservice.models.Item] """ _attribute_map = { @@ -33,7 +33,7 @@ class GlobalConfiguration(Model): 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, 'password_sync_enabled': {'key': 'passwordSyncEnabled', 'type': 'bool'}, 'num_saved_pwd_events': {'key': 'numSavedPwdEvents', 'type': 'int'}, - 'feature_set': {'key': 'featureSet', 'type': 'object'}, + 'feature_set': {'key': 'featureSet', 'type': '[Item]'}, } def __init__(self, *, version: int=None, schema_xml: str=None, password_sync_enabled: bool=None, num_saved_pwd_events: int=None, feature_set=None, **kwargs) -> None: 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 index 907f2dbf8056..190be83235bc 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/inbound_replication_neighbor.py @@ -19,12 +19,11 @@ class InboundReplicationNeighbor(Model): :type source_domain_controller: str :param consecutive_failure_count: The number of consecutive faulire counts. - :type consecutive_failure_count: str + :type consecutive_failure_count: int :param naming_context: The naming context. :type naming_context: str - :param status: The health status for the domain controller. Possible - values include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' - :type status: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus + :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 @@ -49,9 +48,9 @@ class InboundReplicationNeighbor(Model): _attribute_map = { 'source_domain_controller': {'key': 'sourceDomainController', 'type': 'str'}, - 'consecutive_failure_count': {'key': 'consecutiveFailureCount', 'type': 'str'}, + 'consecutive_failure_count': {'key': 'consecutiveFailureCount', 'type': 'int'}, 'naming_context': {'key': 'namingContext', 'type': 'str'}, - 'status': {'key': 'status', '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'}, 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 index ac82040b90e1..8522266bff8a 100644 --- 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 @@ -19,12 +19,11 @@ class InboundReplicationNeighbor(Model): :type source_domain_controller: str :param consecutive_failure_count: The number of consecutive faulire counts. - :type consecutive_failure_count: str + :type consecutive_failure_count: int :param naming_context: The naming context. :type naming_context: str - :param status: The health status for the domain controller. Possible - values include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' - :type status: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus + :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 @@ -49,9 +48,9 @@ class InboundReplicationNeighbor(Model): _attribute_map = { 'source_domain_controller': {'key': 'sourceDomainController', 'type': 'str'}, - 'consecutive_failure_count': {'key': 'consecutiveFailureCount', 'type': 'str'}, + 'consecutive_failure_count': {'key': 'consecutiveFailureCount', 'type': 'int'}, 'naming_context': {'key': 'namingContext', 'type': 'str'}, - 'status': {'key': 'status', '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'}, @@ -63,7 +62,7 @@ class InboundReplicationNeighbor(Model): 'additional_info': {'key': 'additionalInfo', 'type': 'str'}, } - def __init__(self, *, source_domain_controller: str=None, consecutive_failure_count: str=None, naming_context: str=None, status=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: + 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 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 index 705ae5c17d80..55b80debc1c1 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py @@ -15,10 +15,6 @@ class MergedExportError(Model): """The merged export error. - :param id: The internal Id for the export error. - :type id: str - :param id_set: Indicates if the Id has been set externally or not. - :type id_set: bool :param incoming_object_display_name: The incoming object display name. :type incoming_object_display_name: str :param incoming_object_type: The incoming object type. @@ -61,8 +57,6 @@ class MergedExportError(Model): """ _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'id_set': {'key': 'idSet', 'type': 'bool'}, 'incoming_object_display_name': {'key': 'incomingObjectDisplayName', 'type': 'str'}, 'incoming_object_type': {'key': 'incomingObjectType', 'type': 'str'}, 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, @@ -85,8 +79,6 @@ class MergedExportError(Model): def __init__(self, **kwargs): super(MergedExportError, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.id_set = kwargs.get('id_set', 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) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_paged.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_paged.py similarity index 66% rename from azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_paged.py rename to azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_paged.py index 01b2b22a8c06..e2921e5cf16b 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/export_error_paged.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_paged.py @@ -12,16 +12,16 @@ from msrest.paging import Paged -class ExportErrorPaged(Paged): +class MergedExportErrorPaged(Paged): """ - A paging container for iterating over a list of :class:`ExportError ` object + 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': '[ExportError]'} + 'current_page': {'key': 'value', 'type': '[MergedExportError]'} } def __init__(self, *args, **kwargs): - super(ExportErrorPaged, self).__init__(*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 index 0169edd89044..9655c3841ac5 100644 --- 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 @@ -15,10 +15,6 @@ class MergedExportError(Model): """The merged export error. - :param id: The internal Id for the export error. - :type id: str - :param id_set: Indicates if the Id has been set externally or not. - :type id_set: bool :param incoming_object_display_name: The incoming object display name. :type incoming_object_display_name: str :param incoming_object_type: The incoming object type. @@ -61,8 +57,6 @@ class MergedExportError(Model): """ _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'id_set': {'key': 'idSet', 'type': 'bool'}, 'incoming_object_display_name': {'key': 'incomingObjectDisplayName', 'type': 'str'}, 'incoming_object_type': {'key': 'incomingObjectType', 'type': 'str'}, 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, @@ -83,10 +77,8 @@ class MergedExportError(Model): 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, } - def __init__(self, *, id: str=None, id_set: bool=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, **kwargs) -> None: + def __init__(self, *, 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, **kwargs) -> None: super(MergedExportError, self).__init__(**kwargs) - self.id = id - self.id_set = id_set self.incoming_object_display_name = incoming_object_display_name self.incoming_object_type = incoming_object_type self.user_principal_name = user_principal_name diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py index 9bbc0371dea7..1e20005cd20c 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary.py @@ -21,19 +21,14 @@ class ReplicationSummary(Model): :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. Possible values - include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' - :type status: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus + :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 service_id: The service Id. - :type service_id: str - :param service_member_id: The serviceMemberId. - :type service_member_id: str :param inbound_neighbor_collection: List of individual domain controller neighbor's inbound replication status. :type inbound_neighbor_collection: @@ -44,11 +39,9 @@ class ReplicationSummary(Model): 'target_server': {'key': 'targetServer', 'type': 'str'}, 'site': {'key': 'site', 'type': 'str'}, 'domain': {'key': 'domain', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'int'}, 'last_attempted_sync': {'key': 'lastAttemptedSync', 'type': 'iso-8601'}, 'last_successful_sync': {'key': 'lastSuccessfulSync', 'type': 'iso-8601'}, - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, 'inbound_neighbor_collection': {'key': 'inboundNeighborCollection', 'type': '[InboundReplicationNeighbor]'}, } @@ -60,6 +53,4 @@ def __init__(self, **kwargs): 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.service_id = kwargs.get('service_id', None) - self.service_member_id = kwargs.get('service_member_id', None) self.inbound_neighbor_collection = kwargs.get('inbound_neighbor_collection', None) 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 index d8d6c6bfe1fc..5da5d0eb5f40 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/replication_summary_py3.py @@ -21,19 +21,14 @@ class ReplicationSummary(Model): :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. Possible values - include: 'Healthy', 'Warning', 'Error', 'NotMonitored', 'Missing' - :type status: str or ~azure.mgmt.adhybridhealthservice.models.HealthStatus + :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 service_id: The service Id. - :type service_id: str - :param service_member_id: The serviceMemberId. - :type service_member_id: str :param inbound_neighbor_collection: List of individual domain controller neighbor's inbound replication status. :type inbound_neighbor_collection: @@ -44,15 +39,13 @@ class ReplicationSummary(Model): 'target_server': {'key': 'targetServer', 'type': 'str'}, 'site': {'key': 'site', 'type': 'str'}, 'domain': {'key': 'domain', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'int'}, 'last_attempted_sync': {'key': 'lastAttemptedSync', 'type': 'iso-8601'}, 'last_successful_sync': {'key': 'lastSuccessfulSync', 'type': 'iso-8601'}, - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'service_member_id': {'key': 'serviceMemberId', 'type': 'str'}, 'inbound_neighbor_collection': {'key': 'inboundNeighborCollection', 'type': '[InboundReplicationNeighbor]'}, } - def __init__(self, *, target_server: str=None, site: str=None, domain: str=None, status=None, last_attempted_sync=None, last_successful_sync=None, service_id: str=None, service_member_id: str=None, inbound_neighbor_collection=None, **kwargs) -> None: + 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 @@ -60,6 +53,4 @@ def __init__(self, *, target_server: str=None, site: str=None, domain: str=None, self.status = status self.last_attempted_sync = last_attempted_sync self.last_successful_sync = last_successful_sync - self.service_id = service_id - self.service_member_id = service_member_id self.inbound_neighbor_collection = inbound_neighbor_collection diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py index 085a22482fd6..d2417c89a575 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py @@ -89,7 +89,7 @@ def internal_paging(next_link=None, raw=False): response = self._client.send( request, header_parameters, stream=False, **operation_config) - if response.status_code not in [200, 400]: + if response.status_code not in [200]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp @@ -195,7 +195,7 @@ def get( request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, stream=False, **operation_config) - if response.status_code not in [200, 400]: + if response.status_code not in [200, 400, 403]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp @@ -255,7 +255,7 @@ def update( response = self._client.send( request, header_parameters, body_content, stream=False, **operation_config) - if response.status_code not in [200, 404]: + if response.status_code not in [200, 400, 403]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py index 8346c7fa7b0e..ad203c4c5694 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py @@ -672,9 +672,9 @@ def list_export_errors_v2( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: An iterator like instance of ExportError + :return: An iterator like instance of MergedExportError :rtype: - ~azure.mgmt.adhybridhealthservice.models.ExportErrorPaged[~azure.mgmt.adhybridhealthservice.models.ExportError] + ~azure.mgmt.adhybridhealthservice.models.MergedExportErrorPaged[~azure.mgmt.adhybridhealthservice.models.MergedExportError] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -719,11 +719,11 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ExportErrorPaged(internal_paging, self._deserialize.dependencies) + deserialized = models.MergedExportErrorPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} - client_raw_response = models.ExportErrorPaged(internal_paging, self._deserialize.dependencies, header_dict) + client_raw_response = models.MergedExportErrorPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized From 9a17f6cb87c7912f69758b646cb823f71433d1bd Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 4 May 2018 05:16:47 +0000 Subject: [PATCH 16/20] Generated from 7f98fc6e8e8023d64c40e0f78edbaa425b0c598b Update ADHybridHealthService.json --- .../adhybridhealthservice/models/__init__.py | 12 ++++----- .../models/adds_service_member.py | 27 ++++++++++--------- .../models/adds_service_member_py3.py | 27 ++++++++++--------- .../adhybridhealthservice/models/alert.py | 12 +++++---- .../adhybridhealthservice/models/alert_py3.py | 12 +++++---- .../adhybridhealthservice/models/connector.py | 4 +-- .../models/connector_py3.py | 4 +-- .../models/error_report_users_entry.py | 8 +++--- .../models/error_report_users_entry_py3.py | 10 +++---- .../models/merged_export_error.py | 13 +++++++++ .../models/merged_export_error_py3.py | 15 ++++++++++- .../operations/configuration_operations.py | 6 ++--- .../operations/service_members_operations.py | 2 +- 13 files changed, 94 insertions(+), 58 deletions(-) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index 4dae01dc63b0..d1a4de842d31 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -12,6 +12,7 @@ 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 @@ -29,7 +30,6 @@ from .partition_py3 import Partition from .run_step_py3 import RunStep from .run_profile_py3 import RunProfile - from .run_profiles_py3 import RunProfiles from .connector_py3 import Connector from .connectors_py3 import Connectors from .connector_connection_error_py3 import ConnectorConnectionError @@ -50,7 +50,6 @@ from .extension_error_info_py3 import ExtensionErrorInfo from .forest_summary_py3 import ForestSummary from .global_configuration_py3 import GlobalConfiguration - from .hotfix_py3 import Hotfix from .hotfixes_py3 import Hotfixes from .rule_error_info_py3 import RuleErrorInfo from .import_error_py3 import ImportError @@ -69,6 +68,7 @@ from .replication_status_py3 import ReplicationStatus from .replication_summary_py3 import ReplicationSummary from .replication_summary_list_py3 import ReplicationSummaryList + from .run_profiles_py3 import RunProfiles from .service_configuration_py3 import ServiceConfiguration from .service_properties_py3 import ServiceProperties from .service_member_properties_py3 import ServiceMemberProperties @@ -79,6 +79,7 @@ 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 @@ -96,7 +97,6 @@ from .partition import Partition from .run_step import RunStep from .run_profile import RunProfile - from .run_profiles import RunProfiles from .connector import Connector from .connectors import Connectors from .connector_connection_error import ConnectorConnectionError @@ -117,7 +117,6 @@ from .extension_error_info import ExtensionErrorInfo from .forest_summary import ForestSummary from .global_configuration import GlobalConfiguration - from .hotfix import Hotfix from .hotfixes import Hotfixes from .rule_error_info import RuleErrorInfo from .import_error import ImportError @@ -136,6 +135,7 @@ from .replication_status import ReplicationStatus from .replication_summary import ReplicationSummary from .replication_summary_list import ReplicationSummaryList + from .run_profiles import RunProfiles from .service_configuration import ServiceConfiguration from .service_properties import ServiceProperties from .service_member_properties import ServiceMemberProperties @@ -178,6 +178,7 @@ __all__ = [ 'Item', 'AdditionalInformation', + 'Hotfix', 'AddsServiceMember', 'Agent', 'HelpLink', @@ -195,7 +196,6 @@ 'Partition', 'RunStep', 'RunProfile', - 'RunProfiles', 'Connector', 'Connectors', 'ConnectorConnectionError', @@ -216,7 +216,6 @@ 'ExtensionErrorInfo', 'ForestSummary', 'GlobalConfiguration', - 'Hotfix', 'Hotfixes', 'RuleErrorInfo', 'ImportError', @@ -235,6 +234,7 @@ 'ReplicationStatus', 'ReplicationSummary', 'ReplicationSummaryList', + 'RunProfiles', 'ServiceConfiguration', 'ServiceProperties', 'ServiceMemberProperties', 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 index ac0ff45ac697..3baad2697292 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py @@ -49,7 +49,7 @@ class AddsServiceMember(Model): onboaraded to Azure Active Directory Connect Health. :type created_date: datetime :param dimensions: The server specific configuration related dimensions. - :type dimensions: object + :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. Possible @@ -58,7 +58,7 @@ class AddsServiceMember(Model): :type disabled_reason: str or ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason :param installed_qfe: The list of installed QFEs for the server. - :type installed_qfe: object + :type installed_qfe: 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 @@ -78,20 +78,23 @@ class AddsServiceMember(Model): :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 + :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: object + :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: object + :type properties: list[~azure.mgmt.adhybridhealthservice.models.Item] :param recommended_qfes: The list of recommended hotfixes for the server. - :type recommended_qfes: object + :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 @@ -120,22 +123,22 @@ class AddsServiceMember(Model): 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'dimensions': {'key': 'dimensions', 'type': 'object'}, + 'dimensions': {'key': 'dimensions', 'type': '[Item]'}, 'disabled': {'key': 'disabled', 'type': 'bool'}, 'disabled_reason': {'key': 'disabledReason', 'type': 'ServerDisabledReason'}, - 'installed_qfe': {'key': 'installedQfe', 'type': 'object'}, + 'installed_qfe': {'key': 'installedQfe', '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': 'object'}, - 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': 'object'}, + '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': 'object'}, - 'recommended_qfes': {'key': 'recommendedQfes', 'type': 'object'}, + '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'}, 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 index 7518ba0ffc8c..12bd9c57a887 100644 --- 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 @@ -49,7 +49,7 @@ class AddsServiceMember(Model): onboaraded to Azure Active Directory Connect Health. :type created_date: datetime :param dimensions: The server specific configuration related dimensions. - :type dimensions: object + :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. Possible @@ -58,7 +58,7 @@ class AddsServiceMember(Model): :type disabled_reason: str or ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason :param installed_qfe: The list of installed QFEs for the server. - :type installed_qfe: object + :type installed_qfe: 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 @@ -78,20 +78,23 @@ class AddsServiceMember(Model): :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 + :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: object + :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: object + :type properties: list[~azure.mgmt.adhybridhealthservice.models.Item] :param recommended_qfes: The list of recommended hotfixes for the server. - :type recommended_qfes: object + :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 @@ -120,22 +123,22 @@ class AddsServiceMember(Model): 'active_alerts': {'key': 'activeAlerts', 'type': 'int'}, 'additional_information': {'key': 'additionalInformation', 'type': 'str'}, 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'dimensions': {'key': 'dimensions', 'type': 'object'}, + 'dimensions': {'key': 'dimensions', 'type': '[Item]'}, 'disabled': {'key': 'disabled', 'type': 'bool'}, 'disabled_reason': {'key': 'disabledReason', 'type': 'ServerDisabledReason'}, - 'installed_qfe': {'key': 'installedQfe', 'type': 'object'}, + 'installed_qfe': {'key': 'installedQfe', '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': 'object'}, - 'monitoring_configurations_customized': {'key': 'monitoringConfigurationsCustomized', 'type': 'object'}, + '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': 'object'}, - 'recommended_qfes': {'key': 'recommendedQfes', 'type': 'object'}, + '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'}, diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py index 1c37dbd6855b..fa60b8e1bdae 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert.py @@ -56,9 +56,11 @@ class Alert(Model): raised. :type monitor_role_type: str :param active_alert_properties: The active alert properties. - :type active_alert_properties: object - :param resolved_alert_properties: The active alert properties. - :type resolved_alert_properties: object + :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. @@ -82,8 +84,8 @@ class Alert(Model): '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': 'object'}, - 'resolved_alert_properties': {'key': 'resolvedAlertProperties', 'type': 'object'}, + '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'}, diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py index f9a55f0ccc07..4489168ae8b5 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/alert_py3.py @@ -56,9 +56,11 @@ class Alert(Model): raised. :type monitor_role_type: str :param active_alert_properties: The active alert properties. - :type active_alert_properties: object - :param resolved_alert_properties: The active alert properties. - :type resolved_alert_properties: object + :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. @@ -82,8 +84,8 @@ class Alert(Model): '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': 'object'}, - 'resolved_alert_properties': {'key': 'resolvedAlertProperties', 'type': 'object'}, + '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'}, diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py index cf5f757d8dbc..c4be7b3ededf 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py @@ -42,7 +42,7 @@ class Connector(Model): :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.RunProfiles] + 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. @@ -61,7 +61,7 @@ class Connector(Model): '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': '[RunProfiles]'}, + 'run_profiles': {'key': 'runProfiles', 'type': '[RunProfile]'}, 'classes_included': {'key': 'classesIncluded', 'type': '[str]'}, 'attributes_included': {'key': 'attributesIncluded', 'type': '[str]'}, } diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py index e31e4669299e..525f7ea7a7af 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py @@ -42,7 +42,7 @@ class Connector(Model): :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.RunProfiles] + 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. @@ -61,7 +61,7 @@ class Connector(Model): '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': '[RunProfiles]'}, + 'run_profiles': {'key': 'runProfiles', 'type': '[RunProfile]'}, 'classes_included': {'key': 'classesIncluded', 'type': '[str]'}, 'attributes_included': {'key': 'attributesIncluded', 'type': '[str]'}, } 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 index be7cf84cf957..b1a3f8b59354 100644 --- 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 @@ -22,8 +22,8 @@ class ErrorReportUsersEntry(Model): :param last_updated: The date and time when the last error event was logged. :type last_updated: datetime - :param unique_id_addresses: The list of unique IP addresses. - :type unique_id_addresses: str + :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 """ @@ -32,7 +32,7 @@ class ErrorReportUsersEntry(Model): 'user_id': {'key': 'userId', 'type': 'str'}, 'ip_address': {'key': 'ipAddress', 'type': 'str'}, 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'unique_id_addresses': {'key': 'uniqueIdAddresses', 'type': 'str'}, + 'unique_ip_addresses': {'key': 'uniqueIpAddresses', 'type': 'str'}, 'total_error_attempts': {'key': 'totalErrorAttempts', 'type': 'int'}, } @@ -41,5 +41,5 @@ def __init__(self, **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_id_addresses = kwargs.get('unique_id_addresses', 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_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/error_report_users_entry_py3.py index 8caee156bea2..055c75321c94 100644 --- 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 @@ -22,8 +22,8 @@ class ErrorReportUsersEntry(Model): :param last_updated: The date and time when the last error event was logged. :type last_updated: datetime - :param unique_id_addresses: The list of unique IP addresses. - :type unique_id_addresses: str + :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 """ @@ -32,14 +32,14 @@ class ErrorReportUsersEntry(Model): 'user_id': {'key': 'userId', 'type': 'str'}, 'ip_address': {'key': 'ipAddress', 'type': 'str'}, 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'unique_id_addresses': {'key': 'uniqueIdAddresses', 'type': 'str'}, + '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_id_addresses: str=None, total_error_attempts: int=None, **kwargs) -> None: + 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_id_addresses = unique_id_addresses + self.unique_ip_addresses = unique_ip_addresses self.total_error_attempts = total_error_attempts 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 index 55b80debc1c1..0ea40efa0d01 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py @@ -54,6 +54,13 @@ class MergedExportError(Model): :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 = { @@ -75,6 +82,9 @@ class MergedExportError(Model): '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): @@ -97,3 +107,6 @@ def __init__(self, **kwargs): 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_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error_py3.py index 9655c3841ac5..d2335ac7eb3a 100644 --- 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 @@ -54,6 +54,13 @@ class MergedExportError(Model): :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 = { @@ -75,9 +82,12 @@ class MergedExportError(Model): '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, *, 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, **kwargs) -> None: + def __init__(self, *, 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.incoming_object_display_name = incoming_object_display_name self.incoming_object_type = incoming_object_type @@ -97,3 +107,6 @@ def __init__(self, *, incoming_object_display_name: str=None, incoming_object_ty 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/operations/configuration_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py index d2417c89a575..a75a89886e86 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/configuration_operations.py @@ -142,7 +142,7 @@ def add( request = self._client.post(url, query_parameters) response = self._client.send(request, header_parameters, stream=False, **operation_config) - if response.status_code not in [200, 403]: + if response.status_code not in [200]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp @@ -195,7 +195,7 @@ def get( request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, stream=False, **operation_config) - if response.status_code not in [200, 400, 403]: + if response.status_code not in [200]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp @@ -255,7 +255,7 @@ def update( response = self._client.send( request, header_parameters, body_content, stream=False, **operation_config) - if response.status_code not in [200, 400, 403]: + 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-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py index f66247ba0bd0..5ad12df29152 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/service_members_operations.py @@ -297,7 +297,7 @@ def delete( request = self._client.delete(url, query_parameters) response = self._client.send(request, header_parameters, stream=False, **operation_config) - if response.status_code not in [204]: + if response.status_code not in [200]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp From ca699df507dbffdf663d1c4b31d69146a5085425 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 4 May 2018 06:07:03 +0000 Subject: [PATCH 17/20] Generated from 250ef44471d7072c230b9be86b3aefeb2cf2ce01 Add files via upload --- .../adhybridhealthservice/models/__init__.py | 3 ++ .../models/adds_service_member.py | 9 +++--- .../models/adds_service_member_py3.py | 11 ++++---- .../models/global_configuration.py | 8 +++--- .../models/global_configuration_py3.py | 10 +++---- .../models/merged_export_error.py | 4 +++ .../models/merged_export_error_py3.py | 6 +++- .../adhybridhealthservice/models/result.py | 28 +++++++++++++++++++ .../models/result_py3.py | 28 +++++++++++++++++++ .../models/service_member_properties.py | 8 +++--- .../models/service_member_properties_py3.py | 10 +++---- .../operations/services_operations.py | 14 ++++++---- 12 files changed, 105 insertions(+), 34 deletions(-) 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 diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index d1a4de842d31..bed5f32076c0 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -68,6 +68,7 @@ from .replication_status_py3 import ReplicationStatus from .replication_summary_py3 import ReplicationSummary from .replication_summary_list_py3 import ReplicationSummaryList + from .result_py3 import Result from .run_profiles_py3 import RunProfiles from .service_configuration_py3 import ServiceConfiguration from .service_properties_py3 import ServiceProperties @@ -135,6 +136,7 @@ from .replication_status import ReplicationStatus from .replication_summary import ReplicationSummary from .replication_summary_list import ReplicationSummaryList + from .result import Result from .run_profiles import RunProfiles from .service_configuration import ServiceConfiguration from .service_properties import ServiceProperties @@ -234,6 +236,7 @@ 'ReplicationStatus', 'ReplicationSummary', 'ReplicationSummaryList', + 'Result', 'RunProfiles', 'ServiceConfiguration', 'ServiceProperties', 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 index 3baad2697292..72ae99403120 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py @@ -57,8 +57,9 @@ class AddsServiceMember(Model): 'DisabledDueToInactivity' :type disabled_reason: str or ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason - :param installed_qfe: The list of installed QFEs for the server. - :type installed_qfe: list[~azure.mgmt.adhybridhealthservice.models.Hotfix] + :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 @@ -126,7 +127,7 @@ class AddsServiceMember(Model): 'dimensions': {'key': 'dimensions', 'type': '[Item]'}, 'disabled': {'key': 'disabled', 'type': 'bool'}, 'disabled_reason': {'key': 'disabledReason', 'type': 'ServerDisabledReason'}, - 'installed_qfe': {'key': 'installedQfe', 'type': '[Hotfix]'}, + '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'}, @@ -164,7 +165,7 @@ def __init__(self, **kwargs): self.dimensions = kwargs.get('dimensions', None) self.disabled = kwargs.get('disabled', None) self.disabled_reason = kwargs.get('disabled_reason', None) - self.installed_qfe = kwargs.get('installed_qfe', 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) 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 index 12bd9c57a887..aca6865a8374 100644 --- 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 @@ -57,8 +57,9 @@ class AddsServiceMember(Model): 'DisabledDueToInactivity' :type disabled_reason: str or ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason - :param installed_qfe: The list of installed QFEs for the server. - :type installed_qfe: list[~azure.mgmt.adhybridhealthservice.models.Hotfix] + :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 @@ -126,7 +127,7 @@ class AddsServiceMember(Model): 'dimensions': {'key': 'dimensions', 'type': '[Item]'}, 'disabled': {'key': 'disabled', 'type': 'bool'}, 'disabled_reason': {'key': 'disabledReason', 'type': 'ServerDisabledReason'}, - 'installed_qfe': {'key': 'installedQfe', 'type': '[Hotfix]'}, + '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'}, @@ -145,7 +146,7 @@ class AddsServiceMember(Model): '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=None, installed_qfe=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: + 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=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 @@ -164,7 +165,7 @@ def __init__(self, *, domain_name: str=None, site_name: str=None, adds_roles=Non self.dimensions = dimensions self.disabled = disabled self.disabled_reason = disabled_reason - self.installed_qfe = installed_qfe + 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 diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py index cd1a27590889..cd735d8c4c42 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration.py @@ -22,8 +22,8 @@ class GlobalConfiguration(Model): :param password_sync_enabled: Indicates if password sync is enabled or not. :type password_sync_enabled: bool - :param num_saved_pwd_events: The number of saved password events. - :type num_saved_pwd_events: int + :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] """ @@ -32,7 +32,7 @@ class GlobalConfiguration(Model): 'version': {'key': 'version', 'type': 'int'}, 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, 'password_sync_enabled': {'key': 'passwordSyncEnabled', 'type': 'bool'}, - 'num_saved_pwd_events': {'key': 'numSavedPwdEvents', 'type': 'int'}, + 'num_saved_pwd_event': {'key': 'numSavedPwdEvent', 'type': 'int'}, 'feature_set': {'key': 'featureSet', 'type': '[Item]'}, } @@ -41,5 +41,5 @@ def __init__(self, **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_events = kwargs.get('num_saved_pwd_events', 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_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py index 7432fc5be22d..67d9788957b4 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/global_configuration_py3.py @@ -22,8 +22,8 @@ class GlobalConfiguration(Model): :param password_sync_enabled: Indicates if password sync is enabled or not. :type password_sync_enabled: bool - :param num_saved_pwd_events: The number of saved password events. - :type num_saved_pwd_events: int + :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] """ @@ -32,14 +32,14 @@ class GlobalConfiguration(Model): 'version': {'key': 'version', 'type': 'int'}, 'schema_xml': {'key': 'schemaXml', 'type': 'str'}, 'password_sync_enabled': {'key': 'passwordSyncEnabled', 'type': 'bool'}, - 'num_saved_pwd_events': {'key': 'numSavedPwdEvents', 'type': 'int'}, + '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_events: int=None, feature_set=None, **kwargs) -> None: + 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_events = num_saved_pwd_events + self.num_saved_pwd_event = num_saved_pwd_event self.feature_set = feature_set 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 index 0ea40efa0d01..20a692d3f0d5 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/merged_export_error.py @@ -15,6 +15,8 @@ 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. @@ -64,6 +66,7 @@ class MergedExportError(Model): """ _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'}, @@ -89,6 +92,7 @@ class MergedExportError(Model): 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) 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 index d2335ac7eb3a..23127c6768e7 100644 --- 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 @@ -15,6 +15,8 @@ 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. @@ -64,6 +66,7 @@ class MergedExportError(Model): """ _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'}, @@ -87,8 +90,9 @@ class MergedExportError(Model): 'export_error_status': {'key': 'exportErrorStatus', 'type': 'int'}, } - def __init__(self, *, 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: + 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 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/service_member_properties.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties.py index ae6cd839c93b..b5234125518b 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties.py @@ -39,8 +39,8 @@ class ServiceMemberProperties(Model): 'DisabledDueToInactivity' :type disabled_reason: str or ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason - :param installed_qfe: The list of installed QFEs for the server. - :type installed_qfe: object + :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 @@ -97,7 +97,7 @@ class ServiceMemberProperties(Model): 'dimensions': {'key': 'dimensions', 'type': 'object'}, 'disabled': {'key': 'disabled', 'type': 'bool'}, 'disabled_reason': {'key': 'disabledReason', 'type': 'ServerDisabledReason'}, - 'installed_qfe': {'key': 'installedQfe', 'type': 'object'}, + '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'}, @@ -127,7 +127,7 @@ def __init__(self, **kwargs): self.dimensions = kwargs.get('dimensions', None) self.disabled = kwargs.get('disabled', None) self.disabled_reason = kwargs.get('disabled_reason', None) - self.installed_qfe = kwargs.get('installed_qfe', 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) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties_py3.py index aa1d3008c1a7..a8b7a6ff3610 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties_py3.py @@ -39,8 +39,8 @@ class ServiceMemberProperties(Model): 'DisabledDueToInactivity' :type disabled_reason: str or ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason - :param installed_qfe: The list of installed QFEs for the server. - :type installed_qfe: object + :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 @@ -97,7 +97,7 @@ class ServiceMemberProperties(Model): 'dimensions': {'key': 'dimensions', 'type': 'object'}, 'disabled': {'key': 'disabled', 'type': 'bool'}, 'disabled_reason': {'key': 'disabledReason', 'type': 'ServerDisabledReason'}, - 'installed_qfe': {'key': 'installedQfe', 'type': 'object'}, + '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'}, @@ -116,7 +116,7 @@ class ServiceMemberProperties(Model): '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=None, installed_qfe=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: + 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=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(ServiceMemberProperties, self).__init__(**kwargs) self.service_member_id = service_member_id self.service_id = service_id @@ -127,7 +127,7 @@ def __init__(self, *, service_member_id: str=None, service_id: str=None, tenant_ self.dimensions = dimensions self.disabled = disabled self.disabled_reason = disabled_reason - self.installed_qfe = installed_qfe + 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 diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py index ad203c4c5694..983e97b22512 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/services_operations.py @@ -545,8 +545,9 @@ def get_feature_availibility( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: bool or ClientRawResponse if raw=true - :rtype: bool or ~msrest.pipeline.ClientRawResponse + :return: Result or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Result or + ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ # Construct URL @@ -583,7 +584,7 @@ def get_feature_availibility( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('bool', response) + deserialized = self._deserialize('Result', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -1506,8 +1507,9 @@ def get_tenant_whitelisting( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: bool or ClientRawResponse if raw=true - :rtype: bool or ~msrest.pipeline.ClientRawResponse + :return: Result or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.adhybridhealthservice.models.Result or + ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ # Construct URL @@ -1544,7 +1546,7 @@ def get_tenant_whitelisting( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('bool', response) + deserialized = self._deserialize('Result', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) From 0bb61b9f759b25e5bb3a1bfe9b1b7a1f33e67c61 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 4 May 2018 06:52:06 +0000 Subject: [PATCH 18/20] Generated from 6521187ab1a5ad6ab5de53d87f9e492788151e4e Add files via upload --- .../adhybridhealthservice/models/__init__.py | 9 +- .../models/ad_hybrid_health_service_enums.py | 29 +--- .../models/additional_information.py | 4 + .../models/additional_information_py3.py | 6 +- .../models/adds_service_member.py | 9 +- .../models/adds_service_member_py3.py | 11 +- .../models/associated_object.py | 8 +- .../models/associated_object_py3.py | 10 +- .../adhybridhealthservice/models/connector.py | 4 + .../models/connector_py3.py | 6 +- .../adhybridhealthservice/models/run_step.py | 12 +- .../models/run_step_py3.py | 14 +- .../models/service_member.py | 143 ++++++++++++++--- .../models/service_member_properties.py | 146 ------------------ .../models/service_member_properties_py3.py | 146 ------------------ .../models/service_member_py3.py | 145 ++++++++++++++--- 16 files changed, 300 insertions(+), 402 deletions(-) delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties.py delete mode 100644 azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties_py3.py diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index bed5f32076c0..cfbaa138d4f8 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -72,7 +72,6 @@ from .run_profiles_py3 import RunProfiles from .service_configuration_py3 import ServiceConfiguration from .service_properties_py3 import ServiceProperties - from .service_member_properties_py3 import ServiceMemberProperties from .service_member_py3 import ServiceMember from .tabular_export_error_py3 import TabularExportError from .tenant_py3 import Tenant @@ -140,7 +139,6 @@ from .run_profiles import RunProfiles from .service_configuration import ServiceConfiguration from .service_properties import ServiceProperties - from .service_member_properties import ServiceMemberProperties from .service_member import ServiceMember from .tabular_export_error import TabularExportError from .tenant import Tenant @@ -161,7 +159,6 @@ from .credential_paged import CredentialPaged from .global_configuration_paged import GlobalConfigurationPaged from .ad_hybrid_health_service_enums import ( - ServerDisabledReason, MonitoringLevel, Level, State, @@ -170,11 +167,11 @@ ValueType, AttributeMappingType, DeltaOperationType, - RunStepOperationType, HealthStatus, AlgorithmStepType, PasswordOperationTypes, ServiceType, + ServerDisabledReason, ) __all__ = [ @@ -240,7 +237,6 @@ 'RunProfiles', 'ServiceConfiguration', 'ServiceProperties', - 'ServiceMemberProperties', 'ServiceMember', 'TabularExportError', 'Tenant', @@ -260,7 +256,6 @@ 'ServiceMemberPaged', 'CredentialPaged', 'GlobalConfigurationPaged', - 'ServerDisabledReason', 'MonitoringLevel', 'Level', 'State', @@ -269,9 +264,9 @@ 'ValueType', 'AttributeMappingType', 'DeltaOperationType', - 'RunStepOperationType', 'HealthStatus', 'AlgorithmStepType', 'PasswordOperationTypes', 'ServiceType', + 'ServerDisabledReason', ] 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 index c6b2d96721c0..2f5f4712cf93 100644 --- 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 @@ -12,14 +12,6 @@ from enum import Enum -class ServerDisabledReason(str, Enum): - - none = "None" - gdpr_stop_collection = "GdprStopCollection" - deleted_from_portal = "DeletedFromPortal" - disabled_due_to_inactivity = "DisabledDueToInactivity" - - class MonitoringLevel(str, Enum): partial = "Partial" @@ -90,19 +82,6 @@ class DeltaOperationType(str, Enum): delet_add = "DeletAdd" -class RunStepOperationType(str, Enum): - - undefined = "Undefined" - full_import = "FullImport" - delta_import = "DeltaImport" - full_synchornization = "FullSynchornization" - delta_synchronization = "DeltaSynchronization" - apply_rules = "ApplyRules" - export = "Export" - full_export = "FullExport" - full_import_reevaluate_rules = "FullImportReevaluateRules" - - class HealthStatus(str, Enum): healthy = "Healthy" @@ -141,3 +120,11 @@ class ServiceType(str, Enum): undefined = "Undefined" aad_connect_sync = "AadConnectSync" dir_sync = "DirSync" + + +class ServerDisabledReason(str, Enum): + + none = "None" + gdpr_stop_collection = "GdprStopCollection" + deleted_from_portal = "DeletedFromPortal" + disabled_due_to_inactivity = "DisabledDueToInactivity" diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.py index 03db2ddbe6f1..875ae2aecba5 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information.py @@ -22,12 +22,15 @@ class AdditionalInformation(Model): :param properties: The list of properties which are included in the aditional 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): @@ -35,3 +38,4 @@ def __init__(self, **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 index 320ba41966b4..f8164c80b88e 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/additional_information_py3.py @@ -22,16 +22,20 @@ class AdditionalInformation(Model): :param properties: The list of properties which are included in the aditional 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, **kwargs) -> None: + 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 index 72ae99403120..741d6b2c314b 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/adds_service_member.py @@ -52,11 +52,8 @@ class AddsServiceMember(Model): :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. Possible - values include: 'None', 'GdprStopCollection', 'DeletedFromPortal', - 'DisabledDueToInactivity' - :type disabled_reason: str or - ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason + :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] @@ -126,7 +123,7 @@ class AddsServiceMember(Model): 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, 'dimensions': {'key': 'dimensions', 'type': '[Item]'}, 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'disabled_reason': {'key': 'disabledReason', 'type': 'ServerDisabledReason'}, + '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'}, 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 index aca6865a8374..276a5e2c3e42 100644 --- 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 @@ -52,11 +52,8 @@ class AddsServiceMember(Model): :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. Possible - values include: 'None', 'GdprStopCollection', 'DeletedFromPortal', - 'DisabledDueToInactivity' - :type disabled_reason: str or - ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason + :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] @@ -126,7 +123,7 @@ class AddsServiceMember(Model): 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, 'dimensions': {'key': 'dimensions', 'type': '[Item]'}, 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'disabled_reason': {'key': 'disabledReason', 'type': 'ServerDisabledReason'}, + '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'}, @@ -146,7 +143,7 @@ class AddsServiceMember(Model): '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=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: + 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 diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object.py index f8dd657167b3..a6a547c2c03b 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object.py @@ -35,8 +35,8 @@ class AssociatedObject(Model): :type source_anchor: str :param source_of_authority: The source of authority. :type source_of_authority: str - :param time_occured: The time of the error. - :type time_occured: datetime + :param time_occurred: The time of the error. + :type time_occurred: datetime :param user_principal_name: The UPN. :type user_principal_name: str """ @@ -52,7 +52,7 @@ class AssociatedObject(Model): 'proxy_addresses': {'key': 'proxyAddresses', 'type': 'str'}, 'source_anchor': {'key': 'sourceAnchor', 'type': 'str'}, 'source_of_authority': {'key': 'sourceOfAuthority', 'type': 'str'}, - 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, + 'time_occurred': {'key': 'timeOccurred', 'type': 'iso-8601'}, 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, } @@ -68,5 +68,5 @@ def __init__(self, **kwargs): 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_occured = kwargs.get('time_occured', 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 index 99556313d82e..fe343cc6e2bb 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/associated_object_py3.py @@ -35,8 +35,8 @@ class AssociatedObject(Model): :type source_anchor: str :param source_of_authority: The source of authority. :type source_of_authority: str - :param time_occured: The time of the error. - :type time_occured: datetime + :param time_occurred: The time of the error. + :type time_occurred: datetime :param user_principal_name: The UPN. :type user_principal_name: str """ @@ -52,11 +52,11 @@ class AssociatedObject(Model): 'proxy_addresses': {'key': 'proxyAddresses', 'type': 'str'}, 'source_anchor': {'key': 'sourceAnchor', 'type': 'str'}, 'source_of_authority': {'key': 'sourceOfAuthority', 'type': 'str'}, - 'time_occured': {'key': 'timeOccured', 'type': 'iso-8601'}, + '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_occured=None, user_principal_name: str=None, **kwargs) -> None: + 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 @@ -68,5 +68,5 @@ def __init__(self, *, display_name: str=None, distinguished_name: str=None, last self.proxy_addresses = proxy_addresses self.source_anchor = source_anchor self.source_of_authority = source_of_authority - self.time_occured = time_occured + self.time_occurred = time_occurred self.user_principal_name = user_principal_name diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py index c4be7b3ededf..b06c067c800e 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector.py @@ -15,6 +15,8 @@ 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. @@ -50,6 +52,7 @@ class Connector(Model): """ _attribute_map = { + 'connector_id': {'key': 'connectorId', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'version': {'key': 'version', 'type': 'int'}, @@ -68,6 +71,7 @@ class Connector(Model): 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) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py index 525f7ea7a7af..44e94c8e426d 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/connector_py3.py @@ -15,6 +15,8 @@ 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. @@ -50,6 +52,7 @@ class Connector(Model): """ _attribute_map = { + 'connector_id': {'key': 'connectorId', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'version': {'key': 'version', 'type': 'int'}, @@ -66,8 +69,9 @@ class Connector(Model): 'attributes_included': {'key': 'attributesIncluded', 'type': '[str]'}, } - def __init__(self, *, 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: + 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 diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py index c4838f53a3da..2af9b38436f7 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py @@ -26,12 +26,8 @@ class RunStep(Model): :param partition_id: The Id of the partition that a current run setp operation is executing. :type partition_id: str - :param run_step_operation_type: The run step operation types. Possible - values include: 'Undefined', 'FullImport', 'DeltaImport', - 'FullSynchornization', 'DeltaSynchronization', 'ApplyRules', 'Export', - 'FullExport', 'FullImportReevaluateRules' - :type run_step_operation_type: str or - ~azure.mgmt.adhybridhealthservice.models.RunStepOperationType + :param operation_type: The run step operation types. + :type operation_type: int """ _attribute_map = { @@ -40,7 +36,7 @@ class RunStep(Model): 'object_delete_limit': {'key': 'objectDeleteLimit', 'type': 'int'}, 'page_size': {'key': 'pageSize', 'type': 'int'}, 'partition_id': {'key': 'partitionId', 'type': 'str'}, - 'run_step_operation_type': {'key': 'runStepOperationType', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'int'}, } def __init__(self, **kwargs): @@ -50,4 +46,4 @@ def __init__(self, **kwargs): 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.run_step_operation_type = kwargs.get('run_step_operation_type', None) + self.operation_type = kwargs.get('operation_type', 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 index a3cb24873866..b792d6ad263d 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step_py3.py @@ -26,12 +26,8 @@ class RunStep(Model): :param partition_id: The Id of the partition that a current run setp operation is executing. :type partition_id: str - :param run_step_operation_type: The run step operation types. Possible - values include: 'Undefined', 'FullImport', 'DeltaImport', - 'FullSynchornization', 'DeltaSynchronization', 'ApplyRules', 'Export', - 'FullExport', 'FullImportReevaluateRules' - :type run_step_operation_type: str or - ~azure.mgmt.adhybridhealthservice.models.RunStepOperationType + :param operation_type: The run step operation types. + :type operation_type: int """ _attribute_map = { @@ -40,14 +36,14 @@ class RunStep(Model): 'object_delete_limit': {'key': 'objectDeleteLimit', 'type': 'int'}, 'page_size': {'key': 'pageSize', 'type': 'int'}, 'partition_id': {'key': 'partitionId', 'type': 'str'}, - 'run_step_operation_type': {'key': 'runStepOperationType', 'type': 'str'}, + 'operation_type': {'key': 'operationType', '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, run_step_operation_type=None, **kwargs) -> None: + 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, **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.run_step_operation_type = run_step_operation_type + self.operation_type = operation_type diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py index 39b53cd1b264..5465f44f8ae3 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py @@ -13,31 +13,134 @@ class ServiceMember(Model): - """The details of the server for a given onboarded service. + """The server properties for a given service. - :param continuation_token: The page-continuation token to use with a paged - version of this API. - :type continuation_token: str - :param total_count: The total number of servers onboarded for a given - service. - :type total_count: int - :param next_link: The link used to get the next page of the operation. - :type next_link: str - :param value: The server properties. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.ServiceMemberProperties] + :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. Possible + values include: 'None', 'GdprStopCollection', 'DeletedFromPortal', + 'DisabledDueToInactivity' + :type disabled_reason: str or + ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason + :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 = { - 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, - 'total_count': {'key': 'totalCount', 'type': 'int'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ServiceMemberProperties]'}, + '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': 'ServerDisabledReason'}, + '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.continuation_token = kwargs.get('continuation_token', None) - self.total_count = kwargs.get('total_count', None) - self.next_link = kwargs.get('next_link', None) - self.value = kwargs.get('value', 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/service_member_properties.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties.py deleted file mode 100644 index b5234125518b..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties.py +++ /dev/null @@ -1,146 +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 ServiceMemberProperties(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. Possible - values include: 'None', 'GdprStopCollection', 'DeletedFromPortal', - 'DisabledDueToInactivity' - :type disabled_reason: str or - ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason - :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': 'ServerDisabledReason'}, - '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(ServiceMemberProperties, 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_properties_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties_py3.py deleted file mode 100644 index a8b7a6ff3610..000000000000 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_properties_py3.py +++ /dev/null @@ -1,146 +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 ServiceMemberProperties(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. Possible - values include: 'None', 'GdprStopCollection', 'DeletedFromPortal', - 'DisabledDueToInactivity' - :type disabled_reason: str or - ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason - :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': 'ServerDisabledReason'}, - '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=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(ServiceMemberProperties, 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_member_py3.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py index 587e9d0cf2e8..586d8c1164af 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py @@ -13,31 +13,134 @@ class ServiceMember(Model): - """The details of the server for a given onboarded service. + """The server properties for a given service. - :param continuation_token: The page-continuation token to use with a paged - version of this API. - :type continuation_token: str - :param total_count: The total number of servers onboarded for a given - service. - :type total_count: int - :param next_link: The link used to get the next page of the operation. - :type next_link: str - :param value: The server properties. - :type value: - list[~azure.mgmt.adhybridhealthservice.models.ServiceMemberProperties] + :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. Possible + values include: 'None', 'GdprStopCollection', 'DeletedFromPortal', + 'DisabledDueToInactivity' + :type disabled_reason: str or + ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason + :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 = { - 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, - 'total_count': {'key': 'totalCount', 'type': 'int'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ServiceMemberProperties]'}, + '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': 'ServerDisabledReason'}, + '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, *, continuation_token: str=None, total_count: int=None, next_link: str=None, value=None, **kwargs) -> None: + 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=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.continuation_token = continuation_token - self.total_count = total_count - self.next_link = next_link - self.value = value + 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 From 4f919d2f6fc8e9e98ff09e3b9e44c2435a8d916a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 4 May 2018 08:24:57 +0000 Subject: [PATCH 19/20] Generated from 615ed7da24b16c1699eaa97085af60161e09f309 Update ServiceConfiguration.json --- .../mgmt/adhybridhealthservice/models/__init__.py | 4 ---- .../models/ad_hybrid_health_service_enums.py | 15 --------------- .../mgmt/adhybridhealthservice/models/run_step.py | 4 ++++ .../adhybridhealthservice/models/run_step_py3.py | 6 +++++- .../models/service_configuration.py | 8 +++----- .../models/service_configuration_py3.py | 10 ++++------ .../models/service_member.py | 9 +++------ .../models/service_member_py3.py | 11 ++++------- .../operations/adds_services_operations.py | 2 +- 9 files changed, 24 insertions(+), 45 deletions(-) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py index cfbaa138d4f8..f461d1e8e577 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/__init__.py @@ -170,8 +170,6 @@ HealthStatus, AlgorithmStepType, PasswordOperationTypes, - ServiceType, - ServerDisabledReason, ) __all__ = [ @@ -267,6 +265,4 @@ 'HealthStatus', 'AlgorithmStepType', 'PasswordOperationTypes', - 'ServiceType', - 'ServerDisabledReason', ] 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 index 2f5f4712cf93..ac5e34c7f127 100644 --- 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 @@ -113,18 +113,3 @@ class PasswordOperationTypes(str, Enum): undefined = "Undefined" set = "Set" change = "Change" - - -class ServiceType(str, Enum): - - undefined = "Undefined" - aad_connect_sync = "AadConnectSync" - dir_sync = "DirSync" - - -class ServerDisabledReason(str, Enum): - - none = "None" - gdpr_stop_collection = "GdprStopCollection" - deleted_from_portal = "DeletedFromPortal" - disabled_due_to_inactivity = "DisabledDueToInactivity" diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py index 2af9b38436f7..1b21ed9603f3 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step.py @@ -28,6 +28,8 @@ class RunStep(Model): :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 = { @@ -37,6 +39,7 @@ class RunStep(Model): '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): @@ -47,3 +50,4 @@ def __init__(self, **kwargs): 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 index b792d6ad263d..e18eb818def9 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/run_step_py3.py @@ -28,6 +28,8 @@ class RunStep(Model): :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 = { @@ -37,9 +39,10 @@ class RunStep(Model): '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, **kwargs) -> None: + 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 @@ -47,3 +50,4 @@ def __init__(self, *, batch_size: int=None, object_process_limit: int=None, obje 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 index a4e1baa0f23e..9a1b8099a2b0 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py @@ -17,10 +17,8 @@ class ServiceConfiguration(Model): :param version: The version of the sync service. :type version: str - :param service_type: The service type of the server. Possible values - include: 'Undefined', 'AadConnectSync', 'DirSync' - :type service_type: str or - ~azure.mgmt.adhybridhealthservice.models.ServiceType + :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. @@ -39,7 +37,7 @@ class ServiceConfiguration(Model): _attribute_map = { 'version': {'key': 'version', 'type': 'str'}, - 'service_type': {'key': 'serviceType', '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'}, 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 index 96adac7b1378..abc50db92106 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_py3.py @@ -17,10 +17,8 @@ class ServiceConfiguration(Model): :param version: The version of the sync service. :type version: str - :param service_type: The service type of the server. Possible values - include: 'Undefined', 'AadConnectSync', 'DirSync' - :type service_type: str or - ~azure.mgmt.adhybridhealthservice.models.ServiceType + :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. @@ -39,7 +37,7 @@ class ServiceConfiguration(Model): _attribute_map = { 'version': {'key': 'version', 'type': 'str'}, - 'service_type': {'key': 'serviceType', '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'}, @@ -49,7 +47,7 @@ class ServiceConfiguration(Model): 'sql_database_size': {'key': 'sqlDatabaseSize', 'type': 'int'}, } - def __init__(self, *, version: str=None, service_type=None, service_account: str=None, sql_server: str=None, sql_version: str=None, sql_edition: str=None, sql_instance: str=None, sql_database: str=None, sql_database_size: int=None, **kwargs) -> None: + 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: str=None, sql_database_size: int=None, **kwargs) -> None: super(ServiceConfiguration, self).__init__(**kwargs) self.version = version self.service_type = service_type diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py index 5465f44f8ae3..a18703252f35 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member.py @@ -34,11 +34,8 @@ class ServiceMember(Model): :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. Possible - values include: 'None', 'GdprStopCollection', 'DeletedFromPortal', - 'DisabledDueToInactivity' - :type disabled_reason: str or - ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason + :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 @@ -96,7 +93,7 @@ class ServiceMember(Model): 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, 'dimensions': {'key': 'dimensions', 'type': 'object'}, 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'disabled_reason': {'key': 'disabledReason', 'type': 'ServerDisabledReason'}, + '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'}, 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 index 586d8c1164af..b38c86eb374a 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_member_py3.py @@ -34,11 +34,8 @@ class ServiceMember(Model): :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. Possible - values include: 'None', 'GdprStopCollection', 'DeletedFromPortal', - 'DisabledDueToInactivity' - :type disabled_reason: str or - ~azure.mgmt.adhybridhealthservice.models.ServerDisabledReason + :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 @@ -96,7 +93,7 @@ class ServiceMember(Model): 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, 'dimensions': {'key': 'dimensions', 'type': 'object'}, 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'disabled_reason': {'key': 'disabledReason', 'type': 'ServerDisabledReason'}, + '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'}, @@ -116,7 +113,7 @@ class ServiceMember(Model): '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=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: + 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 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 index 327de6c480c6..4c7303853489 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/operations/adds_services_operations.py @@ -935,7 +935,7 @@ def list_server_alerts( """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 laert details + :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. From cc3a67f4dce71742f86eee771ed371db9f9e21c1 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 4 May 2018 08:37:28 +0000 Subject: [PATCH 20/20] Generated from 3c22e77a253e95d6ca8aeab6bbfcf6577b07197c Add files via upload --- .../models/service_configuration.py | 8 ++++---- .../models/service_configuration_py3.py | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py index 9a1b8099a2b0..6897af27aff0 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration.py @@ -29,8 +29,8 @@ class ServiceConfiguration(Model): :type sql_edition: str :param sql_instance: The SQL instance details. :type sql_instance: str - :param sql_database: The SQL database. - :type sql_database: 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 """ @@ -43,7 +43,7 @@ class ServiceConfiguration(Model): 'sql_version': {'key': 'sqlVersion', 'type': 'str'}, 'sql_edition': {'key': 'sqlEdition', 'type': 'str'}, 'sql_instance': {'key': 'sqlInstance', 'type': 'str'}, - 'sql_database': {'key': 'sqlDatabase', 'type': 'str'}, + 'sql_database_name': {'key': 'sqlDatabaseName', 'type': 'str'}, 'sql_database_size': {'key': 'sqlDatabaseSize', 'type': 'int'}, } @@ -56,5 +56,5 @@ def __init__(self, **kwargs): 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 = kwargs.get('sql_database', 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 index abc50db92106..aa92278aea5a 100644 --- a/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_py3.py +++ b/azure-mgmt-adhybridhealthservice/azure/mgmt/adhybridhealthservice/models/service_configuration_py3.py @@ -29,8 +29,8 @@ class ServiceConfiguration(Model): :type sql_edition: str :param sql_instance: The SQL instance details. :type sql_instance: str - :param sql_database: The SQL database. - :type sql_database: 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 """ @@ -43,11 +43,11 @@ class ServiceConfiguration(Model): 'sql_version': {'key': 'sqlVersion', 'type': 'str'}, 'sql_edition': {'key': 'sqlEdition', 'type': 'str'}, 'sql_instance': {'key': 'sqlInstance', 'type': 'str'}, - 'sql_database': {'key': 'sqlDatabase', '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: str=None, sql_database_size: int=None, **kwargs) -> None: + 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 @@ -56,5 +56,5 @@ def __init__(self, *, version: str=None, service_type: int=None, service_account self.sql_version = sql_version self.sql_edition = sql_edition self.sql_instance = sql_instance - self.sql_database = sql_database + self.sql_database_name = sql_database_name self.sql_database_size = sql_database_size