Skip to content

Commit

Permalink
CodeGen from PR 3201 in test-repo-billy/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 252ac0b53fcd5066fb3c1b83faea384a197f8a51 into 2a3aeccebd978831771083e30bb5bbce3c2e485a
  • Loading branch information
SDKAuto committed Feb 5, 2024
1 parent e56a49c commit de34909
Show file tree
Hide file tree
Showing 319 changed files with 29,841 additions and 2,642 deletions.
6 changes: 3 additions & 3 deletions sdk/cosmos/azure-mgmt-cosmosdb/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "583a4974607e00e1da26915562aeafb4bad079de",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"commit": "07a2f2d4bb97afc059df056644e72cf2c7acd9ac",
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/python@6.7.1",
"@autorest/modelerfour@4.26.2"
],
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"readme": "specification/cosmos-db/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class CosmosDBManagementClientConfiguration(Configuration): # pylint: disable=t
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-11-15". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-01-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(CosmosDBManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-11-15")
api_version: str = kwargs.pop("api_version", "2024-01-15-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@
CollectionPartitionOperations,
CollectionPartitionRegionOperations,
CollectionRegionOperations,
DataTransferJobsOperations,
DatabaseAccountRegionOperations,
DatabaseAccountsOperations,
DatabaseOperations,
GraphResourcesOperations,
GremlinResourcesOperations,
LocationsOperations,
MongoClustersOperations,
MongoDBResourcesOperations,
NotebookWorkspacesOperations,
Operations,
Expand All @@ -53,6 +56,10 @@
ServiceOperations,
SqlResourcesOperations,
TableResourcesOperations,
ThroughputPoolAccountOperations,
ThroughputPoolAccountsOperations,
ThroughputPoolOperations,
ThroughputPoolsOperations,
)

if TYPE_CHECKING:
Expand Down Expand Up @@ -93,6 +100,8 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
:vartype partition_key_range_id_region:
azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdRegionOperations
:ivar graph_resources: GraphResourcesOperations operations
:vartype graph_resources: azure.mgmt.cosmosdb.operations.GraphResourcesOperations
:ivar sql_resources: SqlResourcesOperations operations
:vartype sql_resources: azure.mgmt.cosmosdb.operations.SqlResourcesOperations
:ivar mongo_db_resources: MongoDBResourcesOperations operations
Expand All @@ -105,10 +114,14 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
:vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations
:ivar locations: LocationsOperations operations
:vartype locations: azure.mgmt.cosmosdb.operations.LocationsOperations
:ivar data_transfer_jobs: DataTransferJobsOperations operations
:vartype data_transfer_jobs: azure.mgmt.cosmosdb.operations.DataTransferJobsOperations
:ivar cassandra_clusters: CassandraClustersOperations operations
:vartype cassandra_clusters: azure.mgmt.cosmosdb.operations.CassandraClustersOperations
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
:vartype cassandra_data_centers: azure.mgmt.cosmosdb.operations.CassandraDataCentersOperations
:ivar mongo_clusters: MongoClustersOperations operations
:vartype mongo_clusters: azure.mgmt.cosmosdb.operations.MongoClustersOperations
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
Expand Down Expand Up @@ -153,14 +166,24 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
azure.mgmt.cosmosdb.operations.RestorableTableResourcesOperations
:ivar service: ServiceOperations operations
:vartype service: azure.mgmt.cosmosdb.operations.ServiceOperations
:ivar throughput_pools: ThroughputPoolsOperations operations
:vartype throughput_pools: azure.mgmt.cosmosdb.operations.ThroughputPoolsOperations
:ivar throughput_pool: ThroughputPoolOperations operations
:vartype throughput_pool: azure.mgmt.cosmosdb.operations.ThroughputPoolOperations
:ivar throughput_pool_accounts: ThroughputPoolAccountsOperations operations
:vartype throughput_pool_accounts:
azure.mgmt.cosmosdb.operations.ThroughputPoolAccountsOperations
:ivar throughput_pool_account: ThroughputPoolAccountOperations operations
:vartype throughput_pool_account:
azure.mgmt.cosmosdb.operations.ThroughputPoolAccountOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-11-15". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-01-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -213,6 +236,7 @@ def __init__(
self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.graph_resources = GraphResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
self.sql_resources = SqlResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
self.mongo_db_resources = MongoDBResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
Expand All @@ -225,12 +249,16 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.data_transfer_jobs = DataTransferJobsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cassandra_clusters = CassandraClustersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cassandra_data_centers = CassandraDataCentersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.mongo_clusters = MongoClustersOperations(self._client, self._config, self._serialize, self._deserialize)
self.notebook_workspaces = NotebookWorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -277,6 +305,16 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.service = ServiceOperations(self._client, self._config, self._serialize, self._deserialize)
self.throughput_pools = ThroughputPoolsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.throughput_pool = ThroughputPoolOperations(self._client, self._config, self._serialize, self._deserialize)
self.throughput_pool_accounts = ThroughputPoolAccountsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.throughput_pool_account = ThroughputPoolAccountOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "9.4.0"
VERSION = "0.7.0"
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class CosmosDBManagementClientConfiguration(Configuration): # pylint: disable=t
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-11-15". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-01-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(CosmosDBManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-11-15")
api_version: str = kwargs.pop("api_version", "2024-01-15-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@
CollectionPartitionOperations,
CollectionPartitionRegionOperations,
CollectionRegionOperations,
DataTransferJobsOperations,
DatabaseAccountRegionOperations,
DatabaseAccountsOperations,
DatabaseOperations,
GraphResourcesOperations,
GremlinResourcesOperations,
LocationsOperations,
MongoClustersOperations,
MongoDBResourcesOperations,
NotebookWorkspacesOperations,
Operations,
Expand All @@ -53,6 +56,10 @@
ServiceOperations,
SqlResourcesOperations,
TableResourcesOperations,
ThroughputPoolAccountOperations,
ThroughputPoolAccountsOperations,
ThroughputPoolOperations,
ThroughputPoolsOperations,
)

if TYPE_CHECKING:
Expand Down Expand Up @@ -94,6 +101,8 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
:vartype partition_key_range_id_region:
azure.mgmt.cosmosdb.aio.operations.PartitionKeyRangeIdRegionOperations
:ivar graph_resources: GraphResourcesOperations operations
:vartype graph_resources: azure.mgmt.cosmosdb.aio.operations.GraphResourcesOperations
:ivar sql_resources: SqlResourcesOperations operations
:vartype sql_resources: azure.mgmt.cosmosdb.aio.operations.SqlResourcesOperations
:ivar mongo_db_resources: MongoDBResourcesOperations operations
Expand All @@ -106,11 +115,15 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
:vartype gremlin_resources: azure.mgmt.cosmosdb.aio.operations.GremlinResourcesOperations
:ivar locations: LocationsOperations operations
:vartype locations: azure.mgmt.cosmosdb.aio.operations.LocationsOperations
:ivar data_transfer_jobs: DataTransferJobsOperations operations
:vartype data_transfer_jobs: azure.mgmt.cosmosdb.aio.operations.DataTransferJobsOperations
:ivar cassandra_clusters: CassandraClustersOperations operations
:vartype cassandra_clusters: azure.mgmt.cosmosdb.aio.operations.CassandraClustersOperations
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
:vartype cassandra_data_centers:
azure.mgmt.cosmosdb.aio.operations.CassandraDataCentersOperations
:ivar mongo_clusters: MongoClustersOperations operations
:vartype mongo_clusters: azure.mgmt.cosmosdb.aio.operations.MongoClustersOperations
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
:vartype notebook_workspaces: azure.mgmt.cosmosdb.aio.operations.NotebookWorkspacesOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
Expand Down Expand Up @@ -156,14 +169,24 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
azure.mgmt.cosmosdb.aio.operations.RestorableTableResourcesOperations
:ivar service: ServiceOperations operations
:vartype service: azure.mgmt.cosmosdb.aio.operations.ServiceOperations
:ivar throughput_pools: ThroughputPoolsOperations operations
:vartype throughput_pools: azure.mgmt.cosmosdb.aio.operations.ThroughputPoolsOperations
:ivar throughput_pool: ThroughputPoolOperations operations
:vartype throughput_pool: azure.mgmt.cosmosdb.aio.operations.ThroughputPoolOperations
:ivar throughput_pool_accounts: ThroughputPoolAccountsOperations operations
:vartype throughput_pool_accounts:
azure.mgmt.cosmosdb.aio.operations.ThroughputPoolAccountsOperations
:ivar throughput_pool_account: ThroughputPoolAccountOperations operations
:vartype throughput_pool_account:
azure.mgmt.cosmosdb.aio.operations.ThroughputPoolAccountOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-11-15". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-01-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -216,6 +239,7 @@ def __init__(
self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.graph_resources = GraphResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
self.sql_resources = SqlResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
self.mongo_db_resources = MongoDBResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
Expand All @@ -228,12 +252,16 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.data_transfer_jobs = DataTransferJobsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cassandra_clusters = CassandraClustersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cassandra_data_centers = CassandraDataCentersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.mongo_clusters = MongoClustersOperations(self._client, self._config, self._serialize, self._deserialize)
self.notebook_workspaces = NotebookWorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -280,6 +308,16 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.service = ServiceOperations(self._client, self._config, self._serialize, self._deserialize)
self.throughput_pools = ThroughputPoolsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.throughput_pool = ThroughputPoolOperations(self._client, self._config, self._serialize, self._deserialize)
self.throughput_pool_accounts = ThroughputPoolAccountsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.throughput_pool_account = ThroughputPoolAccountOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@
from ._collection_partition_operations import CollectionPartitionOperations
from ._partition_key_range_id_operations import PartitionKeyRangeIdOperations
from ._partition_key_range_id_region_operations import PartitionKeyRangeIdRegionOperations
from ._graph_resources_operations import GraphResourcesOperations
from ._sql_resources_operations import SqlResourcesOperations
from ._mongo_db_resources_operations import MongoDBResourcesOperations
from ._table_resources_operations import TableResourcesOperations
from ._cassandra_resources_operations import CassandraResourcesOperations
from ._gremlin_resources_operations import GremlinResourcesOperations
from ._locations_operations import LocationsOperations
from ._data_transfer_jobs_operations import DataTransferJobsOperations
from ._cassandra_clusters_operations import CassandraClustersOperations
from ._cassandra_data_centers_operations import CassandraDataCentersOperations
from ._mongo_clusters_operations import MongoClustersOperations
from ._notebook_workspaces_operations import NotebookWorkspacesOperations
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
Expand All @@ -43,6 +46,10 @@
from ._restorable_tables_operations import RestorableTablesOperations
from ._restorable_table_resources_operations import RestorableTableResourcesOperations
from ._service_operations import ServiceOperations
from ._throughput_pools_operations import ThroughputPoolsOperations
from ._throughput_pool_operations import ThroughputPoolOperations
from ._throughput_pool_accounts_operations import ThroughputPoolAccountsOperations
from ._throughput_pool_account_operations import ThroughputPoolAccountOperations

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
Expand All @@ -62,14 +69,17 @@
"CollectionPartitionOperations",
"PartitionKeyRangeIdOperations",
"PartitionKeyRangeIdRegionOperations",
"GraphResourcesOperations",
"SqlResourcesOperations",
"MongoDBResourcesOperations",
"TableResourcesOperations",
"CassandraResourcesOperations",
"GremlinResourcesOperations",
"LocationsOperations",
"DataTransferJobsOperations",
"CassandraClustersOperations",
"CassandraDataCentersOperations",
"MongoClustersOperations",
"NotebookWorkspacesOperations",
"PrivateEndpointConnectionsOperations",
"PrivateLinkResourcesOperations",
Expand All @@ -86,6 +96,10 @@
"RestorableTablesOperations",
"RestorableTableResourcesOperations",
"ServiceOperations",
"ThroughputPoolsOperations",
"ThroughputPoolOperations",
"ThroughputPoolAccountsOperations",
"ThroughputPoolAccountOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Loading

0 comments on commit de34909

Please sign in to comment.