forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR] cosmos-db/resource-manager (Azure#5742)
* Generated from 10c8ae2fa1681da6e10c32dca56b6d4f26ab6735 (Azure#5685) Update description * ChangeLog
- Loading branch information
1 parent
9c07a77
commit b82d567
Showing
10 changed files
with
2,647 additions
and
788 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
56 changes: 56 additions & 0 deletions
56
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/throughput.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,56 @@ | ||
# 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 Throughput(Resource): | ||
"""An Azure Cosmos DB resource throughput. | ||
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: The unique resource identifier of the database account. | ||
:vartype id: str | ||
:ivar name: The name of the database account. | ||
:vartype name: str | ||
:ivar type: The type of Azure resource. | ||
:vartype type: str | ||
:param location: The location of the resource group to which the resource | ||
belongs. | ||
:type location: str | ||
:param tags: | ||
:type tags: dict[str, str] | ||
:param throughput: Required. Value of the Cosmos DB resource throughput | ||
:type throughput: int | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'throughput': {'required': 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}'}, | ||
'throughput': {'key': 'properties.throughput', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(Throughput, self).__init__(**kwargs) | ||
self.throughput = kwargs.get('throughput', None) |
56 changes: 56 additions & 0 deletions
56
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/throughput_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,56 @@ | ||
# 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 Throughput(Resource): | ||
"""An Azure Cosmos DB resource throughput. | ||
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: The unique resource identifier of the database account. | ||
:vartype id: str | ||
:ivar name: The name of the database account. | ||
:vartype name: str | ||
:ivar type: The type of Azure resource. | ||
:vartype type: str | ||
:param location: The location of the resource group to which the resource | ||
belongs. | ||
:type location: str | ||
:param tags: | ||
:type tags: dict[str, str] | ||
:param throughput: Required. Value of the Cosmos DB resource throughput | ||
:type throughput: int | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'throughput': {'required': 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}'}, | ||
'throughput': {'key': 'properties.throughput', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, *, throughput: int, location: str=None, tags=None, **kwargs) -> None: | ||
super(Throughput, self).__init__(location=location, tags=tags, **kwargs) | ||
self.throughput = throughput |
34 changes: 34 additions & 0 deletions
34
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/throughput_resource.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,34 @@ | ||
# 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 ThroughputResource(Model): | ||
"""Cosmos DB resource throughput object. | ||
All required parameters must be populated in order to send to Azure. | ||
:param throughput: Required. Value of the Cosmos DB resource throughput | ||
:type throughput: int | ||
""" | ||
|
||
_validation = { | ||
'throughput': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'throughput': {'key': 'throughput', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ThroughputResource, self).__init__(**kwargs) | ||
self.throughput = kwargs.get('throughput', None) |
34 changes: 34 additions & 0 deletions
34
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/throughput_resource_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,34 @@ | ||
# 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 ThroughputResource(Model): | ||
"""Cosmos DB resource throughput object. | ||
All required parameters must be populated in order to send to Azure. | ||
:param throughput: Required. Value of the Cosmos DB resource throughput | ||
:type throughput: int | ||
""" | ||
|
||
_validation = { | ||
'throughput': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'throughput': {'key': 'throughput', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, *, throughput: int, **kwargs) -> None: | ||
super(ThroughputResource, self).__init__(**kwargs) | ||
self.throughput = throughput |
35 changes: 35 additions & 0 deletions
35
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/throughput_update_parameters.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,35 @@ | ||
# 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 ThroughputUpdateParameters(Model): | ||
"""Parameters to update Cosmos DB resource throughput. | ||
All required parameters must be populated in order to send to Azure. | ||
:param resource: Required. The standard JSON format of a resource | ||
throughput | ||
:type resource: ~azure.mgmt.cosmosdb.models.ThroughputResource | ||
""" | ||
|
||
_validation = { | ||
'resource': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'resource': {'key': 'properties.resource', 'type': 'ThroughputResource'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ThroughputUpdateParameters, self).__init__(**kwargs) | ||
self.resource = kwargs.get('resource', None) |
35 changes: 35 additions & 0 deletions
35
...cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/throughput_update_parameters_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,35 @@ | ||
# 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 ThroughputUpdateParameters(Model): | ||
"""Parameters to update Cosmos DB resource throughput. | ||
All required parameters must be populated in order to send to Azure. | ||
:param resource: Required. The standard JSON format of a resource | ||
throughput | ||
:type resource: ~azure.mgmt.cosmosdb.models.ThroughputResource | ||
""" | ||
|
||
_validation = { | ||
'resource': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'resource': {'key': 'properties.resource', 'type': 'ThroughputResource'}, | ||
} | ||
|
||
def __init__(self, *, resource, **kwargs) -> None: | ||
super(ThroughputUpdateParameters, self).__init__(**kwargs) | ||
self.resource = resource |
Oops, something went wrong.