Skip to content

Commit

Permalink
CodeGen from PR 13541 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Revert "[Hub Generated] Review request for Microsoft.DocumentDB to add version preview/2021-04-01-preview (Azure#13357)" (Azure#13541)

This reverts commit e1b647a.
  • Loading branch information
SDKAuto committed Mar 23, 2021
1 parent 7da6b64 commit 4c1e8c8
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 94 deletions.
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

0 comments on commit 4c1e8c8

Please sign in to comment.