-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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] 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
- Loading branch information
1 parent
8a2d53a
commit d7a99cc
Showing
36 changed files
with
954 additions
and
520 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
96 changes: 96 additions & 0 deletions
96
azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/gremlin_graph.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,96 @@ | ||
# 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 GremlinGraph(Resource): | ||
"""An Azure Cosmos DB Gremlin graph. | ||
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 gremlin_graph_id: Required. Name of the Cosmos DB Gremlin graph | ||
:type gremlin_graph_id: str | ||
:param indexing_policy: The configuration of the indexing policy. By | ||
default, the indexing is automatic for all document paths within the graph | ||
:type indexing_policy: ~azure.mgmt.cosmosdb.models.IndexingPolicy | ||
:param partition_key: The configuration of the partition key to be used | ||
for partitioning data into multiple partitions | ||
:type partition_key: ~azure.mgmt.cosmosdb.models.ContainerPartitionKey | ||
:param default_ttl: Default time to live | ||
:type default_ttl: int | ||
:param unique_key_policy: The unique key policy configuration for | ||
specifying uniqueness constraints on documents in the collection in the | ||
Azure Cosmos DB service. | ||
:type unique_key_policy: ~azure.mgmt.cosmosdb.models.UniqueKeyPolicy | ||
:param conflict_resolution_policy: The conflict resolution policy for the | ||
graph. | ||
:type conflict_resolution_policy: | ||
~azure.mgmt.cosmosdb.models.ConflictResolutionPolicy | ||
:param _rid: A system generated property. A unique identifier. | ||
:type _rid: str | ||
:param _ts: A system generated property that denotes the last updated | ||
timestamp of the resource. | ||
:type _ts: object | ||
:param _etag: A system generated property representing the resource etag | ||
required for optimistic concurrency control. | ||
:type _etag: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'gremlin_graph_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}'}, | ||
'gremlin_graph_id': {'key': 'properties.id', 'type': 'str'}, | ||
'indexing_policy': {'key': 'properties.indexingPolicy', 'type': 'IndexingPolicy'}, | ||
'partition_key': {'key': 'properties.partitionKey', 'type': 'ContainerPartitionKey'}, | ||
'default_ttl': {'key': 'properties.defaultTtl', 'type': 'int'}, | ||
'unique_key_policy': {'key': 'properties.uniqueKeyPolicy', 'type': 'UniqueKeyPolicy'}, | ||
'conflict_resolution_policy': {'key': 'properties.conflictResolutionPolicy', 'type': 'ConflictResolutionPolicy'}, | ||
'_rid': {'key': 'properties._rid', 'type': 'str'}, | ||
'_ts': {'key': 'properties._ts', 'type': 'object'}, | ||
'_etag': {'key': 'properties._etag', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(GremlinGraph, self).__init__(**kwargs) | ||
self.gremlin_graph_id = kwargs.get('gremlin_graph_id', None) | ||
self.indexing_policy = kwargs.get('indexing_policy', None) | ||
self.partition_key = kwargs.get('partition_key', None) | ||
self.default_ttl = kwargs.get('default_ttl', None) | ||
self.unique_key_policy = kwargs.get('unique_key_policy', None) | ||
self.conflict_resolution_policy = kwargs.get('conflict_resolution_policy', None) | ||
self._rid = kwargs.get('_rid', None) | ||
self._ts = kwargs.get('_ts', None) | ||
self._etag = kwargs.get('_etag', None) |
40 changes: 40 additions & 0 deletions
40
azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/gremlin_graph_create_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,40 @@ | ||
# 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 GremlinGraphCreateUpdateParameters(Model): | ||
"""Parameters to create and update Cosmos DB Gremlin graph. | ||
All required parameters must be populated in order to send to Azure. | ||
:param resource: Required. The standard JSON format of a Gremlin graph | ||
:type resource: ~azure.mgmt.cosmosdb.models.GremlinGraphResource | ||
:param options: Required. A key-value pair of options to be applied for | ||
the request. This corresponds to the headers sent with the request. | ||
:type options: dict[str, str] | ||
""" | ||
|
||
_validation = { | ||
'resource': {'required': True}, | ||
'options': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'resource': {'key': 'properties.resource', 'type': 'GremlinGraphResource'}, | ||
'options': {'key': 'properties.options', 'type': '{str}'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(GremlinGraphCreateUpdateParameters, self).__init__(**kwargs) | ||
self.resource = kwargs.get('resource', None) | ||
self.options = kwargs.get('options', None) |
40 changes: 40 additions & 0 deletions
40
azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/gremlin_graph_create_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,40 @@ | ||
# 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 GremlinGraphCreateUpdateParameters(Model): | ||
"""Parameters to create and update Cosmos DB Gremlin graph. | ||
All required parameters must be populated in order to send to Azure. | ||
:param resource: Required. The standard JSON format of a Gremlin graph | ||
:type resource: ~azure.mgmt.cosmosdb.models.GremlinGraphResource | ||
:param options: Required. A key-value pair of options to be applied for | ||
the request. This corresponds to the headers sent with the request. | ||
:type options: dict[str, str] | ||
""" | ||
|
||
_validation = { | ||
'resource': {'required': True}, | ||
'options': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'resource': {'key': 'properties.resource', 'type': 'GremlinGraphResource'}, | ||
'options': {'key': 'properties.options', 'type': '{str}'}, | ||
} | ||
|
||
def __init__(self, *, resource, options, **kwargs) -> None: | ||
super(GremlinGraphCreateUpdateParameters, self).__init__(**kwargs) | ||
self.resource = resource | ||
self.options = options |
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.