Skip to content

Commit 95f73ab

Browse files
Azure CLI BotSDKAutoAlfredo Santamaria GomezRAY-316
authored
[AutoRelease] t2-servicefabricmanagedclusters-2021-04-27-39982 (Azure#18340)
* CodeGen from PR 13961 in Azure/azure-rest-api-specs [Service Fabric Managed Clusters] fix api 2020_05_01 (Azure#13961) * Use enums and add missing properties * model enum as string Co-authored-by: Alfredo Santamaria Gomez <alsantam@microsoft.com> * version,CHANGELOG * changelog config * Update shared_requirements.txt Delete extra items * ci.yml config Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: Alfredo Santamaria Gomez <alsantam@microsoft.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed <601306339@qq.com> Co-authored-by: Zed Lei <59104634+RAY-316@users.noreply.github.com>
1 parent b28ae08 commit 95f73ab

34 files changed

+1277
-365
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Release History
22

3+
## 1.0.0 (2021-04-27)
4+
5+
**Features**
6+
7+
- Model ManagedCluster has a new parameter zonal_resiliency
8+
- Model ManagedCluster has a new parameter cluster_upgrade_mode
9+
- Model NodeType has a new parameter data_disk_type
10+
- Model NodeType has a new parameter multiple_placement_groups
11+
- Model NodeType has a new parameter is_stateless
12+
- Model LoadBalancingRule has a new parameter probe_port
13+
- Added operation group ManagedClusterVersionOperations
14+
15+
**Breaking changes**
16+
17+
- Model StatelessServiceProperties no longer has parameter service_dns_name
18+
- Model StatelessServiceProperties no longer has parameter instance_close_delay_duration
19+
- Model ServiceResourceProperties no longer has parameter service_dns_name
20+
- Model AverageServiceLoadScalingTrigger has a new required parameter use_only_primary_load
21+
- Model StatefulServiceProperties no longer has parameter service_dns_name
22+
- Model StatefulServiceProperties no longer has parameter drop_source_replica_on_move
23+
324
## 1.0.0b1 (2021-02-26)
425

526
* Initial Release

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "3.3.0",
3+
"use": "@autorest/python@5.6.6",
4+
"commit": "1b38cd3ccb2224b0c838fd77c870cd72e2a5eff2",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/servicefabricmanagedclusters/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.6.6 --version=3.3.0",
7+
"readme": "specification/servicefabricmanagedclusters/resource-manager/readme.md"
8+
}

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

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

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2021-01-01-preview"
51+
self.api_version = "2021-05-01"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-servicefabricmanagedclusters/{}'.format(VERSION))
5454
self._configure(**kwargs)
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2021-01-01-preview",
3-
"total_api_version_list": ["2021-01-01-preview"],
2+
"chosen_version": "2021-05-01",
3+
"total_api_version_list": ["2021-05-01"],
44
"client": {
55
"name": "ServiceFabricManagedClustersManagementClient",
66
"filename": "_service_fabric_managed_clusters_management_client",
@@ -9,7 +9,9 @@
99
"custom_base_url": null,
1010
"azure_arm": true,
1111
"has_lro_operations": true,
12-
"client_side_validation": true
12+
"client_side_validation": false,
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ServiceFabricManagedClustersManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ServiceFabricManagedClustersManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
1315
},
1416
"global_parameters": {
1517
"sync": {
@@ -28,40 +30,81 @@
2830
},
2931
"async": {
3032
"credential": {
31-
"signature": "credential, # type: \"AsyncTokenCredential\"",
33+
"signature": "credential: \"AsyncTokenCredential\",",
3234
"description": "Credential needed for the client to connect to Azure.",
3335
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
3436
"required": true
3537
},
3638
"subscription_id": {
37-
"signature": "subscription_id, # type: str",
39+
"signature": "subscription_id: str,",
3840
"description": "The customer subscription identifier.",
3941
"docstring_type": "str",
4042
"required": true
4143
}
4244
},
4345
"constant": {
4446
},
45-
"call": "credential, subscription_id"
47+
"call": "credential, subscription_id",
48+
"service_client_specific": {
49+
"sync": {
50+
"api_version": {
51+
"signature": "api_version=None, # type: Optional[str]",
52+
"description": "API version to use if no profile is provided, or if missing in profile.",
53+
"docstring_type": "str",
54+
"required": false
55+
},
56+
"base_url": {
57+
"signature": "base_url=None, # type: Optional[str]",
58+
"description": "Service URL",
59+
"docstring_type": "str",
60+
"required": false
61+
},
62+
"profile": {
63+
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
64+
"description": "A profile definition, from KnownProfiles to dict.",
65+
"docstring_type": "azure.profiles.KnownProfiles",
66+
"required": false
67+
}
68+
},
69+
"async": {
70+
"api_version": {
71+
"signature": "api_version: Optional[str] = None,",
72+
"description": "API version to use if no profile is provided, or if missing in profile.",
73+
"docstring_type": "str",
74+
"required": false
75+
},
76+
"base_url": {
77+
"signature": "base_url: Optional[str] = None,",
78+
"description": "Service URL",
79+
"docstring_type": "str",
80+
"required": false
81+
},
82+
"profile": {
83+
"signature": "profile: KnownProfiles = KnownProfiles.default,",
84+
"description": "A profile definition, from KnownProfiles to dict.",
85+
"docstring_type": "azure.profiles.KnownProfiles",
86+
"required": false
87+
}
88+
}
89+
}
4690
},
4791
"config": {
4892
"credential": true,
4993
"credential_scopes": ["https://management.azure.com/.default"],
5094
"credential_default_policy_type": "BearerTokenCredentialPolicy",
5195
"credential_default_policy_type_has_async_version": true,
52-
"credential_key_header_name": null
96+
"credential_key_header_name": null,
97+
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
98+
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
5399
},
54100
"operation_groups": {
55101
"application_types": "ApplicationTypesOperations",
56102
"application_type_versions": "ApplicationTypeVersionsOperations",
57103
"applications": "ApplicationsOperations",
58104
"services": "ServicesOperations",
59105
"managed_clusters": "ManagedClustersOperations",
106+
"managed_cluster_version": "ManagedClusterVersionOperations",
60107
"operations": "Operations",
61108
"node_types": "NodeTypesOperations"
62-
},
63-
"operation_mixins": {
64-
},
65-
"sync_imports": "None",
66-
"async_imports": "None"
109+
}
67110
}

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@
1616
from typing import Any, Optional
1717

1818
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1920

2021
from ._configuration import ServiceFabricManagedClustersManagementClientConfiguration
2122
from .operations import ApplicationTypesOperations
2223
from .operations import ApplicationTypeVersionsOperations
2324
from .operations import ApplicationsOperations
2425
from .operations import ServicesOperations
2526
from .operations import ManagedClustersOperations
27+
from .operations import ManagedClusterVersionOperations
2628
from .operations import Operations
2729
from .operations import NodeTypesOperations
2830
from . import models
@@ -41,6 +43,8 @@ class ServiceFabricManagedClustersManagementClient(object):
4143
:vartype services: service_fabric_managed_clusters_management_client.operations.ServicesOperations
4244
:ivar managed_clusters: ManagedClustersOperations operations
4345
:vartype managed_clusters: service_fabric_managed_clusters_management_client.operations.ManagedClustersOperations
46+
:ivar managed_cluster_version: ManagedClusterVersionOperations operations
47+
:vartype managed_cluster_version: service_fabric_managed_clusters_management_client.operations.ManagedClusterVersionOperations
4448
:ivar operations: Operations operations
4549
:vartype operations: service_fabric_managed_clusters_management_client.operations.Operations
4650
:ivar node_types: NodeTypesOperations operations
@@ -68,6 +72,7 @@ def __init__(
6872

6973
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
7074
self._serialize = Serializer(client_models)
75+
self._serialize.client_side_validation = False
7176
self._deserialize = Deserializer(client_models)
7277

7378
self.application_types = ApplicationTypesOperations(
@@ -80,11 +85,31 @@ def __init__(
8085
self._client, self._config, self._serialize, self._deserialize)
8186
self.managed_clusters = ManagedClustersOperations(
8287
self._client, self._config, self._serialize, self._deserialize)
88+
self.managed_cluster_version = ManagedClusterVersionOperations(
89+
self._client, self._config, self._serialize, self._deserialize)
8390
self.operations = Operations(
8491
self._client, self._config, self._serialize, self._deserialize)
8592
self.node_types = NodeTypesOperations(
8693
self._client, self._config, self._serialize, self._deserialize)
8794

95+
def _send_request(self, http_request, **kwargs):
96+
# type: (HttpRequest, Any) -> HttpResponse
97+
"""Runs the network request through the client's chained policies.
98+
99+
:param http_request: The network request you want to make. Required.
100+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
101+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
102+
:return: The response of your network call. Does not do error handling on your response.
103+
:rtype: ~azure.core.pipeline.transport.HttpResponse
104+
"""
105+
path_format_arguments = {
106+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
107+
}
108+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
109+
stream = kwargs.pop("stream", True)
110+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
111+
return pipeline_response.http_response
112+
88113
def close(self):
89114
# type: () -> None
90115
self._client.close()

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 = "1.0.0b1"
9+
VERSION = "1.0.0"

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

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

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2021-01-01-preview"
48+
self.api_version = "2021-05-01"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-servicefabricmanagedclusters/{}'.format(VERSION))
5151
self._configure(**kwargs)

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from typing import Any, Optional, TYPE_CHECKING
1010

11+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1112
from azure.mgmt.core import AsyncARMPipelineClient
1213
from msrest import Deserializer, Serializer
1314

@@ -21,6 +22,7 @@
2122
from .operations import ApplicationsOperations
2223
from .operations import ServicesOperations
2324
from .operations import ManagedClustersOperations
25+
from .operations import ManagedClusterVersionOperations
2426
from .operations import Operations
2527
from .operations import NodeTypesOperations
2628
from .. import models
@@ -39,6 +41,8 @@ class ServiceFabricManagedClustersManagementClient(object):
3941
:vartype services: service_fabric_managed_clusters_management_client.aio.operations.ServicesOperations
4042
:ivar managed_clusters: ManagedClustersOperations operations
4143
:vartype managed_clusters: service_fabric_managed_clusters_management_client.aio.operations.ManagedClustersOperations
44+
:ivar managed_cluster_version: ManagedClusterVersionOperations operations
45+
:vartype managed_cluster_version: service_fabric_managed_clusters_management_client.aio.operations.ManagedClusterVersionOperations
4246
:ivar operations: Operations operations
4347
:vartype operations: service_fabric_managed_clusters_management_client.aio.operations.Operations
4448
:ivar node_types: NodeTypesOperations operations
@@ -65,6 +69,7 @@ def __init__(
6569

6670
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
6771
self._serialize = Serializer(client_models)
72+
self._serialize.client_side_validation = False
6873
self._deserialize = Deserializer(client_models)
6974

7075
self.application_types = ApplicationTypesOperations(
@@ -77,11 +82,30 @@ def __init__(
7782
self._client, self._config, self._serialize, self._deserialize)
7883
self.managed_clusters = ManagedClustersOperations(
7984
self._client, self._config, self._serialize, self._deserialize)
85+
self.managed_cluster_version = ManagedClusterVersionOperations(
86+
self._client, self._config, self._serialize, self._deserialize)
8087
self.operations = Operations(
8188
self._client, self._config, self._serialize, self._deserialize)
8289
self.node_types = NodeTypesOperations(
8390
self._client, self._config, self._serialize, self._deserialize)
8491

92+
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
93+
"""Runs the network request through the client's chained policies.
94+
95+
:param http_request: The network request you want to make. Required.
96+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
97+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
98+
:return: The response of your network call. Does not do error handling on your response.
99+
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
100+
"""
101+
path_format_arguments = {
102+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
103+
}
104+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
105+
stream = kwargs.pop("stream", True)
106+
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
107+
return pipeline_response.http_response
108+
85109
async def close(self) -> None:
86110
await self._client.close()
87111

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from ._applications_operations import ApplicationsOperations
1212
from ._services_operations import ServicesOperations
1313
from ._managed_clusters_operations import ManagedClustersOperations
14+
from ._managed_cluster_version_operations import ManagedClusterVersionOperations
1415
from ._operations import Operations
1516
from ._node_types_operations import NodeTypesOperations
1617

@@ -20,6 +21,7 @@
2021
'ApplicationsOperations',
2122
'ServicesOperations',
2223
'ManagedClustersOperations',
24+
'ManagedClusterVersionOperations',
2325
'Operations',
2426
'NodeTypesOperations',
2527
]

0 commit comments

Comments
 (0)