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-servicelinker] update readme #9548

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
4 changes: 2 additions & 2 deletions sdk/servicelinker/azure-mgmt-servicelinker/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/python@5.12.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "429a7ea873cc1bbd4df133f71427162e15e258b1",
"commit": "1197aec6f7a9ef9a5a61891b3004b213f6f3ee70",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/servicelinker/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/servicelinker/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/servicelinker/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(
raise ValueError("Parameter 'credential' must not be None.")

self.credential = credential
self.api_version = "2021-11-01-preview"
self.api_version = "2022-01-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-servicelinker/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-11-01-preview",
"total_api_version_list": ["2021-11-01-preview"],
"chosen_version": "2022-01-01-preview",
"total_api_version_list": ["2022-01-01-preview"],
"client": {
"name": "MicrosoftServiceLinker",
"filename": "_microsoft_service_linker",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class MicrosoftServiceLinker:
"""Microsoft.ServiceLinker provider.

:ivar linker: LinkerOperations operations
:vartype linker: microsoft_service_linker.operations.LinkerOperations
:vartype linker: azure.mgmt.servicelinker.operations.LinkerOperations
:ivar operations: Operations operations
:vartype operations: microsoft_service_linker.operations.Operations
:vartype operations: azure.mgmt.servicelinker.operations.Operations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param base_url: Service URL. Default value is 'https://management.azure.com'.
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.0b2"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(
raise ValueError("Parameter 'credential' must not be None.")

self.credential = credential
self.api_version = "2021-11-01-preview"
self.api_version = "2022-01-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-servicelinker/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class MicrosoftServiceLinker:
"""Microsoft.ServiceLinker provider.

:ivar linker: LinkerOperations operations
:vartype linker: microsoft_service_linker.aio.operations.LinkerOperations
:vartype linker: azure.mgmt.servicelinker.aio.operations.LinkerOperations
:ivar operations: Operations operations
:vartype operations: microsoft_service_linker.aio.operations.Operations
:vartype operations: azure.mgmt.servicelinker.aio.operations.Operations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param base_url: Service URL. Default value is 'https://management.azure.com'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LinkerOperations:
instantiates it for you and attaches it as an attribute.

:ivar models: Alias to model classes used in this operation group.
:type models: ~microsoft_service_linker.models
:type models: ~azure.mgmt.servicelinker.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
Expand Down Expand Up @@ -61,7 +61,7 @@ def list(
:type resource_uri: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either LinkerList or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~microsoft_service_linker.models.LinkerList]
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.servicelinker.models.LinkerList]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.LinkerList"]
Expand Down Expand Up @@ -132,7 +132,7 @@ async def get(
:type linker_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: LinkerResource, or the result of cls(response)
:rtype: ~microsoft_service_linker.models.LinkerResource
:rtype: ~azure.mgmt.servicelinker.models.LinkerResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.LinkerResource"]
Expand Down Expand Up @@ -232,7 +232,7 @@ async def begin_create_or_update(
:param linker_name: The name Linker resource.
:type linker_name: str
:param parameters: Linker details.
:type parameters: ~microsoft_service_linker.models.LinkerResource
:type parameters: ~azure.mgmt.servicelinker.models.LinkerResource
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
Expand All @@ -243,7 +243,7 @@ async def begin_create_or_update(
Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either LinkerResource or the result of
cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~microsoft_service_linker.models.LinkerResource]
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.servicelinker.models.LinkerResource]
:raises: ~azure.core.exceptions.HttpResponseError
"""
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]
Expand Down Expand Up @@ -448,7 +448,7 @@ async def begin_update(
:param linker_name: The name Linker resource.
:type linker_name: str
:param parameters: Linker details.
:type parameters: ~microsoft_service_linker.models.LinkerPatch
:type parameters: ~azure.mgmt.servicelinker.models.LinkerPatch
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
Expand All @@ -459,7 +459,7 @@ async def begin_update(
Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either LinkerResource or the result of
cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~microsoft_service_linker.models.LinkerResource]
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.servicelinker.models.LinkerResource]
:raises: ~azure.core.exceptions.HttpResponseError
"""
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]
Expand Down Expand Up @@ -568,7 +568,7 @@ async def begin_validate(
Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either ValidateResult or the result of
cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~microsoft_service_linker.models.ValidateResult]
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.servicelinker.models.ValidateResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod]
Expand Down Expand Up @@ -626,7 +626,7 @@ async def list_configurations(
:type linker_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SourceConfigurationResult, or the result of cls(response)
:rtype: ~microsoft_service_linker.models.SourceConfigurationResult
:rtype: ~azure.mgmt.servicelinker.models.SourceConfigurationResult
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.SourceConfigurationResult"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Operations:
instantiates it for you and attaches it as an attribute.

:ivar models: Alias to model classes used in this operation group.
:type models: ~microsoft_service_linker.models
:type models: ~azure.mgmt.servicelinker.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
Expand All @@ -56,7 +56,7 @@ def list(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either OperationListResult or the result of cls(response)
:rtype:
~azure.core.async_paging.AsyncItemPaged[~microsoft_service_linker.models.OperationListResult]
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.servicelinker.models.OperationListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
# --------------------------------------------------------------------------

from ._models_py3 import AuthInfoBase
from ._models_py3 import AzureKeyVaultProperties
from ._models_py3 import AzureResource
from ._models_py3 import AzureResourcePropertiesBase
from ._models_py3 import ConfluentBootstrapServer
from ._models_py3 import ConfluentSchemaRegistry
from ._models_py3 import ErrorAdditionalInfo
from ._models_py3 import ErrorDetail
from ._models_py3 import ErrorResponse
Expand All @@ -26,23 +31,31 @@
from ._models_py3 import SourceConfigurationResult
from ._models_py3 import SystemAssignedIdentityAuthInfo
from ._models_py3 import SystemData
from ._models_py3 import TargetServiceBase
from ._models_py3 import UserAssignedIdentityAuthInfo
from ._models_py3 import VNetSolution
from ._models_py3 import ValidateResult
from ._models_py3 import ValidationResultItem


from ._microsoft_service_linker_enums import (
ActionType,
AuthType,
ClientType,
CreatedByType,
LinkerStatus,
Origin,
Type,
VNetSolutionType,
ValidationItemResult,
)

__all__ = [
'AuthInfoBase',
'AzureKeyVaultProperties',
'AzureResource',
'AzureResourcePropertiesBase',
'ConfluentBootstrapServer',
'ConfluentSchemaRegistry',
'ErrorAdditionalInfo',
'ErrorDetail',
'ErrorResponse',
Expand All @@ -62,14 +75,17 @@
'SourceConfigurationResult',
'SystemAssignedIdentityAuthInfo',
'SystemData',
'TargetServiceBase',
'UserAssignedIdentityAuthInfo',
'VNetSolution',
'ValidateResult',
'ValidationResultItem',
'ActionType',
'AuthType',
'ClientType',
'CreatedByType',
'LinkerStatus',
'Origin',
'Type',
'VNetSolutionType',
'ValidationItemResult',
]
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ class CreatedByType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
MANAGED_IDENTITY = "ManagedIdentity"
KEY = "Key"

class LinkerStatus(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Specifies if the linker is healthy.
"""

HEALTHY = "Healthy"
NOT_HEALTHY = "Not healthy"

class Origin(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit
logs UX. Default value is "user,system"
Expand All @@ -67,6 +60,23 @@ class Origin(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
SYSTEM = "system"
USER_SYSTEM = "user,system"

class Type(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The target service type.
"""

AZURE_RESOURCE = "AzureResource"
CONFLUENT_BOOTSTRAP_SERVER = "ConfluentBootstrapServer"
CONFLUENT_SCHEMA_REGISTRY = "ConfluentSchemaRegistry"
KEY_VAULT = "KeyVault"

class ValidationItemResult(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The result of validation
"""

SUCCESS = "success"
FAILED = "failed"
WARNING = "warning"

class VNetSolutionType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Type of VNet solution.
"""
Expand Down
Loading