Skip to content

Commit

Permalink
CodeGen from PR 11823 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Review request for Microsoft.AppPlatform to add version preview/2020-11-01-preview (Azure#11823)

* Adds base for updating Microsoft.AppPlatform from version stable/2020-07-01 to version 2020-11-01-preview

* Updates readme

* Updates API version in new specs and examples

* Introduce additional change to 2020-11-01-preview.

* Additional properties to monitoringSettings.
* Readonly properties to requiredTraffics.

Signed-off-by: Pan Li <[email protected]>

* Make credscan happy.

Signed-off-by: Pan Li <[email protected]>
  • Loading branch information
SDKAuto committed Dec 22, 2020
1 parent b94fb2d commit ae153c8
Show file tree
Hide file tree
Showing 37 changed files with 10,742 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from .operations import CustomDomainsOperations
from .operations import DeploymentsOperations
from .operations import Operations
from .operations import RuntimeVersionsOperations
from .operations import SkuOperations
from . import models

Expand All @@ -44,6 +45,8 @@ class AppPlatformManagementClient(SDKClient):
:vartype deployments: azure.mgmt.appplatform.v2019_05_01_preview.operations.DeploymentsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.appplatform.v2019_05_01_preview.operations.Operations
:ivar runtime_versions: RuntimeVersions operations
:vartype runtime_versions: azure.mgmt.appplatform.v2019_05_01_preview.operations.RuntimeVersionsOperations
:ivar sku: Sku operations
:vartype sku: azure.mgmt.appplatform.v2019_05_01_preview.operations.SkuOperations
Expand Down Expand Up @@ -82,5 +85,7 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.runtime_versions = RuntimeVersionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.sku = SkuOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
try:
from ._models_py3 import AppResource
from ._models_py3 import AppResourceProperties
from ._models_py3 import AvailableRuntimeVersions
from ._models_py3 import BindingResource
from ._models_py3 import BindingResourceProperties
from ._models_py3 import CertificateProperties
Expand All @@ -38,6 +39,7 @@
from ._models_py3 import NameAvailability
from ._models_py3 import NameAvailabilityParameters
from ._models_py3 import NetworkProfile
from ._models_py3 import NetworkProfileOutboundIPs
from ._models_py3 import OperationDetail
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationProperties
Expand All @@ -56,6 +58,7 @@
from ._models_py3 import ServiceSpecification
from ._models_py3 import Sku
from ._models_py3 import SkuCapacity
from ._models_py3 import SupportedRuntimeVersion
from ._models_py3 import TemporaryDisk
from ._models_py3 import TestKeys
from ._models_py3 import TraceProperties
Expand All @@ -64,6 +67,7 @@
except (SyntaxError, ImportError):
from ._models import AppResource
from ._models import AppResourceProperties
from ._models import AvailableRuntimeVersions
from ._models import BindingResource
from ._models import BindingResourceProperties
from ._models import CertificateProperties
Expand All @@ -90,6 +94,7 @@
from ._models import NameAvailability
from ._models import NameAvailabilityParameters
from ._models import NetworkProfile
from ._models import NetworkProfileOutboundIPs
from ._models import OperationDetail
from ._models import OperationDisplay
from ._models import OperationProperties
Expand All @@ -108,6 +113,7 @@
from ._models import ServiceSpecification
from ._models import Sku
from ._models import SkuCapacity
from ._models import SupportedRuntimeVersion
from ._models import TemporaryDisk
from ._models import TestKeys
from ._models import TraceProperties
Expand Down Expand Up @@ -135,11 +141,14 @@
SkuScaleType,
ResourceSkuRestrictionsType,
ResourceSkuRestrictionsReasonCode,
SupportedRuntimeValue,
SupportedRuntimePlatform,
)

__all__ = [
'AppResource',
'AppResourceProperties',
'AvailableRuntimeVersions',
'BindingResource',
'BindingResourceProperties',
'CertificateProperties',
Expand All @@ -166,6 +175,7 @@
'NameAvailability',
'NameAvailabilityParameters',
'NetworkProfile',
'NetworkProfileOutboundIPs',
'OperationDetail',
'OperationDisplay',
'OperationProperties',
Expand All @@ -184,6 +194,7 @@
'ServiceSpecification',
'Sku',
'SkuCapacity',
'SupportedRuntimeVersion',
'TemporaryDisk',
'TestKeys',
'TraceProperties',
Expand All @@ -210,4 +221,6 @@
'SkuScaleType',
'ResourceSkuRestrictionsType',
'ResourceSkuRestrictionsReasonCode',
'SupportedRuntimeValue',
'SupportedRuntimePlatform',
]
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,21 @@ class AppResourceProvisioningState(str, Enum):
failed = "Failed"
creating = "Creating"
updating = "Updating"
deleting = "Deleting"


class UserSourceType(str, Enum):

jar = "Jar"
net_core_zip = "NetCoreZip"
source = "Source"


class RuntimeVersion(str, Enum):

java_8 = "Java_8"
java_11 = "Java_11"
net_core_31 = "NetCore_31"


class DeploymentResourceProvisioningState(str, Enum):
Expand All @@ -82,6 +85,7 @@ class DeploymentResourceProvisioningState(str, Enum):
updating = "Updating"
succeeded = "Succeeded"
failed = "Failed"
deleting = "Deleting"


class DeploymentResourceStatus(str, Enum):
Expand Down Expand Up @@ -112,3 +116,16 @@ class ResourceSkuRestrictionsReasonCode(str, Enum):

quota_id = "QuotaId"
not_available_for_subscription = "NotAvailableForSubscription"


class SupportedRuntimeValue(str, Enum):

java_8 = "Java_8"
java_11 = "Java_11"
net_core_31 = "NetCore_31"


class SupportedRuntimePlatform(str, Enum):

java = "Java"
net_core = ".NET Core"
Loading

0 comments on commit ae153c8

Please sign in to comment.