Skip to content

Commit 83ea4d1

Browse files
Azure CLI BotSDKAutomsyycRAY-316
authored
[AutoRelease] t2-servicefabric-2021-06-03-39897(wave4) (Azure#19072)
* CodeGen from PR 14492 in Azure/azure-rest-api-specs Servicefabric t2 config (Azure#14492) * sql t2 readme config * readme config * Update readme.python.md * conflient resolve * t2 congfig * readme config * t2 config * Update cluster.json * Update cluster.json * Update specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json * Update readme.python.md * Update readme.python.md * Update readme.md * Update readme.python.md * directive * Update readme.md Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> * version,CHANGELOG * test * changelog config Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed <601306339@qq.com>
1 parent 12dc44e commit 83ea4d1

Some content is hidden

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

43 files changed

+1379
-696
lines changed

sdk/servicefabric/azure-mgmt-servicefabric/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Release History
22

3+
## 1.0.0 (2021-06-03)
4+
5+
**Features**
6+
7+
- Model ManagedCluster has a new parameter addon_features
8+
- Model ManagedClusterUpdateParameters has a new parameter addon_features
9+
- Added operation group ManagedclusterOperations
10+
- Added operation group ApplicationOperations
11+
- Added operation group NodetypeOperations
12+
13+
**Breaking changes**
14+
15+
- Operation ApplicationTypesOperations.create_or_update has a new signature
16+
- Operation NodeTypesOperations.begin_delete_node has a new signature
17+
- Operation NodeTypesOperations.begin_reimage has a new signature
18+
- Operation NodeTypesOperations.begin_restart has a new signature
19+
- Operation NodeTypesOperations.begin_restart has a new signature
20+
- Operation NodeTypesOperations.begin_reimage has a new signature
21+
- Operation NodeTypesOperations.begin_delete_node has a new signature
22+
- Operation ApplicationTypesOperations.create_or_update has a new signature
23+
- Model ManagedCluster no longer has parameter cluster_upgrade_description
24+
- Model ManagedCluster no longer has parameter cluster_upgrade_mode
25+
- Model ManagedClusterUpdateParameters no longer has parameter cluster_upgrade_description
26+
- Model ManagedClusterUpdateParameters no longer has parameter cluster_upgrade_mode
27+
328
## 1.0.0b1 (2020-12-02)
429

530
This is beta preview version.

sdk/servicefabric/azure-mgmt-servicefabric/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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"autorest": "3.4.2",
3+
"use": [
4+
"@autorest/python@5.8.0",
5+
"@autorest/modelerfour@4.19.2"
6+
],
7+
"commit": "6bab06211537f8f0b462661871b806de8be26521",
8+
"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/python@5.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
10+
"readme": "specification/servicefabric/resource-manager/readme.md"
11+
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# --------------------------------------------------------------------------
88

99
from ._service_fabric_management_client import ServiceFabricManagementClient
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
1013
__all__ = ['ServiceFabricManagementClient']
1114

1215
try:

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1414

15+
from ._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from typing import Any
1820

1921
from azure.core.credentials import TokenCredential
2022

21-
VERSION = "unknown"
2223

2324
class ServiceFabricManagementClientConfiguration(Configuration):
2425
"""Configuration for ServiceFabricManagementClient.
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
{
2+
"chosen_version": "",
3+
"total_api_version_list": ["2020-01-01-preview", "2020-03-01"],
4+
"client": {
5+
"name": "ServiceFabricManagementClient",
6+
"filename": "_service_fabric_management_client",
7+
"description": "Service Fabric Management Client.",
8+
"base_url": "\u0027https://management.azure.com\u0027",
9+
"custom_base_url": null,
10+
"azure_arm": true,
11+
"has_lro_operations": 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\": [\"ServiceFabricManagementClientConfiguration\"]}}, \"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\": [\"ServiceFabricManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
15+
},
16+
"global_parameters": {
17+
"sync": {
18+
"credential": {
19+
"signature": "credential, # type: \"TokenCredential\"",
20+
"description": "Credential needed for the client to connect to Azure.",
21+
"docstring_type": "~azure.core.credentials.TokenCredential",
22+
"required": true
23+
},
24+
"subscription_id": {
25+
"signature": "subscription_id, # type: str",
26+
"description": "The customer subscription identifier.",
27+
"docstring_type": "str",
28+
"required": true
29+
}
30+
},
31+
"async": {
32+
"credential": {
33+
"signature": "credential: \"AsyncTokenCredential\",",
34+
"description": "Credential needed for the client to connect to Azure.",
35+
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
36+
"required": true
37+
},
38+
"subscription_id": {
39+
"signature": "subscription_id: str,",
40+
"description": "The customer subscription identifier.",
41+
"docstring_type": "str",
42+
"required": true
43+
}
44+
},
45+
"constant": {
46+
},
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+
}
90+
},
91+
"config": {
92+
"credential": true,
93+
"credential_scopes": ["https://management.azure.com/.default"],
94+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
95+
"credential_default_policy_type_has_async_version": true,
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\"]}}}"
99+
},
100+
"operation_groups": {
101+
"clusters": "ClustersOperations",
102+
"cluster_versions": "ClusterVersionsOperations",
103+
"operations": "Operations",
104+
"application": "ApplicationOperations",
105+
"application_types": "ApplicationTypesOperations",
106+
"application_type_versions": "ApplicationTypeVersionsOperations",
107+
"applications": "ApplicationsOperations",
108+
"services": "ServicesOperations",
109+
"managed_clusters": "ManagedClustersOperations",
110+
"managedcluster": "ManagedclusterOperations",
111+
"managed_cluster_versions": "ManagedClusterVersionsOperations",
112+
"nodetype": "NodetypeOperations",
113+
"node_types": "NodeTypesOperations"
114+
}
115+
}

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,21 @@
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 ServiceFabricManagementClientConfiguration
2122
from .operations import ClustersOperations
2223
from .operations import ClusterVersionsOperations
2324
from .operations import Operations
25+
from .operations import ApplicationOperations
2426
from .operations import ApplicationTypesOperations
2527
from .operations import ApplicationTypeVersionsOperations
2628
from .operations import ApplicationsOperations
2729
from .operations import ServicesOperations
2830
from .operations import ManagedClustersOperations
31+
from .operations import ManagedclusterOperations
2932
from .operations import ManagedClusterVersionsOperations
33+
from .operations import NodetypeOperations
3034
from .operations import NodeTypesOperations
3135
from . import models
3236

@@ -40,6 +44,8 @@ class ServiceFabricManagementClient(object):
4044
:vartype cluster_versions: azure.mgmt.servicefabric.operations.ClusterVersionsOperations
4145
:ivar operations: Operations operations
4246
:vartype operations: azure.mgmt.servicefabric.operations.Operations
47+
:ivar application: ApplicationOperations operations
48+
:vartype application: azure.mgmt.servicefabric.operations.ApplicationOperations
4349
:ivar application_types: ApplicationTypesOperations operations
4450
:vartype application_types: azure.mgmt.servicefabric.operations.ApplicationTypesOperations
4551
:ivar application_type_versions: ApplicationTypeVersionsOperations operations
@@ -50,8 +56,12 @@ class ServiceFabricManagementClient(object):
5056
:vartype services: azure.mgmt.servicefabric.operations.ServicesOperations
5157
:ivar managed_clusters: ManagedClustersOperations operations
5258
:vartype managed_clusters: azure.mgmt.servicefabric.operations.ManagedClustersOperations
59+
:ivar managedcluster: ManagedclusterOperations operations
60+
:vartype managedcluster: azure.mgmt.servicefabric.operations.ManagedclusterOperations
5361
:ivar managed_cluster_versions: ManagedClusterVersionsOperations operations
5462
:vartype managed_cluster_versions: azure.mgmt.servicefabric.operations.ManagedClusterVersionsOperations
63+
:ivar nodetype: NodetypeOperations operations
64+
:vartype nodetype: azure.mgmt.servicefabric.operations.NodetypeOperations
5565
:ivar node_types: NodeTypesOperations operations
5666
:vartype node_types: azure.mgmt.servicefabric.operations.NodeTypesOperations
5767
:param credential: Credential needed for the client to connect to Azure.
@@ -86,6 +96,8 @@ def __init__(
8696
self._client, self._config, self._serialize, self._deserialize)
8797
self.operations = Operations(
8898
self._client, self._config, self._serialize, self._deserialize)
99+
self.application = ApplicationOperations(
100+
self._client, self._config, self._serialize, self._deserialize)
89101
self.application_types = ApplicationTypesOperations(
90102
self._client, self._config, self._serialize, self._deserialize)
91103
self.application_type_versions = ApplicationTypeVersionsOperations(
@@ -96,11 +108,33 @@ def __init__(
96108
self._client, self._config, self._serialize, self._deserialize)
97109
self.managed_clusters = ManagedClustersOperations(
98110
self._client, self._config, self._serialize, self._deserialize)
111+
self.managedcluster = ManagedclusterOperations(
112+
self._client, self._config, self._serialize, self._deserialize)
99113
self.managed_cluster_versions = ManagedClusterVersionsOperations(
100114
self._client, self._config, self._serialize, self._deserialize)
115+
self.nodetype = NodetypeOperations(
116+
self._client, self._config, self._serialize, self._deserialize)
101117
self.node_types = NodeTypesOperations(
102118
self._client, self._config, self._serialize, self._deserialize)
103119

120+
def _send_request(self, http_request, **kwargs):
121+
# type: (HttpRequest, Any) -> HttpResponse
122+
"""Runs the network request through the client's chained policies.
123+
124+
:param http_request: The network request you want to make. Required.
125+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
126+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
127+
:return: The response of your network call. Does not do error handling on your response.
128+
:rtype: ~azure.core.pipeline.transport.HttpResponse
129+
"""
130+
path_format_arguments = {
131+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
132+
}
133+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
134+
stream = kwargs.pop("stream", True)
135+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
136+
return pipeline_response.http_response
137+
104138
def close(self):
105139
# type: () -> None
106140
self._client.close()

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

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

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1414

15+
from .._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from azure.core.credentials_async import AsyncTokenCredential
1820

19-
VERSION = "unknown"
2021

2122
class ServiceFabricManagementClientConfiguration(Configuration):
2223
"""Configuration for ServiceFabricManagementClient.

0 commit comments

Comments
 (0)