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
12 changes: 9 additions & 3 deletions azure-mgmt-storagesync/azure/mgmt/storagesync/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
try:
from .storage_sync_error_details_py3 import StorageSyncErrorDetails
from .storage_sync_error_py3 import StorageSyncError, StorageSyncErrorException
from .resource_py3 import Resource
from .subscription_state_py3 import SubscriptionState
from .storage_sync_service_py3 import StorageSyncService
from .sync_group_py3 import SyncGroup
Expand All @@ -34,11 +33,13 @@
from .post_backup_response_py3 import PostBackupResponse
from .workflow_array_py3 import WorkflowArray
from .storage_sync_service_update_parameters_py3 import StorageSyncServiceUpdateParameters
from .proxy_resource_py3 import ProxyResource
from .tracked_resource_py3 import TrackedResource
from .azure_entity_resource_py3 import AzureEntityResource
from .resource_py3 import Resource
except (SyntaxError, ImportError):
from .storage_sync_error_details import StorageSyncErrorDetails
from .storage_sync_error import StorageSyncError, StorageSyncErrorException
from .resource import Resource
from .subscription_state import SubscriptionState
from .storage_sync_service import StorageSyncService
from .sync_group import SyncGroup
Expand All @@ -60,7 +61,10 @@
from .post_backup_response import PostBackupResponse
from .workflow_array import WorkflowArray
from .storage_sync_service_update_parameters import StorageSyncServiceUpdateParameters
from .proxy_resource import ProxyResource
from .tracked_resource import TrackedResource
from .azure_entity_resource import AzureEntityResource
from .resource import Resource
from .operation_entity_paged import OperationEntityPaged
from .storage_sync_service_paged import StorageSyncServicePaged
from .sync_group_paged import SyncGroupPaged
Expand All @@ -75,7 +79,6 @@
__all__ = [
'StorageSyncErrorDetails',
'StorageSyncError', 'StorageSyncErrorException',
'Resource',
'SubscriptionState',
'StorageSyncService',
'SyncGroup',
Expand All @@ -97,7 +100,10 @@
'PostBackupResponse',
'WorkflowArray',
'StorageSyncServiceUpdateParameters',
'ProxyResource',
'TrackedResource',
'AzureEntityResource',
'Resource',
'OperationEntityPaged',
'StorageSyncServicePaged',
'SyncGroupPaged',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 .resource import Resource


class AzureEntityResource(Resource):
"""The resource model definition for a Azure Resource Manager resource with an
etag.

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

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:ivar etag: Resource Etag.
:vartype etag: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'etag': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AzureEntityResource, self).__init__(**kwargs)
self.etag = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 .resource_py3 import Resource


class AzureEntityResource(Resource):
"""The resource model definition for a Azure Resource Manager resource with an
etag.

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

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:ivar etag: Resource Etag.
:vartype etag: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'etag': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(AzureEntityResource, self).__init__(**kwargs)
self.etag = None
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ class CloudEndpoint(Resource):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The id of the resource.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource.
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param storage_account_key: Storage Account access key.
:type storage_account_key: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ class CloudEndpoint(Resource):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The id of the resource.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource.
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param storage_account_key: Storage Account access key.
:type storage_account_key: str
Expand Down
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 .resource import Resource


class ProxyResource(Resource):
"""The resource model definition for a ARM proxy resource. It will have
everything other than required location and tags.

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

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ProxyResource, self).__init__(**kwargs)
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 .resource_py3 import Resource


class ProxyResource(Resource):
"""The resource model definition for a ARM proxy resource. It will have
everything other than required location and tags.

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

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(ProxyResource, self).__init__(**kwargs)
10 changes: 6 additions & 4 deletions azure-mgmt-storagesync/azure/mgmt/storagesync/models/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@


class Resource(Model):
"""The Azure Resource Manager resource.
"""Resource.

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

:ivar id: The id of the resource.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource.
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@


class Resource(Model):
"""The Azure Resource Manager resource.
"""Resource.

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

:ivar id: The id of the resource.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource.
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ class ServerEndpoint(Resource):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The id of the resource.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource.
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param server_local_path: Server Local path.
:type server_local_path: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ class ServerEndpoint(Resource):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The id of the resource.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource.
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param server_local_path: Server Local path.
:type server_local_path: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ class StorageSyncService(TrackedResource):

All required parameters must be populated in order to send to Azure.

:ivar id: The id of the resource.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource.
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ class StorageSyncService(TrackedResource):

All required parameters must be populated in order to send to Azure.

:ivar id: The id of the resource.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource.
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
Expand Down
Loading