Skip to content

Commit 5a0132d

Browse files
author
SDKAuto
committed
CodeGen from PR 32790 in Azure/azure-rest-api-specs
Merge 4ccfffbffb838ab17801bb9b3040aadde72732c4 into b311f3284390c451f05be6c20ead51740ece56b7
1 parent 67c3f50 commit 5a0132d

File tree

147 files changed

+9834
-4226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+9834
-4226
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "93a8154cfee7eb198397e256357fa60dce671763",
2+
"commit": "e9fe13e6b0c972c3f502bf320ca21c7ee984c17b",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.26.4",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/servicefabricmanagedclusters/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.26.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/servicefabricmanagedclusters/resource-manager/readme.md --generate-sample=True --generate-test=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.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/servicefabricmanagedclusters/resource-manager/readme.md"
1111
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ class ServiceFabricManagedClustersManagementClientConfiguration: # pylint: disa
2525
2626
:param credential: Credential needed for the client to connect to Azure. Required.
2727
:type credential: ~azure.core.credentials.TokenCredential
28-
:param subscription_id: The customer subscription identifier. Required.
28+
:param subscription_id: The ID of the target subscription. Required.
2929
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
30+
:keyword api_version: Api Version. Default value is "2024-11-01-preview". Note that overriding
3131
this default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
3434

3535
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2024-09-01-preview")
36+
api_version: str = kwargs.pop("api_version", "2024-11-01-preview")
3737

3838
if credential is None:
3939
raise ValueError("Parameter 'credential' must not be None.")

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/azure/mgmt/servicefabricmanagedclusters/_serialization.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def _create_xml_node(tag, prefix=None, ns=None):
310310
return ET.Element(tag)
311311

312312

313-
class Model(object):
313+
class Model:
314314
"""Mixin for all client request body/response body models to support
315315
serialization and deserialization.
316316
"""
@@ -563,7 +563,7 @@ def _decode_attribute_map_key(key):
563563
return key.replace("\\.", ".")
564564

565565

566-
class Serializer(object): # pylint: disable=too-many-public-methods
566+
class Serializer: # pylint: disable=too-many-public-methods
567567
"""Request object model serializer."""
568568

569569
basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
@@ -1441,7 +1441,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
14411441
return children[0]
14421442

14431443

1444-
class Deserializer(object):
1444+
class Deserializer:
14451445
"""Response object model deserializer.
14461446
14471447
:param dict classes: Class type dictionary for deserializing complex types.
@@ -1683,17 +1683,21 @@ def _instantiate_model(self, response, attrs, additional_properties=None):
16831683
subtype = getattr(response, "_subtype_map", {})
16841684
try:
16851685
readonly = [
1686-
k for k, v in response._validation.items() if v.get("readonly") # pylint: disable=protected-access
1686+
k
1687+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1688+
if v.get("readonly")
16871689
]
16881690
const = [
1689-
k for k, v in response._validation.items() if v.get("constant") # pylint: disable=protected-access
1691+
k
1692+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1693+
if v.get("constant")
16901694
]
16911695
kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const}
16921696
response_obj = response(**kwargs)
16931697
for attr in readonly:
16941698
setattr(response_obj, attr, attrs.get(attr))
16951699
if additional_properties:
1696-
response_obj.additional_properties = additional_properties
1700+
response_obj.additional_properties = additional_properties # type: ignore
16971701
return response_obj
16981702
except TypeError as err:
16991703
msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) # type: ignore

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/azure/mgmt/servicefabricmanagedclusters/_service_fabric_managed_clusters_management_client.py

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,23 @@
4343
class ServiceFabricManagedClustersManagementClient: # pylint: disable=too-many-instance-attributes,name-too-long
4444
"""Service Fabric Managed Clusters Management Client.
4545
46+
:ivar operations: Operations operations
47+
:vartype operations: azure.mgmt.servicefabricmanagedclusters.operations.Operations
48+
:ivar managed_cluster_version: ManagedClusterVersionOperations operations
49+
:vartype managed_cluster_version:
50+
azure.mgmt.servicefabricmanagedclusters.operations.ManagedClusterVersionOperations
51+
:ivar operation_results: OperationResultsOperations operations
52+
:vartype operation_results:
53+
azure.mgmt.servicefabricmanagedclusters.operations.OperationResultsOperations
54+
:ivar operation_status: OperationStatusOperations operations
55+
:vartype operation_status:
56+
azure.mgmt.servicefabricmanagedclusters.operations.OperationStatusOperations
57+
:ivar managed_unsupported_vm_sizes: ManagedUnsupportedVMSizesOperations operations
58+
:vartype managed_unsupported_vm_sizes:
59+
azure.mgmt.servicefabricmanagedclusters.operations.ManagedUnsupportedVMSizesOperations
60+
:ivar managed_clusters: ManagedClustersOperations operations
61+
:vartype managed_clusters:
62+
azure.mgmt.servicefabricmanagedclusters.operations.ManagedClustersOperations
4663
:ivar application_types: ApplicationTypesOperations operations
4764
:vartype application_types:
4865
azure.mgmt.servicefabricmanagedclusters.operations.ApplicationTypesOperations
@@ -54,44 +71,27 @@ class ServiceFabricManagedClustersManagementClient: # pylint: disable=too-many-
5471
azure.mgmt.servicefabricmanagedclusters.operations.ApplicationsOperations
5572
:ivar services: ServicesOperations operations
5673
:vartype services: azure.mgmt.servicefabricmanagedclusters.operations.ServicesOperations
57-
:ivar managed_clusters: ManagedClustersOperations operations
58-
:vartype managed_clusters:
59-
azure.mgmt.servicefabricmanagedclusters.operations.ManagedClustersOperations
60-
:ivar managed_az_resiliency_status: ManagedAzResiliencyStatusOperations operations
61-
:vartype managed_az_resiliency_status:
62-
azure.mgmt.servicefabricmanagedclusters.operations.ManagedAzResiliencyStatusOperations
63-
:ivar managed_maintenance_window_status: ManagedMaintenanceWindowStatusOperations operations
64-
:vartype managed_maintenance_window_status:
65-
azure.mgmt.servicefabricmanagedclusters.operations.ManagedMaintenanceWindowStatusOperations
6674
:ivar managed_apply_maintenance_window: ManagedApplyMaintenanceWindowOperations operations
6775
:vartype managed_apply_maintenance_window:
6876
azure.mgmt.servicefabricmanagedclusters.operations.ManagedApplyMaintenanceWindowOperations
69-
:ivar managed_cluster_version: ManagedClusterVersionOperations operations
70-
:vartype managed_cluster_version:
71-
azure.mgmt.servicefabricmanagedclusters.operations.ManagedClusterVersionOperations
72-
:ivar managed_unsupported_vm_sizes: ManagedUnsupportedVMSizesOperations operations
73-
:vartype managed_unsupported_vm_sizes:
74-
azure.mgmt.servicefabricmanagedclusters.operations.ManagedUnsupportedVMSizesOperations
75-
:ivar operation_status: OperationStatusOperations operations
76-
:vartype operation_status:
77-
azure.mgmt.servicefabricmanagedclusters.operations.OperationStatusOperations
78-
:ivar operation_results: OperationResultsOperations operations
79-
:vartype operation_results:
80-
azure.mgmt.servicefabricmanagedclusters.operations.OperationResultsOperations
81-
:ivar operations: Operations operations
82-
:vartype operations: azure.mgmt.servicefabricmanagedclusters.operations.Operations
77+
:ivar managed_maintenance_window_status: ManagedMaintenanceWindowStatusOperations operations
78+
:vartype managed_maintenance_window_status:
79+
azure.mgmt.servicefabricmanagedclusters.operations.ManagedMaintenanceWindowStatusOperations
80+
:ivar managed_az_resiliency_status: ManagedAzResiliencyStatusOperations operations
81+
:vartype managed_az_resiliency_status:
82+
azure.mgmt.servicefabricmanagedclusters.operations.ManagedAzResiliencyStatusOperations
8383
:ivar node_types: NodeTypesOperations operations
8484
:vartype node_types: azure.mgmt.servicefabricmanagedclusters.operations.NodeTypesOperations
8585
:ivar node_type_skus: NodeTypeSkusOperations operations
8686
:vartype node_type_skus:
8787
azure.mgmt.servicefabricmanagedclusters.operations.NodeTypeSkusOperations
8888
:param credential: Credential needed for the client to connect to Azure. Required.
8989
:type credential: ~azure.core.credentials.TokenCredential
90-
:param subscription_id: The customer subscription identifier. Required.
90+
:param subscription_id: The ID of the target subscription. Required.
9191
:type subscription_id: str
9292
:param base_url: Service URL. Default value is "https://management.azure.com".
9393
:type base_url: str
94-
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
94+
:keyword api_version: Api Version. Default value is "2024-11-01-preview". Note that overriding
9595
this default value may result in unsupported behavior.
9696
:paramtype api_version: str
9797
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -132,39 +132,39 @@ def __init__(
132132
self._serialize = Serializer(client_models)
133133
self._deserialize = Deserializer(client_models)
134134
self._serialize.client_side_validation = False
135-
self.application_types = ApplicationTypesOperations(
135+
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
136+
self.managed_cluster_version = ManagedClusterVersionOperations(
136137
self._client, self._config, self._serialize, self._deserialize
137138
)
138-
self.application_type_versions = ApplicationTypeVersionsOperations(
139+
self.operation_results = OperationResultsOperations(
139140
self._client, self._config, self._serialize, self._deserialize
140141
)
141-
self.applications = ApplicationsOperations(self._client, self._config, self._serialize, self._deserialize)
142-
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)
143-
self.managed_clusters = ManagedClustersOperations(
142+
self.operation_status = OperationStatusOperations(
144143
self._client, self._config, self._serialize, self._deserialize
145144
)
146-
self.managed_az_resiliency_status = ManagedAzResiliencyStatusOperations(
145+
self.managed_unsupported_vm_sizes = ManagedUnsupportedVMSizesOperations(
147146
self._client, self._config, self._serialize, self._deserialize
148147
)
149-
self.managed_maintenance_window_status = ManagedMaintenanceWindowStatusOperations(
148+
self.managed_clusters = ManagedClustersOperations(
150149
self._client, self._config, self._serialize, self._deserialize
151150
)
152-
self.managed_apply_maintenance_window = ManagedApplyMaintenanceWindowOperations(
151+
self.application_types = ApplicationTypesOperations(
153152
self._client, self._config, self._serialize, self._deserialize
154153
)
155-
self.managed_cluster_version = ManagedClusterVersionOperations(
154+
self.application_type_versions = ApplicationTypeVersionsOperations(
156155
self._client, self._config, self._serialize, self._deserialize
157156
)
158-
self.managed_unsupported_vm_sizes = ManagedUnsupportedVMSizesOperations(
157+
self.applications = ApplicationsOperations(self._client, self._config, self._serialize, self._deserialize)
158+
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)
159+
self.managed_apply_maintenance_window = ManagedApplyMaintenanceWindowOperations(
159160
self._client, self._config, self._serialize, self._deserialize
160161
)
161-
self.operation_status = OperationStatusOperations(
162+
self.managed_maintenance_window_status = ManagedMaintenanceWindowStatusOperations(
162163
self._client, self._config, self._serialize, self._deserialize
163164
)
164-
self.operation_results = OperationResultsOperations(
165+
self.managed_az_resiliency_status = ManagedAzResiliencyStatusOperations(
165166
self._client, self._config, self._serialize, self._deserialize
166167
)
167-
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
168168
self.node_types = NodeTypesOperations(self._client, self._config, self._serialize, self._deserialize)
169169
self.node_type_skus = NodeTypeSkusOperations(self._client, self._config, self._serialize, self._deserialize)
170170

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/azure/mgmt/servicefabricmanagedclusters/_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 = "2.1.0b2"
9+
VERSION = "0.1.0"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ class ServiceFabricManagedClustersManagementClientConfiguration: # pylint: disa
2525
2626
:param credential: Credential needed for the client to connect to Azure. Required.
2727
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
28-
:param subscription_id: The customer subscription identifier. Required.
28+
:param subscription_id: The ID of the target subscription. Required.
2929
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
30+
:keyword api_version: Api Version. Default value is "2024-11-01-preview". Note that overriding
3131
this default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
3434

3535
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2024-09-01-preview")
36+
api_version: str = kwargs.pop("api_version", "2024-11-01-preview")
3737

3838
if credential is None:
3939
raise ValueError("Parameter 'credential' must not be None.")

0 commit comments

Comments
 (0)