Skip to content

Commit

Permalink
[AutoPR] cosmos-db/resource-manager (#3844)
Browse files Browse the repository at this point in the history
* Generated from da4bbc404f426e527a3e72ba5aa50d1a7269d8d9 (#3835)

typo: cosmos-db/resource-manager/Microsoft.DocumentDB/cosmos-db.json

- defintions -> definitions
- parition -> partition

* Generated from 0db70c499dc008a011a79e6c99bf621baba86623 (#3928)

typo: Microsoft.DocumentDB

- defintions -> definitions
- Trim trailing whitespace

* [AutoPR cosmos-db/resource-manager] Add SQL, Mongo, Table, Cassandra APIs (#4747)

* Generated from 4792db67215eb0250da01b43b40fe2be440ef2d2

Add Cassandra keyspace and table API

* Packaging update of azure-mgmt-cosmosdb

* Generated from 2083bb7fac97b078dcd30fd616dd0315e0f241fc

Fix excluded key path

* Packaging update of azure-mgmt-cosmosdb

* Generated from 3aa809a16233b7a65d328018312d23316a213b06

Fix examples model validation

* [AutoPR cosmos-db/resource-manager] Rename Gremlin container by graph (#4941)

* Generated from cdf503be9781e3833dabc4607cc59c5d59c21370

Rename Gremlin container by graph

* Generated from 8133c0ddc061fa40abb3a9fa9324242b7c6ad6ce

Replace mongo with mongodb

* Generated from 5f17be643cbf4c0f823a0d9b0b90bea17a84f0ab

Update file name by git mv as windows doesn't work

* 0.6.0
  • Loading branch information
AutorestCI authored and lmazuel committed May 4, 2019
1 parent 9cf34cc commit 6f13cf7
Show file tree
Hide file tree
Showing 115 changed files with 7,374 additions and 60 deletions.
42 changes: 42 additions & 0 deletions azure-mgmt-cosmosdb/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,48 @@
Release History
===============

0.6.0 (2019-05-03)
++++++++++++++++++

**Features**

- Added operation DatabaseAccountsOperations.list_sql_databases
- Added operation DatabaseAccountsOperations.delete_gremlin_graph
- Added operation DatabaseAccountsOperations.get_sql_database
- Added operation DatabaseAccountsOperations.delete_table
- Added operation DatabaseAccountsOperations.get_cassandra_keyspace
- Added operation DatabaseAccountsOperations.list_sql_containers
- Added operation DatabaseAccountsOperations.create_update_sql_container
- Added operation DatabaseAccountsOperations.get_table
- Added operation DatabaseAccountsOperations.list_cassandra_tables
- Added operation DatabaseAccountsOperations.create_update_table
- Added operation DatabaseAccountsOperations.delete_mongo_db_collection
- Added operation DatabaseAccountsOperations.get_gremlin_graph
- Added operation DatabaseAccountsOperations.get_gremlin_database
- Added operation DatabaseAccountsOperations.list_cassandra_keyspaces
- Added operation DatabaseAccountsOperations.create_update_mongo_db_collection
- Added operation DatabaseAccountsOperations.create_update_cassandra_keyspace
- Added operation DatabaseAccountsOperations.create_update_cassandra_table
- Added operation DatabaseAccountsOperations.get_mongo_db_database
- Added operation DatabaseAccountsOperations.list_gremlin_databases
- Added operation DatabaseAccountsOperations.create_update_sql_database
- Added operation DatabaseAccountsOperations.get_mongo_db_collection
- Added operation DatabaseAccountsOperations.list_mongo_db_collections
- Added operation DatabaseAccountsOperations.get_sql_container
- Added operation DatabaseAccountsOperations.delete_cassandra_keyspace
- Added operation DatabaseAccountsOperations.delete_mongo_db_database
- Added operation DatabaseAccountsOperations.get_cassandra_table
- Added operation DatabaseAccountsOperations.delete_cassandra_table
- Added operation DatabaseAccountsOperations.list_mongo_db_databases
- Added operation DatabaseAccountsOperations.list_gremlin_graphs
- Added operation DatabaseAccountsOperations.create_update_mongo_db_database
- Added operation DatabaseAccountsOperations.delete_sql_container
- Added operation DatabaseAccountsOperations.create_update_gremlin_graph
- Added operation DatabaseAccountsOperations.create_update_gremlin_database
- Added operation DatabaseAccountsOperations.list_tables
- Added operation DatabaseAccountsOperations.delete_gremlin_database
- Added operation DatabaseAccountsOperations.delete_sql_database

0.5.2 (2018-11-05)
++++++++++++++++++

Expand Down
1 change: 1 addition & 0 deletions azure-mgmt-cosmosdb/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
19 changes: 0 additions & 19 deletions azure-mgmt-cosmosdb/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell
pip freeze
If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell
pip uninstall azure
Usage
=====

Expand Down
157 changes: 157 additions & 0 deletions azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,60 @@
from .failover_policy_py3 import FailoverPolicy
from .virtual_network_rule_py3 import VirtualNetworkRule
from .database_account_py3 import DatabaseAccount
from .sql_database_py3 import SqlDatabase
from .indexes_py3 import Indexes
from .included_path_py3 import IncludedPath
from .excluded_path_py3 import ExcludedPath
from .indexing_policy_py3 import IndexingPolicy
from .container_partition_key_py3 import ContainerPartitionKey
from .unique_key_py3 import UniqueKey
from .unique_key_policy_py3 import UniqueKeyPolicy
from .conflict_resolution_policy_py3 import ConflictResolutionPolicy
from .sql_container_py3 import SqlContainer
from .mongo_db_database_py3 import MongoDBDatabase
from .mongo_db_collection_py3 import MongoDBCollection
from .table_py3 import Table
from .cassandra_keyspace_py3 import CassandraKeyspace
from .cassandra_table_py3 import CassandraTable
from .gremlin_database_py3 import GremlinDatabase
from .gremlin_graph_py3 import GremlinGraph
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .failover_policies_py3 import FailoverPolicies
from .region_for_online_offline_py3 import RegionForOnlineOffline
from .resource_py3 import Resource
from .extended_resource_properties_py3 import ExtendedResourceProperties
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 .sql_database_resource_py3 import SqlDatabaseResource
from .sql_database_create_update_parameters_py3 import SqlDatabaseCreateUpdateParameters
from .sql_container_resource_py3 import SqlContainerResource
from .sql_container_create_update_parameters_py3 import SqlContainerCreateUpdateParameters
from .mongo_db_database_resource_py3 import MongoDBDatabaseResource
from .mongo_db_database_create_update_parameters_py3 import MongoDBDatabaseCreateUpdateParameters
from .mongo_index_keys_py3 import MongoIndexKeys
from .mongo_index_options_py3 import MongoIndexOptions
from .mongo_index_py3 import MongoIndex
from .mongo_db_collection_resource_py3 import MongoDBCollectionResource
from .mongo_db_collection_create_update_parameters_py3 import MongoDBCollectionCreateUpdateParameters
from .table_resource_py3 import TableResource
from .table_create_update_parameters_py3 import TableCreateUpdateParameters
from .cassandra_keyspace_resource_py3 import CassandraKeyspaceResource
from .cassandra_keyspace_create_update_parameters_py3 import CassandraKeyspaceCreateUpdateParameters
from .column_py3 import Column
from .cassandra_partition_key_py3 import CassandraPartitionKey
from .cluster_key_py3 import ClusterKey
from .cassandra_schema_py3 import CassandraSchema
from .cassandra_table_resource_py3 import CassandraTableResource
from .cassandra_table_create_update_parameters_py3 import CassandraTableCreateUpdateParameters
from .gremlin_database_resource_py3 import GremlinDatabaseResource
from .gremlin_database_create_update_parameters_py3 import GremlinDatabaseCreateUpdateParameters
from .gremlin_graph_resource_py3 import GremlinGraphResource
from .gremlin_graph_create_update_parameters_py3 import GremlinGraphCreateUpdateParameters
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .metric_name_py3 import MetricName
Expand All @@ -46,17 +89,60 @@
from .failover_policy import FailoverPolicy
from .virtual_network_rule import VirtualNetworkRule
from .database_account import DatabaseAccount
from .sql_database import SqlDatabase
from .indexes import Indexes
from .included_path import IncludedPath
from .excluded_path import ExcludedPath
from .indexing_policy import IndexingPolicy
from .container_partition_key import ContainerPartitionKey
from .unique_key import UniqueKey
from .unique_key_policy import UniqueKeyPolicy
from .conflict_resolution_policy import ConflictResolutionPolicy
from .sql_container import SqlContainer
from .mongo_db_database import MongoDBDatabase
from .mongo_db_collection import MongoDBCollection
from .table import Table
from .cassandra_keyspace import CassandraKeyspace
from .cassandra_table import CassandraTable
from .gremlin_database import GremlinDatabase
from .gremlin_graph import GremlinGraph
from .error_response import ErrorResponse, ErrorResponseException
from .failover_policies import FailoverPolicies
from .region_for_online_offline import RegionForOnlineOffline
from .resource import Resource
from .extended_resource_properties import ExtendedResourceProperties
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 .sql_database_resource import SqlDatabaseResource
from .sql_database_create_update_parameters import SqlDatabaseCreateUpdateParameters
from .sql_container_resource import SqlContainerResource
from .sql_container_create_update_parameters import SqlContainerCreateUpdateParameters
from .mongo_db_database_resource import MongoDBDatabaseResource
from .mongo_db_database_create_update_parameters import MongoDBDatabaseCreateUpdateParameters
from .mongo_index_keys import MongoIndexKeys
from .mongo_index_options import MongoIndexOptions
from .mongo_index import MongoIndex
from .mongo_db_collection_resource import MongoDBCollectionResource
from .mongo_db_collection_create_update_parameters import MongoDBCollectionCreateUpdateParameters
from .table_resource import TableResource
from .table_create_update_parameters import TableCreateUpdateParameters
from .cassandra_keyspace_resource import CassandraKeyspaceResource
from .cassandra_keyspace_create_update_parameters import CassandraKeyspaceCreateUpdateParameters
from .column import Column
from .cassandra_partition_key import CassandraPartitionKey
from .cluster_key import ClusterKey
from .cassandra_schema import CassandraSchema
from .cassandra_table_resource import CassandraTableResource
from .cassandra_table_create_update_parameters import CassandraTableCreateUpdateParameters
from .gremlin_database_resource import GremlinDatabaseResource
from .gremlin_database_create_update_parameters import GremlinDatabaseCreateUpdateParameters
from .gremlin_graph_resource import GremlinGraphResource
from .gremlin_graph_create_update_parameters import GremlinGraphCreateUpdateParameters
from .operation_display import OperationDisplay
from .operation import Operation
from .metric_name import MetricName
Expand All @@ -73,6 +159,15 @@
from .metric_paged import MetricPaged
from .usage_paged import UsagePaged
from .metric_definition_paged import MetricDefinitionPaged
from .sql_database_paged import SqlDatabasePaged
from .sql_container_paged import SqlContainerPaged
from .mongo_db_database_paged import MongoDBDatabasePaged
from .mongo_db_collection_paged import MongoDBCollectionPaged
from .table_paged import TablePaged
from .cassandra_keyspace_paged import CassandraKeyspacePaged
from .cassandra_table_paged import CassandraTablePaged
from .gremlin_database_paged import GremlinDatabasePaged
from .gremlin_graph_paged import GremlinGraphPaged
from .operation_paged import OperationPaged
from .percentile_metric_paged import PercentileMetricPaged
from .partition_metric_paged import PartitionMetricPaged
Expand All @@ -81,6 +176,11 @@
DatabaseAccountKind,
DatabaseAccountOfferType,
DefaultConsistencyLevel,
IndexingMode,
DataType,
IndexKind,
PartitionKind,
ConflictResolutionMode,
KeyKind,
UnitType,
PrimaryAggregationType,
Expand All @@ -93,17 +193,60 @@
'FailoverPolicy',
'VirtualNetworkRule',
'DatabaseAccount',
'SqlDatabase',
'Indexes',
'IncludedPath',
'ExcludedPath',
'IndexingPolicy',
'ContainerPartitionKey',
'UniqueKey',
'UniqueKeyPolicy',
'ConflictResolutionPolicy',
'SqlContainer',
'MongoDBDatabase',
'MongoDBCollection',
'Table',
'CassandraKeyspace',
'CassandraTable',
'GremlinDatabase',
'GremlinGraph',
'ErrorResponse', 'ErrorResponseException',
'FailoverPolicies',
'RegionForOnlineOffline',
'Resource',
'ExtendedResourceProperties',
'DatabaseAccountCreateUpdateParameters',
'DatabaseAccountPatchParameters',
'DatabaseAccountListReadOnlyKeysResult',
'DatabaseAccountListKeysResult',
'DatabaseAccountConnectionString',
'DatabaseAccountListConnectionStringsResult',
'DatabaseAccountRegenerateKeyParameters',
'SqlDatabaseResource',
'SqlDatabaseCreateUpdateParameters',
'SqlContainerResource',
'SqlContainerCreateUpdateParameters',
'MongoDBDatabaseResource',
'MongoDBDatabaseCreateUpdateParameters',
'MongoIndexKeys',
'MongoIndexOptions',
'MongoIndex',
'MongoDBCollectionResource',
'MongoDBCollectionCreateUpdateParameters',
'TableResource',
'TableCreateUpdateParameters',
'CassandraKeyspaceResource',
'CassandraKeyspaceCreateUpdateParameters',
'Column',
'CassandraPartitionKey',
'ClusterKey',
'CassandraSchema',
'CassandraTableResource',
'CassandraTableCreateUpdateParameters',
'GremlinDatabaseResource',
'GremlinDatabaseCreateUpdateParameters',
'GremlinGraphResource',
'GremlinGraphCreateUpdateParameters',
'OperationDisplay',
'Operation',
'MetricName',
Expand All @@ -120,13 +263,27 @@
'MetricPaged',
'UsagePaged',
'MetricDefinitionPaged',
'SqlDatabasePaged',
'SqlContainerPaged',
'MongoDBDatabasePaged',
'MongoDBCollectionPaged',
'TablePaged',
'CassandraKeyspacePaged',
'CassandraTablePaged',
'GremlinDatabasePaged',
'GremlinGraphPaged',
'OperationPaged',
'PercentileMetricPaged',
'PartitionMetricPaged',
'PartitionUsagePaged',
'DatabaseAccountKind',
'DatabaseAccountOfferType',
'DefaultConsistencyLevel',
'IndexingMode',
'DataType',
'IndexKind',
'PartitionKind',
'ConflictResolutionMode',
'KeyKind',
'UnitType',
'PrimaryAggregationType',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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 CassandraKeyspace(Resource):
"""An Azure Cosmos DB Cassandra keyspace.
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 cassandra_keyspace_id: Required. Name of the Cosmos DB Cassandra
keyspace
:type cassandra_keyspace_id: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'cassandra_keyspace_id': {'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}'},
'cassandra_keyspace_id': {'key': 'properties.id', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CassandraKeyspace, self).__init__(**kwargs)
self.cassandra_keyspace_id = kwargs.get('cassandra_keyspace_id', None)
Loading

0 comments on commit 6f13cf7

Please sign in to comment.