Skip to content
Merged
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 @@ -13,6 +13,7 @@
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.operations import Operations
from .operations.media_service_operations import MediaServiceOperations
from . import models

Expand Down Expand Up @@ -58,6 +59,8 @@ class MediaServicesManagementClient(object):
:ivar config: Configuration for client.
:vartype config: MediaServicesManagementClientConfiguration

:ivar operations: Operations operations
:vartype operations: azure.mgmt.media.operations.Operations
:ivar media_service: MediaService operations
:vartype media_service: azure.mgmt.media.operations.MediaServiceOperations

Expand All @@ -81,5 +84,7 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.media_service = MediaServiceOperations(
self._client, self.config, self._serialize, self._deserialize)
6 changes: 6 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
from .resource import Resource
from .service_keys import ServiceKeys
from .sync_storage_keys_input import SyncStorageKeysInput
from .operation_display import OperationDisplay
from .operation import Operation
from .operation_list_result import OperationListResult
from .media_service_paged import MediaServicePaged
from .media_services_management_client_enums import (
ResourceType,
Expand All @@ -39,6 +42,9 @@
'Resource',
'ServiceKeys',
'SyncStorageKeysInput',
'OperationDisplay',
'Operation',
'OperationListResult',
'MediaServicePaged',
'ResourceType',
'EntityNameUnavailabilityReason',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CheckNameAvailabilityInput(Model):
"""

_validation = {
'name': {'required': True, 'max_length': 24, 'min_length': 3, 'pattern': '^[a-z0-9]'},
'name': {'required': True, 'max_length': 24, 'min_length': 3, 'pattern': r'^[a-z0-9]{3,24}$'},
'type': {'required': True, 'constant': True},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class CheckNameAvailabilityOutput(Model):
"""

_attribute_map = {
'name_available': {'key': 'NameAvailable', 'type': 'bool'},
'reason': {'key': 'Reason', 'type': 'EntityNameUnavailabilityReason'},
'message': {'key': 'Message', 'type': 'str'},
'name_available': {'key': 'nameAvailable', 'type': 'bool'},
'reason': {'key': 'reason', 'type': 'EntityNameUnavailabilityReason'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, name_available=None, reason=None, message=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class MediaServicePaged(Paged):
"""
A paging container for iterating over a list of MediaService object
A paging container for iterating over a list of :class:`MediaService <azure.mgmt.media.models.MediaService>` object
"""

_attribute_map = {
Expand Down
39 changes: 39 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/operation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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.serialization import Model


class Operation(Model):
"""A Media Services REST API operation.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar name: Operation name: {provider}/{resource}/{operation}
:vartype name: str
:param display: The object that represents the operation.
:type display: :class:`OperationDisplay
<azure.mgmt.media.models.OperationDisplay>`
"""

_validation = {
'name': {'readonly': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationDisplay'},
}

def __init__(self, display=None):
self.name = None
self.display = display
45 changes: 45 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/operation_display.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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.serialization import Model


class OperationDisplay(Model):
"""The object that represents the operation.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar provider: Service provider: Microsoft.Media
:vartype provider: str
:ivar resource: Resource on which the operation is performed: Invoice,
etc.
:vartype resource: str
:ivar operation: Operation type: Read, write, delete, etc.
:vartype operation: str
"""

_validation = {
'provider': {'readonly': True},
'resource': {'readonly': True},
'operation': {'readonly': True},
}

_attribute_map = {
'provider': {'key': 'provider', 'type': 'str'},
'resource': {'key': 'resource', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
}

def __init__(self):
self.provider = None
self.resource = None
self.operation = None
42 changes: 42 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/operation_list_result.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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.serialization import Model


class OperationListResult(Model):
"""Result of the request to list Media Services operations.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar value: List of Media Services operations supported by the
Microsoft.Media resource provider.
:vartype value: list of :class:`Operation
<azure.mgmt.media.models.Operation>`
:ivar next_link: URL to get the next set of operation list results if
there are any.
:vartype next_link: str
"""

_validation = {
'value': {'readonly': True},
'next_link': {'readonly': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[Operation]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self):
self.value = None
self.next_link = None
2 changes: 2 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .operations import Operations
from .media_service_operations import MediaServiceOperations

__all__ = [
'Operations',
'MediaServiceOperations',
]
Loading