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
24 changes: 24 additions & 0 deletions sdk/cosmos/azure-mgmt-cosmosdb/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@
Release History
===============

0.7.0 (2019-06-07)
++++++++++++++++++

**Features**

- Added operation DatabaseAccountsOperations.get_gremlin_graph_throughput
- Added operation DatabaseAccountsOperations.get_sql_database_throughput
- Added operation DatabaseAccountsOperations.update_gremlin_database_throughput
- Added operation DatabaseAccountsOperations.get_sql_container_throughput
- Added operation DatabaseAccountsOperations.update_sql_container_throughput
- Added operation DatabaseAccountsOperations.get_gremlin_database_throughput
- Added operation DatabaseAccountsOperations.get_cassandra_table_throughput
- Added operation DatabaseAccountsOperations.update_cassandra_keyspace_throughput
- Added operation DatabaseAccountsOperations.update_mongo_db_collection_throughput
- Added operation DatabaseAccountsOperations.update_cassandra_table_throughput
- Added operation DatabaseAccountsOperations.update_table_throughput
- Added operation DatabaseAccountsOperations.update_mongo_db_database_throughput
- Added operation DatabaseAccountsOperations.get_mongo_db_database_throughput
- Added operation DatabaseAccountsOperations.update_sql_database_throughput
- Added operation DatabaseAccountsOperations.get_table_throughput
- Added operation DatabaseAccountsOperations.get_mongo_db_collection_throughput
- Added operation DatabaseAccountsOperations.update_gremlin_graph_throughput
- Added operation DatabaseAccountsOperations.get_cassandra_keyspace_throughput

0.6.1 (2019-05-31)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@
from .region_for_online_offline_py3 import RegionForOnlineOffline
from .resource_py3 import Resource
from .extended_resource_properties_py3 import ExtendedResourceProperties
from .throughput_py3 import Throughput
from .database_account_create_update_parameters_py3 import DatabaseAccountCreateUpdateParameters
from .database_account_patch_parameters_py3 import DatabaseAccountPatchParameters
from .database_account_list_read_only_keys_result_py3 import DatabaseAccountListReadOnlyKeysResult
from .database_account_list_keys_result_py3 import DatabaseAccountListKeysResult
from .database_account_connection_string_py3 import DatabaseAccountConnectionString
from .database_account_list_connection_strings_result_py3 import DatabaseAccountListConnectionStringsResult
from .database_account_regenerate_key_parameters_py3 import DatabaseAccountRegenerateKeyParameters
from .throughput_resource_py3 import ThroughputResource
from .throughput_update_parameters_py3 import ThroughputUpdateParameters
from .sql_database_resource_py3 import SqlDatabaseResource
from .sql_database_create_update_parameters_py3 import SqlDatabaseCreateUpdateParameters
from .sql_container_resource_py3 import SqlContainerResource
Expand Down Expand Up @@ -111,13 +114,16 @@
from .region_for_online_offline import RegionForOnlineOffline
from .resource import Resource
from .extended_resource_properties import ExtendedResourceProperties
from .throughput import Throughput
from .database_account_create_update_parameters import DatabaseAccountCreateUpdateParameters
from .database_account_patch_parameters import DatabaseAccountPatchParameters
from .database_account_list_read_only_keys_result import DatabaseAccountListReadOnlyKeysResult
from .database_account_list_keys_result import DatabaseAccountListKeysResult
from .database_account_connection_string import DatabaseAccountConnectionString
from .database_account_list_connection_strings_result import DatabaseAccountListConnectionStringsResult
from .database_account_regenerate_key_parameters import DatabaseAccountRegenerateKeyParameters
from .throughput_resource import ThroughputResource
from .throughput_update_parameters import ThroughputUpdateParameters
from .sql_database_resource import SqlDatabaseResource
from .sql_database_create_update_parameters import SqlDatabaseCreateUpdateParameters
from .sql_container_resource import SqlContainerResource
Expand Down Expand Up @@ -215,13 +221,16 @@
'RegionForOnlineOffline',
'Resource',
'ExtendedResourceProperties',
'Throughput',
'DatabaseAccountCreateUpdateParameters',
'DatabaseAccountPatchParameters',
'DatabaseAccountListReadOnlyKeysResult',
'DatabaseAccountListKeysResult',
'DatabaseAccountConnectionString',
'DatabaseAccountListConnectionStringsResult',
'DatabaseAccountRegenerateKeyParameters',
'ThroughputResource',
'ThroughputUpdateParameters',
'SqlDatabaseResource',
'SqlDatabaseCreateUpdateParameters',
'SqlContainerResource',
Expand Down
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)
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
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)
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
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)
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
Loading