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 track2_azure-mgmt-healthbot] Fix CSharp output folder for Azure Health Bot SDK. #4692

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
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._healthbot import Healthbot
from ._healthbot_client import HealthbotClient
from ._version import VERSION

__version__ = VERSION
__all__ = ['Healthbot']
__all__ = ['HealthbotClient']

try:
from ._patch import patch_sdk # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
from azure.core.credentials import TokenCredential


class HealthbotConfiguration(Configuration):
"""Configuration for Healthbot.
class HealthbotClientConfiguration(Configuration):
"""Configuration for HealthbotClient.

Note that all parameters used to create this instance are saved as instance
attributes.
Expand All @@ -44,7 +44,7 @@ def __init__(
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
super(HealthbotConfiguration, self).__init__(**kwargs)
super(HealthbotClientConfiguration, self).__init__(**kwargs)

self.credential = credential
self.subscription_id = subscription_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

from azure.core.credentials import TokenCredential

from ._configuration import HealthbotConfiguration
from ._configuration import HealthbotClientConfiguration
from .operations import BotsOperations
from .operations import Operations
from . import models


class Healthbot(object):
class HealthbotClient(object):
"""Microsoft Healthcare Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs.

:ivar bots: BotsOperations operations
Expand All @@ -48,7 +48,7 @@ def __init__(
# type: (...) -> None
if not base_url:
base_url = 'https://management.azure.com'
self._config = HealthbotConfiguration(credential, subscription_id, **kwargs)
self._config = HealthbotClientConfiguration(credential, subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
Expand All @@ -65,7 +65,7 @@ def close(self):
self._client.close()

def __enter__(self):
# type: () -> Healthbot
# type: () -> HealthbotClient
self._client.__enter__()
return self

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"chosen_version": "2020-12-08",
"total_api_version_list": ["2020-12-08"],
"client": {
"name": "Healthbot",
"filename": "_healthbot",
"name": "HealthbotClient",
"filename": "_healthbot_client",
"description": "Microsoft Healthcare Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b1"
VERSION = "2020-10-20-preview"
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._healthbot import Healthbot
__all__ = ['Healthbot']
from ._healthbot_client import HealthbotClient
__all__ = ['HealthbotClient']
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
from azure.core.credentials_async import AsyncTokenCredential


class HealthbotConfiguration(Configuration):
"""Configuration for Healthbot.
class HealthbotClientConfiguration(Configuration):
"""Configuration for HealthbotClient.

Note that all parameters used to create this instance are saved as instance
attributes.
Expand All @@ -41,7 +41,7 @@ def __init__(
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
super(HealthbotConfiguration, self).__init__(**kwargs)
super(HealthbotClientConfiguration, self).__init__(**kwargs)

self.credential = credential
self.subscription_id = subscription_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential

from ._configuration import HealthbotConfiguration
from ._configuration import HealthbotClientConfiguration
from .operations import BotsOperations
from .operations import Operations
from .. import models


class Healthbot(object):
class HealthbotClient(object):
"""Microsoft Healthcare Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs.

:ivar bots: BotsOperations operations
Expand All @@ -45,7 +45,7 @@ def __init__(
) -> None:
if not base_url:
base_url = 'https://management.azure.com'
self._config = HealthbotConfiguration(credential, subscription_id, **kwargs)
self._config = HealthbotClientConfiguration(credential, subscription_id, **kwargs)
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
Expand All @@ -60,7 +60,7 @@ def __init__(
async def close(self) -> None:
await self._client.close()

async def __aenter__(self) -> "Healthbot":
async def __aenter__(self) -> "HealthbotClient":
await self._client.__aenter__()
return self

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from ._models import TrackedResource # type: ignore
from ._models import ValidationResult # type: ignore

from ._healthbot_enums import (
from ._healthbot_client_enums import (
IdentityType,
SkuName,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from azure.core.exceptions import HttpResponseError
import msrest.serialization

from ._healthbot_enums import *
from ._healthbot_client_enums import *


class AvailableOperations(msrest.serialization.Model):
Expand Down