Skip to content
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
11 changes: 7 additions & 4 deletions sdk/managedservices/azure-mgmt-managedservices/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.3.0",
"use": "@autorest/[email protected]",
"commit": "528c0cffd4de3d4acdf451a1ea5f7cf6f3cb790c",
"autorest": "3.4.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "2d57dfad630d8a6d7e651a3df3168f7fbcb7728e",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/managedservices/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.3.0",
"autorest_command": "autorest specification/managedservices/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/[email protected] --version=3.4.2",
"readme": "specification/managedservices/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


class ManagedServicesClient(object):
"""Specification for ManagedServices.
"""The specification for ManagedServices.

:ivar registration_definitions: RegistrationDefinitionsOperations operations
:vartype registration_definitions: azure.mgmt.managedservices.operations.RegistrationDefinitionsOperations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"client": {
"name": "ManagedServicesClient",
"filename": "_managed_services_client",
"description": "Specification for ManagedServices.",
"description": "The specification for ManagedServices.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
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 = "6.0.0"
VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


class ManagedServicesClient(object):
"""Specification for ManagedServices.
"""The specification for ManagedServices.

:ivar registration_definitions: RegistrationDefinitionsOperations operations
:vartype registration_definitions: azure.mgmt.managedservices.aio.operations.RegistrationDefinitionsOperations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ def list(
self,
scope: str,
filter: Optional[str] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.MarketplaceRegistrationDefinitionList"]:
"""Gets a list of the marketplace registration definitions for the marketplace identifier.

:param scope: Scope of the resource.
:param scope: The scope of the resource.
:type scope: str
:param filter: The filter query parameter. Might be used to filter marketplace registration
definition by plan identifier, publisher, version etc.
:param filter: The filter query parameter to filter marketplace registration definitions by
plan identifier, publisher, version etc.
:type filter: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either MarketplaceRegistrationDefinitionList or the result of cls(response)
Expand Down Expand Up @@ -121,13 +121,13 @@ async def get(
self,
scope: str,
marketplace_identifier: str,
**kwargs
**kwargs: Any
) -> "_models.MarketplaceRegistrationDefinition":
"""Get the marketplace registration definition for the marketplace identifier.

:param scope: Scope of the resource.
:param scope: The scope of the resource.
:type scope: str
:param marketplace_identifier: Market place identifier. Expected Formats -
:param marketplace_identifier: The Azure Marketplace identifier. Expected formats:
{publisher}.{product[-preview]}.{planName}.{version} or
{publisher}.{product[-preview]}.{planName} or {publisher}.{product[-preview]} or {publisher}).
:type marketplace_identifier: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ def __init__(self, client, config, serializer, deserializer) -> None:
def list(
self,
filter: Optional[str] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.MarketplaceRegistrationDefinitionList"]:
"""Gets a list of the marketplace registration definitions for the marketplace identifier.

:param filter: The filter query parameter. Might be used to filter marketplace registration
definition by plan identifier, publisher, version etc.
:param filter: The filter query parameter to filter marketplace registration definitions by
plan identifier, publisher, version etc.
:type filter: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either MarketplaceRegistrationDefinitionList or the result of cls(response)
Expand Down Expand Up @@ -113,11 +113,11 @@ async def get_next(next_link=None):
async def get(
self,
marketplace_identifier: str,
**kwargs
**kwargs: Any
) -> "_models.MarketplaceRegistrationDefinition":
"""Get the marketplace registration definition for the marketplace identifier.

:param marketplace_identifier: Market place identifier. Expected Formats -
:param marketplace_identifier: The Azure Marketplace identifier. Expected formats:
{publisher}.{product[-preview]}.{planName}.{version} or
{publisher}.{product[-preview]}.{planName} or {publisher}.{product[-preview]} or {publisher}).
:type marketplace_identifier: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:

async def list(
self,
**kwargs
**kwargs: Any
) -> "_models.OperationList":
"""Gets a list of the operations.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ async def get(
scope: str,
registration_assignment_id: str,
expand_registration_definition: Optional[bool] = None,
**kwargs
**kwargs: Any
) -> "_models.RegistrationAssignment":
"""Gets the details of specified registration assignment.
"""Gets the details of the specified registration assignment.

:param scope: Scope of the resource.
:param scope: The scope of the resource.
:type scope: str
:param registration_assignment_id: Guid of the registration assignment.
:param registration_assignment_id: The GUID of the registration assignment.
:type registration_assignment_id: str
:param expand_registration_definition: Tells whether to return registration definition details
also along with registration assignment details.
:param expand_registration_definition: The flag indicating whether to return the registration
definition details along with the registration assignment details.
:type expand_registration_definition: bool
:keyword callable cls: A custom type or function that will be passed the direct response
:return: RegistrationAssignment, or the result of cls(response)
Expand Down Expand Up @@ -111,7 +111,7 @@ async def _delete_initial(
self,
scope: str,
registration_assignment_id: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
Expand Down Expand Up @@ -155,18 +155,18 @@ async def begin_delete(
self,
scope: str,
registration_assignment_id: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Deletes the specified registration assignment.

:param scope: Scope of the resource.
:param scope: The scope of the resource.
:type scope: str
:param registration_assignment_id: Guid of the registration assignment.
:param registration_assignment_id: The GUID of the registration assignment.
:type registration_assignment_id: str
: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: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
Expand Down Expand Up @@ -219,7 +219,7 @@ async def _create_or_update_initial(
scope: str,
registration_assignment_id: str,
request_body: "_models.RegistrationAssignment",
**kwargs
**kwargs: Any
) -> "_models.RegistrationAssignment":
cls = kwargs.pop('cls', None) # type: ClsType["_models.RegistrationAssignment"]
error_map = {
Expand Down Expand Up @@ -276,20 +276,20 @@ async def begin_create_or_update(
scope: str,
registration_assignment_id: str,
request_body: "_models.RegistrationAssignment",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.RegistrationAssignment"]:
"""Creates or updates a registration assignment.

:param scope: Scope of the resource.
:param scope: The scope of the resource.
:type scope: str
:param registration_assignment_id: Guid of the registration assignment.
:param registration_assignment_id: The GUID of the registration assignment.
:type registration_assignment_id: str
:param request_body: The parameters required to create new registration assignment.
:type request_body: ~azure.mgmt.managedservices.models.RegistrationAssignment
: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: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either RegistrationAssignment or the result of cls(response)
Expand Down Expand Up @@ -345,14 +345,14 @@ def list(
self,
scope: str,
expand_registration_definition: Optional[bool] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.RegistrationAssignmentList"]:
"""Gets a list of the registration assignments.

:param scope: Scope of the resource.
:param scope: The scope of the resource.
:type scope: str
:param expand_registration_definition: Tells whether to return registration definition details
also along with registration assignment details.
:param expand_registration_definition: The flag indicating whether to return the registration
definition details along with the registration assignment details.
:type expand_registration_definition: bool
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either RegistrationAssignmentList or the result of cls(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ async def get(
self,
scope: str,
registration_definition_id: str,
**kwargs
**kwargs: Any
) -> "_models.RegistrationDefinition":
"""Gets the registration definition details.

:param scope: Scope of the resource.
:param scope: The scope of the resource.
:type scope: str
:param registration_definition_id: Guid of the registration definition.
:param registration_definition_id: The GUID of the registration definition.
:type registration_definition_id: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: RegistrationDefinition, or the result of cls(response)
Expand Down Expand Up @@ -105,13 +105,13 @@ async def delete(
self,
registration_definition_id: str,
scope: str,
**kwargs
**kwargs: Any
) -> None:
"""Deletes the registration definition.

:param registration_definition_id: Guid of the registration definition.
:param registration_definition_id: The GUID of the registration definition.
:type registration_definition_id: str
:param scope: Scope of the resource.
:param scope: The scope of the resource.
:type scope: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
Expand Down Expand Up @@ -161,7 +161,7 @@ async def _create_or_update_initial(
registration_definition_id: str,
scope: str,
request_body: "_models.RegistrationDefinition",
**kwargs
**kwargs: Any
) -> "_models.RegistrationDefinition":
cls = kwargs.pop('cls', None) # type: ClsType["_models.RegistrationDefinition"]
error_map = {
Expand Down Expand Up @@ -218,20 +218,20 @@ async def begin_create_or_update(
registration_definition_id: str,
scope: str,
request_body: "_models.RegistrationDefinition",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.RegistrationDefinition"]:
"""Creates or updates a registration definition.

:param registration_definition_id: Guid of the registration definition.
:param registration_definition_id: The GUID of the registration definition.
:type registration_definition_id: str
:param scope: Scope of the resource.
:param scope: The scope of the resource.
:type scope: str
:param request_body: The parameters required to create new registration definition.
:param request_body: The parameters required to create a new registration definition.
:type request_body: ~azure.mgmt.managedservices.models.RegistrationDefinition
: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: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either RegistrationDefinition or the result of cls(response)
Expand Down Expand Up @@ -286,11 +286,11 @@ def get_long_running_output(pipeline_response):
def list(
self,
scope: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.RegistrationDefinitionList"]:
"""Gets a list of the registration definitions.

:param scope: Scope of the resource.
:param scope: The scope of the resource.
:type scope: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either RegistrationDefinitionList or the result of cls(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

try:
from ._models_py3 import Authorization
from ._models_py3 import EligibleApprover
from ._models_py3 import EligibleAuthorization
from ._models_py3 import ErrorDefinition
from ._models_py3 import ErrorResponse
Expand All @@ -29,6 +30,7 @@
from ._models_py3 import RegistrationDefinitionProperties
except (SyntaxError, ImportError):
from ._models import Authorization # type: ignore
from ._models import EligibleApprover # type: ignore
from ._models import EligibleAuthorization # type: ignore
from ._models import ErrorDefinition # type: ignore
from ._models import ErrorResponse # type: ignore
Expand Down Expand Up @@ -56,6 +58,7 @@

__all__ = [
'Authorization',
'EligibleApprover',
'EligibleAuthorization',
'ErrorDefinition',
'ErrorResponse',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ def __getattr__(cls, name):


class MultiFactorAuthProvider(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""MFA provider.
"""The multi-factor authorization provider to be used for just-in-time access requests.
"""

AZURE = "Azure"
NONE = "None"

class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Current state of the registration definition.
"""The current provisioning state of the registration definition.
"""

NOT_SPECIFIED = "NotSpecified"
Expand Down
Loading