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
Original file line number Diff line number Diff line change
Expand Up @@ -289,54 +289,17 @@ def __init__(self, **kwargs):
self.type = None


class ProxyResource(Resource):
"""Proxy Resource.

The resource model definition for a Azure Resource Manager proxy resource.
It will not have tags and a location.

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. E.g.
"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)


class BackupResource(ProxyResource):
class BackupResource(ARMProxyResource):
"""A restorable backup of a Cassandra cluster.

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}
:ivar id: The unique resource identifier of the database account.
:vartype id: str
:ivar name: The name of the resource
:ivar name: The name of the database account.
:vartype name: str
:ivar type: The type of the resource. E.g.
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
:ivar type: The type of Azure resource.
:vartype type: str
:param properties:
:type properties: ~azure.mgmt.cosmosdb.models.BackupResourceProperties
Expand Down Expand Up @@ -2094,19 +2057,17 @@ def __init__(self, **kwargs):
self.collection_names = kwargs.get('collection_names', None)


class DataCenterResource(ProxyResource):
class DataCenterResource(ARMProxyResource):
"""A managed Cassandra data center.

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}
:ivar id: The unique resource identifier of the database account.
:vartype id: str
:ivar name: The name of the resource
:ivar name: The name of the database account.
:vartype name: str
:ivar type: The type of the resource. E.g.
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
:ivar type: The type of Azure resource.
:vartype type: str
:param properties: Properties of a managed Cassandra data center.
:type properties: ~azure.mgmt.cosmosdb.models.DataCenterResourceProperties
Expand Down Expand Up @@ -4275,6 +4236,41 @@ def __init__(self, **kwargs):
self.not_data_actions = kwargs.get('not_data_actions', None)


class ProxyResource(Resource):
"""Proxy Resource.

The resource model definition for a Azure Resource Manager proxy resource.
It will not have tags and a location.

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. E.g.
"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)


class PrivateEndpointConnection(ProxyResource):
"""A private endpoint connection.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,54 +289,17 @@ def __init__(self, **kwargs) -> None:
self.type = None


class ProxyResource(Resource):
"""Proxy Resource.

The resource model definition for a Azure Resource Manager proxy resource.
It will not have tags and a location.

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. E.g.
"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)


class BackupResource(ProxyResource):
class BackupResource(ARMProxyResource):
"""A restorable backup of a Cassandra cluster.

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}
:ivar id: The unique resource identifier of the database account.
:vartype id: str
:ivar name: The name of the resource
:ivar name: The name of the database account.
:vartype name: str
:ivar type: The type of the resource. E.g.
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
:ivar type: The type of Azure resource.
:vartype type: str
:param properties:
:type properties: ~azure.mgmt.cosmosdb.models.BackupResourceProperties
Expand Down Expand Up @@ -2094,19 +2057,17 @@ def __init__(self, *, database_name: str=None, collection_names=None, **kwargs)
self.collection_names = collection_names


class DataCenterResource(ProxyResource):
class DataCenterResource(ARMProxyResource):
"""A managed Cassandra data center.

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}
:ivar id: The unique resource identifier of the database account.
:vartype id: str
:ivar name: The name of the resource
:ivar name: The name of the database account.
:vartype name: str
:ivar type: The type of the resource. E.g.
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
:ivar type: The type of Azure resource.
:vartype type: str
:param properties: Properties of a managed Cassandra data center.
:type properties: ~azure.mgmt.cosmosdb.models.DataCenterResourceProperties
Expand Down Expand Up @@ -4275,6 +4236,41 @@ def __init__(self, *, data_actions=None, not_data_actions=None, **kwargs) -> Non
self.not_data_actions = not_data_actions


class ProxyResource(Resource):
"""Proxy Resource.

The resource model definition for a Azure Resource Manager proxy resource.
It will not have tags and a location.

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. E.g.
"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)


class PrivateEndpointConnection(ProxyResource):
"""A private endpoint connection.

Expand Down