Skip to content

Commit

Permalink
CodeGen from PR 12500 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Dev kubernetesconfiguration microsoft.kubernetes configuration stable 2021 03 01 (Azure#12500)

* Adds base for updating Microsoft.KubernetesConfiguration from version preview/2020-10-01-preview to version 2021-03-01

* Updates readme

* Updates API version in new specs and examples

* Fixed review comment

* Fixed reference path error

* Fixed casing error in enum
  • Loading branch information
SDKAuto committed Jan 27, 2021
1 parent e36e23c commit c15120d
Show file tree
Hide file tree
Showing 7 changed files with 491 additions and 164 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(
super(SourceControlConfigurationClient, 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 = '2019-11-01-preview'
self.api_version = '2021-03-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# --------------------------------------------------------------------------

try:
from ._models_py3 import AzureEntityResource
from ._models_py3 import ComplianceStatus
from ._models_py3 import ErrorDefinition
from ._models_py3 import ErrorResponse, ErrorResponseException
Expand All @@ -20,7 +21,10 @@
from ._models_py3 import ResourceProviderOperationDisplay
from ._models_py3 import Result
from ._models_py3 import SourceControlConfiguration
from ._models_py3 import SystemData
from ._models_py3 import TrackedResource
except (SyntaxError, ImportError):
from ._models import AzureEntityResource
from ._models import ComplianceStatus
from ._models import ErrorDefinition
from ._models import ErrorResponse, ErrorResponseException
Expand All @@ -31,18 +35,21 @@
from ._models import ResourceProviderOperationDisplay
from ._models import Result
from ._models import SourceControlConfiguration
from ._models import SystemData
from ._models import TrackedResource
from ._paged_models import ResourceProviderOperationPaged
from ._paged_models import SourceControlConfigurationPaged
from ._source_control_configuration_client_enums import (
ComplianceState,
MessageLevel,
ComplianceStateType,
MessageLevelType,
OperatorType,
OperatorScope,
EnableHelmOperator,
ProvisioningState,
OperatorScopeType,
ProvisioningStateType,
CreatedByType,
)

__all__ = [
'AzureEntityResource',
'ComplianceStatus',
'ErrorDefinition',
'ErrorResponse', 'ErrorResponseException',
Expand All @@ -53,12 +60,14 @@
'ResourceProviderOperationDisplay',
'Result',
'SourceControlConfiguration',
'SystemData',
'TrackedResource',
'SourceControlConfigurationPaged',
'ResourceProviderOperationPaged',
'ComplianceState',
'MessageLevel',
'ComplianceStateType',
'MessageLevelType',
'OperatorType',
'OperatorScope',
'EnableHelmOperator',
'ProvisioningState',
'OperatorScopeType',
'ProvisioningStateType',
'CreatedByType',
]
Loading

0 comments on commit c15120d

Please sign in to comment.