Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from .unique_key_policy_py3 import UniqueKeyPolicy
from .conflict_resolution_policy_py3 import ConflictResolutionPolicy
from .sql_container_py3 import SqlContainer
from .sql_stored_procedure_py3 import SqlStoredProcedure
from .mongo_db_database_py3 import MongoDBDatabase
from .mongo_db_collection_py3 import MongoDBCollection
from .table_py3 import Table
Expand All @@ -52,6 +53,8 @@
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 .sql_stored_procedure_resource_py3 import SqlStoredProcedureResource
from .sql_stored_procedure_create_update_parameters_py3 import SqlStoredProcedureCreateUpdateParameters
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
Expand Down Expand Up @@ -102,6 +105,7 @@
from .unique_key_policy import UniqueKeyPolicy
from .conflict_resolution_policy import ConflictResolutionPolicy
from .sql_container import SqlContainer
from .sql_stored_procedure import SqlStoredProcedure
from .mongo_db_database import MongoDBDatabase
from .mongo_db_collection import MongoDBCollection
from .table import Table
Expand All @@ -128,6 +132,8 @@
from .sql_database_create_update_parameters import SqlDatabaseCreateUpdateParameters
from .sql_container_resource import SqlContainerResource
from .sql_container_create_update_parameters import SqlContainerCreateUpdateParameters
from .sql_stored_procedure_resource import SqlStoredProcedureResource
from .sql_stored_procedure_create_update_parameters import SqlStoredProcedureCreateUpdateParameters
from .mongo_db_database_resource import MongoDBDatabaseResource
from .mongo_db_database_create_update_parameters import MongoDBDatabaseCreateUpdateParameters
from .mongo_index_keys import MongoIndexKeys
Expand Down Expand Up @@ -167,6 +173,7 @@
from .metric_definition_paged import MetricDefinitionPaged
from .sql_database_paged import SqlDatabasePaged
from .sql_container_paged import SqlContainerPaged
from .sql_stored_procedure_paged import SqlStoredProcedurePaged
from .mongo_db_database_paged import MongoDBDatabasePaged
from .mongo_db_collection_paged import MongoDBCollectionPaged
from .table_paged import TablePaged
Expand Down Expand Up @@ -210,6 +217,7 @@
'UniqueKeyPolicy',
'ConflictResolutionPolicy',
'SqlContainer',
'SqlStoredProcedure',
'MongoDBDatabase',
'MongoDBCollection',
'Table',
Expand All @@ -236,6 +244,8 @@
'SqlDatabaseCreateUpdateParameters',
'SqlContainerResource',
'SqlContainerCreateUpdateParameters',
'SqlStoredProcedureResource',
'SqlStoredProcedureCreateUpdateParameters',
'MongoDBDatabaseResource',
'MongoDBDatabaseCreateUpdateParameters',
'MongoIndexKeys',
Expand Down Expand Up @@ -275,6 +285,7 @@
'MetricDefinitionPaged',
'SqlDatabasePaged',
'SqlContainerPaged',
'SqlStoredProcedurePaged',
'MongoDBDatabasePaged',
'MongoDBCollectionPaged',
'TablePaged',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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 SqlStoredProcedure(Resource):
"""An Azure Cosmos DB stored procedure.

Variables are only populated by the server, and will be ignored when
sending a request.

: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 sql_stored_procedure_id: Name of the Sql Stored Procedure
:type sql_stored_procedure_id: str
:param body: Body of the Stored Procedure
:type body: str
: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},
}

_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}'},
'sql_stored_procedure_id': {'key': 'properties.id', 'type': 'str'},
'body': {'key': 'properties.body', 'type': 'str'},
'_rid': {'key': 'properties._rid', 'type': 'str'},
'_ts': {'key': 'properties._ts', 'type': 'object'},
'_etag': {'key': 'properties._etag', 'type': 'str'},
}

def __init__(self, **kwargs):
super(SqlStoredProcedure, self).__init__(**kwargs)
self.sql_stored_procedure_id = kwargs.get('sql_stored_procedure_id', None)
self.body = kwargs.get('body', None)
self._rid = kwargs.get('_rid', None)
self._ts = kwargs.get('_ts', None)
self._etag = kwargs.get('_etag', None)
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 SqlStoredProcedureCreateUpdateParameters(Model):
"""Parameters to create and update Cosmos DB stored procedure.

All required parameters must be populated in order to send to Azure.

:param resource: Required. The standard JSON format of a stored procedure
:type resource: ~azure.mgmt.cosmosdb.models.SqlStoredProcedureResource
: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': 'SqlStoredProcedureResource'},
'options': {'key': 'properties.options', 'type': '{str}'},
}

def __init__(self, **kwargs):
super(SqlStoredProcedureCreateUpdateParameters, self).__init__(**kwargs)
self.resource = kwargs.get('resource', None)
self.options = kwargs.get('options', None)
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 SqlStoredProcedureCreateUpdateParameters(Model):
"""Parameters to create and update Cosmos DB stored procedure.

All required parameters must be populated in order to send to Azure.

:param resource: Required. The standard JSON format of a stored procedure
:type resource: ~azure.mgmt.cosmosdb.models.SqlStoredProcedureResource
: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': 'SqlStoredProcedureResource'},
'options': {'key': 'properties.options', 'type': '{str}'},
}

def __init__(self, *, resource, options, **kwargs) -> None:
super(SqlStoredProcedureCreateUpdateParameters, self).__init__(**kwargs)
self.resource = resource
self.options = options
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.paging import Paged


class SqlStoredProcedurePaged(Paged):
"""
A paging container for iterating over a list of :class:`SqlStoredProcedure <azure.mgmt.cosmosdb.models.SqlStoredProcedure>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[SqlStoredProcedure]'}
}

def __init__(self, *args, **kwargs):

super(SqlStoredProcedurePaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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 SqlStoredProcedure(Resource):
"""An Azure Cosmos DB stored procedure.

Variables are only populated by the server, and will be ignored when
sending a request.

: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 sql_stored_procedure_id: Name of the Sql Stored Procedure
:type sql_stored_procedure_id: str
:param body: Body of the Stored Procedure
:type body: str
: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},
}

_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}'},
'sql_stored_procedure_id': {'key': 'properties.id', 'type': 'str'},
'body': {'key': 'properties.body', 'type': 'str'},
'_rid': {'key': 'properties._rid', 'type': 'str'},
'_ts': {'key': 'properties._ts', 'type': 'object'},
'_etag': {'key': 'properties._etag', 'type': 'str'},
}

def __init__(self, *, location: str=None, tags=None, sql_stored_procedure_id: str=None, body: str=None, _rid: str=None, _ts=None, _etag: str=None, **kwargs) -> None:
super(SqlStoredProcedure, self).__init__(location=location, tags=tags, **kwargs)
self.sql_stored_procedure_id = sql_stored_procedure_id
self.body = body
self._rid = _rid
self._ts = _ts
self._etag = _etag
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 SqlStoredProcedureResource(Model):
"""Cosmos DB Gremlin graph resource object.

:param id: Name of the Sql Stored Procedure
:type id: str
:param body: Body of the Stored Procedure
:type body: str
"""

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'body': {'key': 'body', 'type': 'str'},
}

def __init__(self, **kwargs):
super(SqlStoredProcedureResource, self).__init__(**kwargs)
self.id = kwargs.get('id', None)
self.body = kwargs.get('body', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 SqlStoredProcedureResource(Model):
"""Cosmos DB Gremlin graph resource object.

:param id: Name of the Sql Stored Procedure
:type id: str
:param body: Body of the Stored Procedure
:type body: str
"""

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'body': {'key': 'body', 'type': 'str'},
}

def __init__(self, *, id: str=None, body: str=None, **kwargs) -> None:
super(SqlStoredProcedureResource, self).__init__(**kwargs)
self.id = id
self.body = body
Loading