-
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.
[AutoPR] cosmos-db/resource-manager (#3844)
* 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
1 parent
9cf34cc
commit 6f13cf7
Showing
115 changed files
with
7,374 additions
and
60 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
recursive-include tests *.py *.yaml | ||
include *.rst | ||
include azure/__init__.py | ||
include azure/mgmt/__init__.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
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
57 changes: 57 additions & 0 deletions
57
azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/cassandra_keyspace.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,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) |
Oops, something went wrong.