Skip to content

Commit

Permalink
CodeGen from PR 15128 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 9b5d3b6ef1f529bb586817bafc50dce7cbd995e1 into d241e05
  • Loading branch information
SDKAuto committed Jul 20, 2021
1 parent a65e853 commit 4b60eba
Show file tree
Hide file tree
Showing 39 changed files with 891 additions and 5,963 deletions.
8 changes: 4 additions & 4 deletions sdk/servicefabric/azure-mgmt-servicefabric/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"autorest": "3.4.5",
"use": [
"@autorest/python@5.8.0",
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "6bab06211537f8f0b462661871b806de8be26521",
"commit": "3794d21974162d64eafccc58c0b55b10e28ad069",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/servicefabric/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"autorest_command": "autorest specification/servicefabric/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/servicefabric/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-06-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-servicefabric/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "",
"total_api_version_list": ["2020-01-01-preview", "2020-03-01"],
"chosen_version": "2021-06-01",
"total_api_version_list": ["2021-06-01"],
"client": {
"name": "ServiceFabricManagementClient",
"filename": "_service_fabric_management_client",
Expand Down Expand Up @@ -101,15 +101,9 @@
"clusters": "ClustersOperations",
"cluster_versions": "ClusterVersionsOperations",
"operations": "Operations",
"application": "ApplicationOperations",
"application_types": "ApplicationTypesOperations",
"application_type_versions": "ApplicationTypeVersionsOperations",
"applications": "ApplicationsOperations",
"services": "ServicesOperations",
"managed_clusters": "ManagedClustersOperations",
"managedcluster": "ManagedclusterOperations",
"managed_cluster_versions": "ManagedClusterVersionsOperations",
"nodetype": "NodetypeOperations",
"node_types": "NodeTypesOperations"
"services": "ServicesOperations"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,10 @@
from .operations import ClustersOperations
from .operations import ClusterVersionsOperations
from .operations import Operations
from .operations import ApplicationOperations
from .operations import ApplicationTypesOperations
from .operations import ApplicationTypeVersionsOperations
from .operations import ApplicationsOperations
from .operations import ServicesOperations
from .operations import ManagedClustersOperations
from .operations import ManagedclusterOperations
from .operations import ManagedClusterVersionsOperations
from .operations import NodetypeOperations
from .operations import NodeTypesOperations
from . import models


Expand All @@ -44,8 +38,6 @@ class ServiceFabricManagementClient(object):
:vartype cluster_versions: azure.mgmt.servicefabric.operations.ClusterVersionsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.servicefabric.operations.Operations
:ivar application: ApplicationOperations operations
:vartype application: azure.mgmt.servicefabric.operations.ApplicationOperations
:ivar application_types: ApplicationTypesOperations operations
:vartype application_types: azure.mgmt.servicefabric.operations.ApplicationTypesOperations
:ivar application_type_versions: ApplicationTypeVersionsOperations operations
Expand All @@ -54,16 +46,6 @@ class ServiceFabricManagementClient(object):
:vartype applications: azure.mgmt.servicefabric.operations.ApplicationsOperations
:ivar services: ServicesOperations operations
:vartype services: azure.mgmt.servicefabric.operations.ServicesOperations
:ivar managed_clusters: ManagedClustersOperations operations
:vartype managed_clusters: azure.mgmt.servicefabric.operations.ManagedClustersOperations
:ivar managedcluster: ManagedclusterOperations operations
:vartype managedcluster: azure.mgmt.servicefabric.operations.ManagedclusterOperations
:ivar managed_cluster_versions: ManagedClusterVersionsOperations operations
:vartype managed_cluster_versions: azure.mgmt.servicefabric.operations.ManagedClusterVersionsOperations
:ivar nodetype: NodetypeOperations operations
:vartype nodetype: azure.mgmt.servicefabric.operations.NodetypeOperations
:ivar node_types: NodeTypesOperations operations
:vartype node_types: azure.mgmt.servicefabric.operations.NodeTypesOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The customer subscription identifier.
Expand Down Expand Up @@ -96,8 +78,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.application = ApplicationOperations(
self._client, self._config, self._serialize, self._deserialize)
self.application_types = ApplicationTypesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.application_type_versions = ApplicationTypeVersionsOperations(
Expand All @@ -106,16 +86,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.services = ServicesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.managed_clusters = ManagedClustersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.managedcluster = ManagedclusterOperations(
self._client, self._config, self._serialize, self._deserialize)
self.managed_cluster_versions = ManagedClusterVersionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.nodetype = NodetypeOperations(
self._client, self._config, self._serialize, self._deserialize)
self.node_types = NodeTypesOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
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 = "1.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-06-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-servicefabric/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,10 @@
from .operations import ClustersOperations
from .operations import ClusterVersionsOperations
from .operations import Operations
from .operations import ApplicationOperations
from .operations import ApplicationTypesOperations
from .operations import ApplicationTypeVersionsOperations
from .operations import ApplicationsOperations
from .operations import ServicesOperations
from .operations import ManagedClustersOperations
from .operations import ManagedclusterOperations
from .operations import ManagedClusterVersionsOperations
from .operations import NodetypeOperations
from .operations import NodeTypesOperations
from .. import models


Expand All @@ -42,8 +36,6 @@ class ServiceFabricManagementClient(object):
:vartype cluster_versions: azure.mgmt.servicefabric.aio.operations.ClusterVersionsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.servicefabric.aio.operations.Operations
:ivar application: ApplicationOperations operations
:vartype application: azure.mgmt.servicefabric.aio.operations.ApplicationOperations
:ivar application_types: ApplicationTypesOperations operations
:vartype application_types: azure.mgmt.servicefabric.aio.operations.ApplicationTypesOperations
:ivar application_type_versions: ApplicationTypeVersionsOperations operations
Expand All @@ -52,16 +44,6 @@ class ServiceFabricManagementClient(object):
:vartype applications: azure.mgmt.servicefabric.aio.operations.ApplicationsOperations
:ivar services: ServicesOperations operations
:vartype services: azure.mgmt.servicefabric.aio.operations.ServicesOperations
:ivar managed_clusters: ManagedClustersOperations operations
:vartype managed_clusters: azure.mgmt.servicefabric.aio.operations.ManagedClustersOperations
:ivar managedcluster: ManagedclusterOperations operations
:vartype managedcluster: azure.mgmt.servicefabric.aio.operations.ManagedclusterOperations
:ivar managed_cluster_versions: ManagedClusterVersionsOperations operations
:vartype managed_cluster_versions: azure.mgmt.servicefabric.aio.operations.ManagedClusterVersionsOperations
:ivar nodetype: NodetypeOperations operations
:vartype nodetype: azure.mgmt.servicefabric.aio.operations.NodetypeOperations
:ivar node_types: NodeTypesOperations operations
:vartype node_types: azure.mgmt.servicefabric.aio.operations.NodeTypesOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The customer subscription identifier.
Expand Down Expand Up @@ -93,8 +75,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.application = ApplicationOperations(
self._client, self._config, self._serialize, self._deserialize)
self.application_types = ApplicationTypesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.application_type_versions = ApplicationTypeVersionsOperations(
Expand All @@ -103,16 +83,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.services = ServicesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.managed_clusters = ManagedClustersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.managedcluster = ManagedclusterOperations(
self._client, self._config, self._serialize, self._deserialize)
self.managed_cluster_versions = ManagedClusterVersionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.nodetype = NodetypeOperations(
self._client, self._config, self._serialize, self._deserialize)
self.node_types = NodeTypesOperations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> 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 @@ -9,29 +9,17 @@
from ._clusters_operations import ClustersOperations
from ._cluster_versions_operations import ClusterVersionsOperations
from ._operations import Operations
from ._application_operations import ApplicationOperations
from ._application_types_operations import ApplicationTypesOperations
from ._application_type_versions_operations import ApplicationTypeVersionsOperations
from ._applications_operations import ApplicationsOperations
from ._services_operations import ServicesOperations
from ._managed_clusters_operations import ManagedClustersOperations
from ._managedcluster_operations import ManagedclusterOperations
from ._managed_cluster_versions_operations import ManagedClusterVersionsOperations
from ._nodetype_operations import NodetypeOperations
from ._node_types_operations import NodeTypesOperations

__all__ = [
'ClustersOperations',
'ClusterVersionsOperations',
'Operations',
'ApplicationOperations',
'ApplicationTypesOperations',
'ApplicationTypeVersionsOperations',
'ApplicationsOperations',
'ServicesOperations',
'ManagedClustersOperations',
'ManagedclusterOperations',
'ManagedClusterVersionsOperations',
'NodetypeOperations',
'NodeTypesOperations',
]

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-03-01"
api_version = "2021-06-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -126,7 +126,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-03-01"
api_version = "2021-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -266,7 +266,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-03-01"
api_version = "2021-06-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -406,7 +406,7 @@ async def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-03-01"
api_version = "2021-06-01"
accept = "application/json"

# Construct URL
Expand Down
Loading

0 comments on commit 4b60eba

Please sign in to comment.