Skip to content

Commit

Permalink
CodeGen from PR 18614 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
add API version 2022-05-01 (Azure#18614)

* add API version 2022-05-01

* fix readme
  • Loading branch information
SDKAuto committed Apr 8, 2022
1 parent 819f905 commit 4d19ecd
Show file tree
Hide file tree
Showing 14 changed files with 635 additions and 146 deletions.
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": "1f034c929345ef45116f2f835ab2e14dc2c6e560",
"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-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --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-05-01"
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-05-01",
"total_api_version_list": ["2022-05-01"],
"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-05-01"
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,9 +7,16 @@
# --------------------------------------------------------------------------

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
from ._models_py3 import KeyVaultSecretReferenceSecretInfo
from ._models_py3 import KeyVaultSecretUriSecretInfo
from ._models_py3 import LinkerList
from ._models_py3 import LinkerPatch
from ._models_py3 import LinkerResource
Expand All @@ -19,33 +26,46 @@
from ._models_py3 import ProxyResource
from ._models_py3 import Resource
from ._models_py3 import SecretAuthInfo
from ._models_py3 import SecretInfoBase
from ._models_py3 import SecretStore
from ._models_py3 import ServicePrincipalCertificateAuthInfo
from ._models_py3 import ServicePrincipalSecretAuthInfo
from ._models_py3 import SourceConfiguration
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 ._models_py3 import ValueSecretInfo


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

__all__ = [
'AuthInfoBase',
'AzureKeyVaultProperties',
'AzureResource',
'AzureResourcePropertiesBase',
'ConfluentBootstrapServer',
'ConfluentSchemaRegistry',
'ErrorAdditionalInfo',
'ErrorDetail',
'ErrorResponse',
'KeyVaultSecretReferenceSecretInfo',
'KeyVaultSecretUriSecretInfo',
'LinkerList',
'LinkerPatch',
'LinkerResource',
Expand All @@ -55,21 +75,27 @@
'ProxyResource',
'Resource',
'SecretAuthInfo',
'SecretInfoBase',
'SecretStore',
'ServicePrincipalCertificateAuthInfo',
'ServicePrincipalSecretAuthInfo',
'SourceConfiguration',
'SourceConfigurationResult',
'SystemAssignedIdentityAuthInfo',
'SystemData',
'TargetServiceBase',
'UserAssignedIdentityAuthInfo',
'VNetSolution',
'ValidateResult',
'ValidationResultItem',
'ValueSecretInfo',
'ActionType',
'AuthType',
'ClientType',
'CreatedByType',
'LinkerStatus',
'Origin',
'SecretType',
'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,31 @@ class Origin(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
SYSTEM = "system"
USER_SYSTEM = "user,system"

class SecretType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The secret type.
"""

RAW_VALUE = "rawValue"
KEY_VAULT_SECRET_URI = "keyVaultSecretUri"
KEY_VAULT_SECRET_REFERENCE = "keyVaultSecretReference"

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

0 comments on commit 4d19ecd

Please sign in to comment.