-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from a03ebb5e6ea5c7aa1585f40be78db1703c328084 (#4424)
Adding virtualclusters.json to readme.md
- Loading branch information
1 parent
73323d3
commit 4bab3ff
Showing
9 changed files
with
698 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# 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 .tracked_resource import TrackedResource | ||
|
||
|
||
class VirtualCluster(TrackedResource): | ||
"""An Azure SQL virtual cluster. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar id: Resource ID. | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param location: Required. Resource location. | ||
:type location: str | ||
:param tags: Resource tags. | ||
:type tags: dict[str, str] | ||
:ivar subnet_id: Subnet resource ID for the virtual cluster. | ||
:vartype subnet_id: str | ||
:param family: If the service has different generations of hardware, for | ||
the same SKU, then that can be captured here. | ||
:type family: str | ||
:ivar child_resources: List of resources in this virtual cluster. | ||
:vartype child_resources: list[str] | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'location': {'required': True}, | ||
'subnet_id': {'readonly': True}, | ||
'child_resources': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'location': {'key': 'location', 'type': 'str'}, | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, | ||
'family': {'key': 'properties.family', 'type': 'str'}, | ||
'child_resources': {'key': 'properties.childResources', 'type': '[str]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(VirtualCluster, self).__init__(**kwargs) | ||
self.subnet_id = None | ||
self.family = kwargs.get('family', None) | ||
self.child_resources = None |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-sql/azure/mgmt/sql/models/virtual_cluster_paged.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 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.paging import Paged | ||
|
||
|
||
class VirtualClusterPaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`VirtualCluster <azure.mgmt.sql.models.VirtualCluster>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[VirtualCluster]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(VirtualClusterPaged, self).__init__(*args, **kwargs) |
66 changes: 66 additions & 0 deletions
66
azure-mgmt-sql/azure/mgmt/sql/models/virtual_cluster_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# 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 .tracked_resource_py3 import TrackedResource | ||
|
||
|
||
class VirtualCluster(TrackedResource): | ||
"""An Azure SQL virtual cluster. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar id: Resource ID. | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param location: Required. Resource location. | ||
:type location: str | ||
:param tags: Resource tags. | ||
:type tags: dict[str, str] | ||
:ivar subnet_id: Subnet resource ID for the virtual cluster. | ||
:vartype subnet_id: str | ||
:param family: If the service has different generations of hardware, for | ||
the same SKU, then that can be captured here. | ||
:type family: str | ||
:ivar child_resources: List of resources in this virtual cluster. | ||
:vartype child_resources: list[str] | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'location': {'required': True}, | ||
'subnet_id': {'readonly': True}, | ||
'child_resources': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'location': {'key': 'location', 'type': 'str'}, | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, | ||
'family': {'key': 'properties.family', 'type': 'str'}, | ||
'child_resources': {'key': 'properties.childResources', 'type': '[str]'}, | ||
} | ||
|
||
def __init__(self, *, location: str, tags=None, family: str=None, **kwargs) -> None: | ||
super(VirtualCluster, self).__init__(location=location, tags=tags, **kwargs) | ||
self.subnet_id = None | ||
self.family = family | ||
self.child_resources = None |
49 changes: 49 additions & 0 deletions
49
azure-mgmt-sql/azure/mgmt/sql/models/virtual_cluster_update.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 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 VirtualClusterUpdate(Model): | ||
"""An update request for an Azure SQL Database virtual cluster. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar subnet_id: Subnet resource ID for the virtual cluster. | ||
:vartype subnet_id: str | ||
:param family: If the service has different generations of hardware, for | ||
the same SKU, then that can be captured here. | ||
:type family: str | ||
:ivar child_resources: List of resources in this virtual cluster. | ||
:vartype child_resources: list[str] | ||
:param tags: Resource tags. | ||
:type tags: dict[str, str] | ||
""" | ||
|
||
_validation = { | ||
'subnet_id': {'readonly': True}, | ||
'child_resources': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, | ||
'family': {'key': 'properties.family', 'type': 'str'}, | ||
'child_resources': {'key': 'properties.childResources', 'type': '[str]'}, | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(VirtualClusterUpdate, self).__init__(**kwargs) | ||
self.subnet_id = None | ||
self.family = kwargs.get('family', None) | ||
self.child_resources = None | ||
self.tags = kwargs.get('tags', None) |
49 changes: 49 additions & 0 deletions
49
azure-mgmt-sql/azure/mgmt/sql/models/virtual_cluster_update_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 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 VirtualClusterUpdate(Model): | ||
"""An update request for an Azure SQL Database virtual cluster. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar subnet_id: Subnet resource ID for the virtual cluster. | ||
:vartype subnet_id: str | ||
:param family: If the service has different generations of hardware, for | ||
the same SKU, then that can be captured here. | ||
:type family: str | ||
:ivar child_resources: List of resources in this virtual cluster. | ||
:vartype child_resources: list[str] | ||
:param tags: Resource tags. | ||
:type tags: dict[str, str] | ||
""" | ||
|
||
_validation = { | ||
'subnet_id': {'readonly': True}, | ||
'child_resources': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, | ||
'family': {'key': 'properties.family', 'type': 'str'}, | ||
'child_resources': {'key': 'properties.childResources', 'type': '[str]'}, | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
} | ||
|
||
def __init__(self, *, family: str=None, tags=None, **kwargs) -> None: | ||
super(VirtualClusterUpdate, self).__init__(**kwargs) | ||
self.subnet_id = None | ||
self.family = family | ||
self.child_resources = None | ||
self.tags = tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.