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 e6db333d1033d3290068c78e13d02da49d98681e into dc90355
  • Loading branch information
SDKAuto committed Jul 21, 2021
1 parent a1f5c68 commit f39f2c5
Show file tree
Hide file tree
Showing 18 changed files with 964 additions and 3,618 deletions.
1 change: 1 addition & 0 deletions sdk/servicefabric/azure-mgmt-servicefabric/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/servicefabric/azure-mgmt-servicefabric/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "2a213d8529c4eccfd74bc4bb92bc3473bbacd8c8",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/servicefabric/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2",
"readme": "specification/servicefabric/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
from .operations import ApplicationTypeVersionsOperations
from .operations import ApplicationsOperations
from .operations import ServicesOperations
from .operations import ManagedClustersOperations
from .operations import ManagedClusterVersionsOperations
from .operations import NodeTypesOperations
from . import models


Expand All @@ -46,12 +43,6 @@ class ServiceFabricManagementClient(SDKClient):
:vartype applications: azure.mgmt.servicefabric.operations.ApplicationsOperations
:ivar services: Services operations
:vartype services: azure.mgmt.servicefabric.operations.ServicesOperations
:ivar managed_clusters: ManagedClusters operations
:vartype managed_clusters: azure.mgmt.servicefabric.operations.ManagedClustersOperations
:ivar managed_cluster_versions: ManagedClusterVersions operations
:vartype managed_cluster_versions: azure.mgmt.servicefabric.operations.ManagedClusterVersionsOperations
:ivar node_types: NodeTypes operations
:vartype node_types: azure.mgmt.servicefabric.operations.NodeTypesOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -68,6 +59,7 @@ def __init__(
super(ServiceFabricManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2021-06-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -85,9 +77,3 @@ 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.managed_cluster_versions = ManagedClusterVersionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.node_types = NodeTypesOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
from ._models_py3 import AvailableOperationDisplay
from ._models_py3 import AzureActiveDirectory
from ._models_py3 import CertificateDescription
from ._models_py3 import ClientCertificate
from ._models_py3 import ClientCertificateCommonName
from ._models_py3 import ClientCertificateThumbprint
from ._models_py3 import Cluster
Expand All @@ -45,17 +44,11 @@
from ._models_py3 import EndpointRangeDescription
from ._models_py3 import ErrorModel, ErrorModelException
from ._models_py3 import ErrorModelError
from ._models_py3 import LoadBalancingRule
from ._models_py3 import ManagedCluster
from ._models_py3 import ManagedClusterUpdateParameters
from ._models_py3 import ManagedClusterVersionDetails
from ._models_py3 import ManagedIdentity
from ._models_py3 import ManagedProxyResource
from ._models_py3 import NamedPartitionSchemeDescription
from ._models_py3 import NodeType
from ._models_py3 import NodeTypeActionParameters
from ._models_py3 import NodeTypeDescription
from ._models_py3 import NodeTypeUpdateParameters
from ._models_py3 import Notification
from ._models_py3 import NotificationTarget
from ._models_py3 import OperationResult
from ._models_py3 import PartitionSchemeDescription
from ._models_py3 import ProxyResource
Expand All @@ -76,17 +69,15 @@
from ._models_py3 import SettingsParameterDescription
from ._models_py3 import SettingsSectionDescription
from ._models_py3 import SingletonPartitionSchemeDescription
from ._models_py3 import Sku
from ._models_py3 import StatefulServiceProperties
from ._models_py3 import StatefulServiceUpdateProperties
from ._models_py3 import StatelessServiceProperties
from ._models_py3 import StatelessServiceUpdateProperties
from ._models_py3 import SubResource
from ._models_py3 import SystemData
from ._models_py3 import UniformInt64RangePartitionSchemeDescription
from ._models_py3 import UpgradableVersionPathResult
from ._models_py3 import UpgradableVersionsDescription
from ._models_py3 import UserAssignedIdentity
from ._models_py3 import VaultCertificate
from ._models_py3 import VaultSecretGroup
from ._models_py3 import VMSSExtension
except (SyntaxError, ImportError):
from ._models import ApplicationDeltaHealthPolicy
from ._models import ApplicationHealthPolicy
Expand All @@ -107,7 +98,6 @@
from ._models import AvailableOperationDisplay
from ._models import AzureActiveDirectory
from ._models import CertificateDescription
from ._models import ClientCertificate
from ._models import ClientCertificateCommonName
from ._models import ClientCertificateThumbprint
from ._models import Cluster
Expand All @@ -123,17 +113,11 @@
from ._models import EndpointRangeDescription
from ._models import ErrorModel, ErrorModelException
from ._models import ErrorModelError
from ._models import LoadBalancingRule
from ._models import ManagedCluster
from ._models import ManagedClusterUpdateParameters
from ._models import ManagedClusterVersionDetails
from ._models import ManagedIdentity
from ._models import ManagedProxyResource
from ._models import NamedPartitionSchemeDescription
from ._models import NodeType
from ._models import NodeTypeActionParameters
from ._models import NodeTypeDescription
from ._models import NodeTypeUpdateParameters
from ._models import Notification
from ._models import NotificationTarget
from ._models import OperationResult
from ._models import PartitionSchemeDescription
from ._models import ProxyResource
Expand All @@ -154,22 +138,24 @@
from ._models import SettingsParameterDescription
from ._models import SettingsSectionDescription
from ._models import SingletonPartitionSchemeDescription
from ._models import Sku
from ._models import StatefulServiceProperties
from ._models import StatefulServiceUpdateProperties
from ._models import StatelessServiceProperties
from ._models import StatelessServiceUpdateProperties
from ._models import SubResource
from ._models import SystemData
from ._models import UniformInt64RangePartitionSchemeDescription
from ._models import UpgradableVersionPathResult
from ._models import UpgradableVersionsDescription
from ._models import UserAssignedIdentity
from ._models import VaultCertificate
from ._models import VaultSecretGroup
from ._models import VMSSExtension
from ._paged_models import ManagedClusterPaged
from ._paged_models import NodeTypePaged
from ._paged_models import OperationResultPaged
from ._service_fabric_management_client_enums import (
ProvisioningState,
UpgradeMode,
SfZonalUpgradeMode,
VmssZonalUpgradeMode,
ClusterUpgradeCadence,
NotificationLevel,
NotificationChannel,
ManagedIdentityType,
ArmUpgradeFailureAction,
RollingUpgradeMode,
Expand All @@ -180,8 +166,6 @@
ServiceLoadMetricWeight,
ServicePlacementPolicyType,
ArmServicePackageActivationMode,
Protocol,
ProbeProtocol,
)

__all__ = [
Expand All @@ -204,7 +188,6 @@
'AvailableOperationDisplay',
'AzureActiveDirectory',
'CertificateDescription',
'ClientCertificate',
'ClientCertificateCommonName',
'ClientCertificateThumbprint',
'Cluster',
Expand All @@ -220,17 +203,11 @@
'EndpointRangeDescription',
'ErrorModel', 'ErrorModelException',
'ErrorModelError',
'LoadBalancingRule',
'ManagedCluster',
'ManagedClusterUpdateParameters',
'ManagedClusterVersionDetails',
'ManagedIdentity',
'ManagedProxyResource',
'NamedPartitionSchemeDescription',
'NodeType',
'NodeTypeActionParameters',
'NodeTypeDescription',
'NodeTypeUpdateParameters',
'Notification',
'NotificationTarget',
'OperationResult',
'PartitionSchemeDescription',
'ProxyResource',
Expand All @@ -251,21 +228,23 @@
'SettingsParameterDescription',
'SettingsSectionDescription',
'SingletonPartitionSchemeDescription',
'Sku',
'StatefulServiceProperties',
'StatefulServiceUpdateProperties',
'StatelessServiceProperties',
'StatelessServiceUpdateProperties',
'SubResource',
'SystemData',
'UniformInt64RangePartitionSchemeDescription',
'UpgradableVersionPathResult',
'UpgradableVersionsDescription',
'UserAssignedIdentity',
'VaultCertificate',
'VaultSecretGroup',
'VMSSExtension',
'OperationResultPaged',
'ManagedClusterPaged',
'NodeTypePaged',
'ProvisioningState',
'UpgradeMode',
'SfZonalUpgradeMode',
'VmssZonalUpgradeMode',
'ClusterUpgradeCadence',
'NotificationLevel',
'NotificationChannel',
'ManagedIdentityType',
'ArmUpgradeFailureAction',
'RollingUpgradeMode',
Expand All @@ -276,6 +255,4 @@
'ServiceLoadMetricWeight',
'ServicePlacementPolicyType',
'ArmServicePackageActivationMode',
'Protocol',
'ProbeProtocol',
]
Loading

0 comments on commit f39f2c5

Please sign in to comment.