Skip to content

Commit 8c09f38

Browse files
SDKAutoAlfredo Santamaria Gomez
andcommitted
CodeGen from PR 14838 in Azure/azure-rest-api-specs
[Service Fabric] adding api version 2021-06-01 (Azure#14838) * initiall commit with previous stable version 2020-03-01 * update to version 2021-06-01 * update examples with 2021-06-01 api * fix automation errors * remove operation definitions from app * use systemData from common-types * add type * update vmInstanceCount description and min * adding missing az params * adding missing cluster parameters * remove 200 from app delete operations * remove default respopnse from clusterVersions Co-authored-by: Alfredo Santamaria Gomez <[email protected]>
1 parent 676b80e commit 8c09f38

39 files changed

+861
-5954
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"autorest": "3.4.2",
33
"use": [
4-
"@autorest/[email protected].0",
4+
"@autorest/[email protected].1",
55
"@autorest/[email protected]"
66
],
7-
"commit": "6bab06211537f8f0b462661871b806de8be26521",
7+
"commit": "52b1c1b978341a3905075dc0cdd2189ac795faf8",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"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/[email protected].0 --use=@autorest/[email protected] --version=3.4.2",
9+
"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/[email protected].1 --use=@autorest/[email protected] --version=3.4.2",
1010
"readme": "specification/servicefabric/resource-manager/readme.md"
1111
}

sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/_configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51+
self.api_version = "2021-06-01"
5152
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5253
kwargs.setdefault('sdk_moniker', 'mgmt-servicefabric/{}'.format(VERSION))
5354
self._configure(**kwargs)

sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/_metadata.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "",
3-
"total_api_version_list": ["2020-01-01-preview", "2020-03-01"],
2+
"chosen_version": "2021-06-01",
3+
"total_api_version_list": ["2021-06-01"],
44
"client": {
55
"name": "ServiceFabricManagementClient",
66
"filename": "_service_fabric_management_client",
@@ -101,15 +101,9 @@
101101
"clusters": "ClustersOperations",
102102
"cluster_versions": "ClusterVersionsOperations",
103103
"operations": "Operations",
104-
"application": "ApplicationOperations",
105104
"application_types": "ApplicationTypesOperations",
106105
"application_type_versions": "ApplicationTypeVersionsOperations",
107106
"applications": "ApplicationsOperations",
108-
"services": "ServicesOperations",
109-
"managed_clusters": "ManagedClustersOperations",
110-
"managedcluster": "ManagedclusterOperations",
111-
"managed_cluster_versions": "ManagedClusterVersionsOperations",
112-
"nodetype": "NodetypeOperations",
113-
"node_types": "NodeTypesOperations"
107+
"services": "ServicesOperations"
114108
}
115109
}

sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/_service_fabric_management_client.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,10 @@
2222
from .operations import ClustersOperations
2323
from .operations import ClusterVersionsOperations
2424
from .operations import Operations
25-
from .operations import ApplicationOperations
2625
from .operations import ApplicationTypesOperations
2726
from .operations import ApplicationTypeVersionsOperations
2827
from .operations import ApplicationsOperations
2928
from .operations import ServicesOperations
30-
from .operations import ManagedClustersOperations
31-
from .operations import ManagedclusterOperations
32-
from .operations import ManagedClusterVersionsOperations
33-
from .operations import NodetypeOperations
34-
from .operations import NodeTypesOperations
3529
from . import models
3630

3731

@@ -44,8 +38,6 @@ class ServiceFabricManagementClient(object):
4438
:vartype cluster_versions: azure.mgmt.servicefabric.operations.ClusterVersionsOperations
4539
:ivar operations: Operations operations
4640
:vartype operations: azure.mgmt.servicefabric.operations.Operations
47-
:ivar application: ApplicationOperations operations
48-
:vartype application: azure.mgmt.servicefabric.operations.ApplicationOperations
4941
:ivar application_types: ApplicationTypesOperations operations
5042
:vartype application_types: azure.mgmt.servicefabric.operations.ApplicationTypesOperations
5143
:ivar application_type_versions: ApplicationTypeVersionsOperations operations
@@ -54,16 +46,6 @@ class ServiceFabricManagementClient(object):
5446
:vartype applications: azure.mgmt.servicefabric.operations.ApplicationsOperations
5547
:ivar services: ServicesOperations operations
5648
:vartype services: azure.mgmt.servicefabric.operations.ServicesOperations
57-
:ivar managed_clusters: ManagedClustersOperations operations
58-
:vartype managed_clusters: azure.mgmt.servicefabric.operations.ManagedClustersOperations
59-
:ivar managedcluster: ManagedclusterOperations operations
60-
:vartype managedcluster: azure.mgmt.servicefabric.operations.ManagedclusterOperations
61-
:ivar managed_cluster_versions: ManagedClusterVersionsOperations operations
62-
:vartype managed_cluster_versions: azure.mgmt.servicefabric.operations.ManagedClusterVersionsOperations
63-
:ivar nodetype: NodetypeOperations operations
64-
:vartype nodetype: azure.mgmt.servicefabric.operations.NodetypeOperations
65-
:ivar node_types: NodeTypesOperations operations
66-
:vartype node_types: azure.mgmt.servicefabric.operations.NodeTypesOperations
6749
:param credential: Credential needed for the client to connect to Azure.
6850
:type credential: ~azure.core.credentials.TokenCredential
6951
:param subscription_id: The customer subscription identifier.
@@ -96,8 +78,6 @@ def __init__(
9678
self._client, self._config, self._serialize, self._deserialize)
9779
self.operations = Operations(
9880
self._client, self._config, self._serialize, self._deserialize)
99-
self.application = ApplicationOperations(
100-
self._client, self._config, self._serialize, self._deserialize)
10181
self.application_types = ApplicationTypesOperations(
10282
self._client, self._config, self._serialize, self._deserialize)
10383
self.application_type_versions = ApplicationTypeVersionsOperations(
@@ -106,16 +86,6 @@ def __init__(
10686
self._client, self._config, self._serialize, self._deserialize)
10787
self.services = ServicesOperations(
10888
self._client, self._config, self._serialize, self._deserialize)
109-
self.managed_clusters = ManagedClustersOperations(
110-
self._client, self._config, self._serialize, self._deserialize)
111-
self.managedcluster = ManagedclusterOperations(
112-
self._client, self._config, self._serialize, self._deserialize)
113-
self.managed_cluster_versions = ManagedClusterVersionsOperations(
114-
self._client, self._config, self._serialize, self._deserialize)
115-
self.nodetype = NodetypeOperations(
116-
self._client, self._config, self._serialize, self._deserialize)
117-
self.node_types = NodeTypesOperations(
118-
self._client, self._config, self._serialize, self._deserialize)
11989

12090
def _send_request(self, http_request, **kwargs):
12191
# type: (HttpRequest, Any) -> HttpResponse

sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0"
9+
VERSION = "1.0.0b1"

sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/aio/_configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48+
self.api_version = "2021-06-01"
4849
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
4950
kwargs.setdefault('sdk_moniker', 'mgmt-servicefabric/{}'.format(VERSION))
5051
self._configure(**kwargs)

sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/aio/_service_fabric_management_client.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,10 @@
2020
from .operations import ClustersOperations
2121
from .operations import ClusterVersionsOperations
2222
from .operations import Operations
23-
from .operations import ApplicationOperations
2423
from .operations import ApplicationTypesOperations
2524
from .operations import ApplicationTypeVersionsOperations
2625
from .operations import ApplicationsOperations
2726
from .operations import ServicesOperations
28-
from .operations import ManagedClustersOperations
29-
from .operations import ManagedclusterOperations
30-
from .operations import ManagedClusterVersionsOperations
31-
from .operations import NodetypeOperations
32-
from .operations import NodeTypesOperations
3327
from .. import models
3428

3529

@@ -42,8 +36,6 @@ class ServiceFabricManagementClient(object):
4236
:vartype cluster_versions: azure.mgmt.servicefabric.aio.operations.ClusterVersionsOperations
4337
:ivar operations: Operations operations
4438
:vartype operations: azure.mgmt.servicefabric.aio.operations.Operations
45-
:ivar application: ApplicationOperations operations
46-
:vartype application: azure.mgmt.servicefabric.aio.operations.ApplicationOperations
4739
:ivar application_types: ApplicationTypesOperations operations
4840
:vartype application_types: azure.mgmt.servicefabric.aio.operations.ApplicationTypesOperations
4941
:ivar application_type_versions: ApplicationTypeVersionsOperations operations
@@ -52,16 +44,6 @@ class ServiceFabricManagementClient(object):
5244
:vartype applications: azure.mgmt.servicefabric.aio.operations.ApplicationsOperations
5345
:ivar services: ServicesOperations operations
5446
:vartype services: azure.mgmt.servicefabric.aio.operations.ServicesOperations
55-
:ivar managed_clusters: ManagedClustersOperations operations
56-
:vartype managed_clusters: azure.mgmt.servicefabric.aio.operations.ManagedClustersOperations
57-
:ivar managedcluster: ManagedclusterOperations operations
58-
:vartype managedcluster: azure.mgmt.servicefabric.aio.operations.ManagedclusterOperations
59-
:ivar managed_cluster_versions: ManagedClusterVersionsOperations operations
60-
:vartype managed_cluster_versions: azure.mgmt.servicefabric.aio.operations.ManagedClusterVersionsOperations
61-
:ivar nodetype: NodetypeOperations operations
62-
:vartype nodetype: azure.mgmt.servicefabric.aio.operations.NodetypeOperations
63-
:ivar node_types: NodeTypesOperations operations
64-
:vartype node_types: azure.mgmt.servicefabric.aio.operations.NodeTypesOperations
6547
:param credential: Credential needed for the client to connect to Azure.
6648
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
6749
:param subscription_id: The customer subscription identifier.
@@ -93,8 +75,6 @@ def __init__(
9375
self._client, self._config, self._serialize, self._deserialize)
9476
self.operations = Operations(
9577
self._client, self._config, self._serialize, self._deserialize)
96-
self.application = ApplicationOperations(
97-
self._client, self._config, self._serialize, self._deserialize)
9878
self.application_types = ApplicationTypesOperations(
9979
self._client, self._config, self._serialize, self._deserialize)
10080
self.application_type_versions = ApplicationTypeVersionsOperations(
@@ -103,16 +83,6 @@ def __init__(
10383
self._client, self._config, self._serialize, self._deserialize)
10484
self.services = ServicesOperations(
10585
self._client, self._config, self._serialize, self._deserialize)
106-
self.managed_clusters = ManagedClustersOperations(
107-
self._client, self._config, self._serialize, self._deserialize)
108-
self.managedcluster = ManagedclusterOperations(
109-
self._client, self._config, self._serialize, self._deserialize)
110-
self.managed_cluster_versions = ManagedClusterVersionsOperations(
111-
self._client, self._config, self._serialize, self._deserialize)
112-
self.nodetype = NodetypeOperations(
113-
self._client, self._config, self._serialize, self._deserialize)
114-
self.node_types = NodeTypesOperations(
115-
self._client, self._config, self._serialize, self._deserialize)
11686

11787
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
11888
"""Runs the network request through the client's chained policies.

sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/aio/operations/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,17 @@
99
from ._clusters_operations import ClustersOperations
1010
from ._cluster_versions_operations import ClusterVersionsOperations
1111
from ._operations import Operations
12-
from ._application_operations import ApplicationOperations
1312
from ._application_types_operations import ApplicationTypesOperations
1413
from ._application_type_versions_operations import ApplicationTypeVersionsOperations
1514
from ._applications_operations import ApplicationsOperations
1615
from ._services_operations import ServicesOperations
17-
from ._managed_clusters_operations import ManagedClustersOperations
18-
from ._managedcluster_operations import ManagedclusterOperations
19-
from ._managed_cluster_versions_operations import ManagedClusterVersionsOperations
20-
from ._nodetype_operations import NodetypeOperations
21-
from ._node_types_operations import NodeTypesOperations
2216

2317
__all__ = [
2418
'ClustersOperations',
2519
'ClusterVersionsOperations',
2620
'Operations',
27-
'ApplicationOperations',
2821
'ApplicationTypesOperations',
2922
'ApplicationTypeVersionsOperations',
3023
'ApplicationsOperations',
3124
'ServicesOperations',
32-
'ManagedClustersOperations',
33-
'ManagedclusterOperations',
34-
'ManagedClusterVersionsOperations',
35-
'NodetypeOperations',
36-
'NodeTypesOperations',
3725
]

sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/aio/operations/_application_operations.py

Lines changed: 0 additions & 107 deletions
This file was deleted.

sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/aio/operations/_application_type_versions_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def get(
7373
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7474
}
7575
error_map.update(kwargs.pop('error_map', {}))
76-
api_version = "2020-03-01"
76+
api_version = "2021-06-01"
7777
accept = "application/json"
7878

7979
# Construct URL
@@ -126,7 +126,7 @@ async def _create_or_update_initial(
126126
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
127127
}
128128
error_map.update(kwargs.pop('error_map', {}))
129-
api_version = "2020-03-01"
129+
api_version = "2021-06-01"
130130
content_type = kwargs.pop("content_type", "application/json")
131131
accept = "application/json"
132132

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

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

412412
# Construct URL

0 commit comments

Comments
 (0)