Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR adhybridhealthservice/resource-manager] OAV 0.9.5 better error handling #3894

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions azure-mgmt-adhybridhealthservice/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:

Release History
===============

0.1.0 (1970-01-01)
++++++++++++++++++

* Initial Release
4 changes: 4 additions & 0 deletions azure-mgmt-adhybridhealthservice/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

49 changes: 49 additions & 0 deletions azure-mgmt-adhybridhealthservice/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure MyService Management Client Library.

Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

For code examples, see `MyService Management
<https://docs.microsoft.com/python/api/overview/azure/>`__
on docs.microsoft.com.


Provide Feedback
================

If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.
1 change: 1 addition & 0 deletions azure-mgmt-adhybridhealthservice/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
1 change: 1 addition & 0 deletions azure-mgmt-adhybridhealthservice/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -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

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

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.adds_services_operations import AddsServicesOperations
from .operations.alerts_operations import AlertsOperations
from .operations.configuration_operations import ConfigurationOperations
from .operations.dimensions_operations import DimensionsOperations
from .operations.adds_service_members_operations import AddsServiceMembersOperations
from .operations.ad_domain_service_members_operations import AdDomainServiceMembersOperations
from .operations.adds_services_user_preference_operations import AddsServicesUserPreferenceOperations
from .operations.adds_service_operations import AddsServiceOperations
from .operations.adds_services_replication_status_operations import AddsServicesReplicationStatusOperations
from .operations.adds_services_service_members_operations import AddsServicesServiceMembersOperations
from .operations.operations import Operations
from .operations.reports_operations import ReportsOperations
from .operations.services_operations import ServicesOperations
from .operations.service_operations import ServiceOperations
from .operations.service_members_operations import ServiceMembersOperations
from . import models


class ADHybridHealthServiceConfiguration(AzureConfiguration):
"""Configuration for ADHybridHealthService
Note that all parameters used to create this instance are saved as instance
attributes.

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
: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 Directory Connect Health

:ivar config: Configuration for client.
:vartype config: ADHybridHealthServiceConfiguration

:ivar adds_services: AddsServices operations
:vartype adds_services: azure.mgmt.adhybridhealthservice.operations.AddsServicesOperations
:ivar alerts: Alerts operations
:vartype alerts: azure.mgmt.adhybridhealthservice.operations.AlertsOperations
:ivar configuration: Configuration operations
:vartype configuration: azure.mgmt.adhybridhealthservice.operations.ConfigurationOperations
:ivar dimensions: Dimensions operations
:vartype dimensions: azure.mgmt.adhybridhealthservice.operations.DimensionsOperations
:ivar adds_service_members: AddsServiceMembers operations
:vartype adds_service_members: azure.mgmt.adhybridhealthservice.operations.AddsServiceMembersOperations
:ivar ad_domain_service_members: AdDomainServiceMembers operations
:vartype ad_domain_service_members: azure.mgmt.adhybridhealthservice.operations.AdDomainServiceMembersOperations
:ivar adds_services_user_preference: AddsServicesUserPreference operations
:vartype adds_services_user_preference: azure.mgmt.adhybridhealthservice.operations.AddsServicesUserPreferenceOperations
:ivar adds_service: AddsService operations
:vartype adds_service: azure.mgmt.adhybridhealthservice.operations.AddsServiceOperations
:ivar adds_services_replication_status: AddsServicesReplicationStatus operations
:vartype adds_services_replication_status: azure.mgmt.adhybridhealthservice.operations.AddsServicesReplicationStatusOperations
:ivar adds_services_service_members: AddsServicesServiceMembers operations
:vartype adds_services_service_members: azure.mgmt.adhybridhealthservice.operations.AddsServicesServiceMembersOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.adhybridhealthservice.operations.Operations
:ivar reports: Reports operations
:vartype reports: azure.mgmt.adhybridhealthservice.operations.ReportsOperations
:ivar services: Services operations
:vartype services: azure.mgmt.adhybridhealthservice.operations.ServicesOperations
:ivar service: Service operations
:vartype service: azure.mgmt.adhybridhealthservice.operations.ServiceOperations
:ivar service_members: ServiceMembers operations
:vartype service_members: azure.mgmt.adhybridhealthservice.operations.ServiceMembersOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param str base_url: Service URL
"""

def __init__(
self, credentials, base_url=None):

self.config = ADHybridHealthServiceConfiguration(credentials, base_url)
super(ADHybridHealthService, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2014-01-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.adds_services = AddsServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.alerts = AlertsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.configuration = ConfigurationOperations(
self._client, self.config, self._serialize, self._deserialize)
self.dimensions = DimensionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.adds_service_members = AddsServiceMembersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.ad_domain_service_members = AdDomainServiceMembersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.adds_services_user_preference = AddsServicesUserPreferenceOperations(
self._client, self.config, self._serialize, self._deserialize)
self.adds_service = AddsServiceOperations(
self._client, self.config, self._serialize, self._deserialize)
self.adds_services_replication_status = AddsServicesReplicationStatusOperations(
self._client, self.config, self._serialize, self._deserialize)
self.adds_services_service_members = AddsServicesServiceMembersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.reports = ReportsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.services = ServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.service = ServiceOperations(
self._client, self.config, self._serialize, self._deserialize)
self.service_members = ServiceMembersOperations(
self._client, self.config, self._serialize, self._deserialize)
Loading