Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-appplatform] Apiscenario #9

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/appplatform/azure-mgmt-appplatform/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "1659cfde425308fc46b5f2cd962c3be40ba04ace",
"commit": "140e85eaffc052f1dcbb3787c992a6026fface55",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/appplatform/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"autorest_command": "autorest specification/appplatform/resource-manager/readme.md --multiapi --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/appplatform/resource-manager/readme.md"
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "7.0.0"
VERSION = "6.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "7.0.0"
VERSION = "6.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "7.0.0"
VERSION = "6.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "7.0.0"
VERSION = "6.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@
ResourceSkuRestrictionsType,
RuntimeVersion,
SkuScaleType,
StorageType,
SupportedRuntimePlatform,
SupportedRuntimeValue,
TestKeyType,
TrafficDirection,
Type,
UserSourceType,
)

Expand Down Expand Up @@ -215,9 +217,11 @@
'ResourceSkuRestrictionsType',
'RuntimeVersion',
'SkuScaleType',
'StorageType',
'SupportedRuntimePlatform',
'SupportedRuntimeValue',
'TestKeyType',
'TrafficDirection',
'Type',
'UserSourceType',
]
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ class ProvisioningState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):

CREATING = "Creating"
UPDATING = "Updating"
STARTING = "Starting"
STOPPING = "Stopping"
DELETING = "Deleting"
DELETED = "Deleted"
SUCCEEDED = "Succeeded"
Expand Down Expand Up @@ -136,6 +138,12 @@ class SkuScaleType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
MANUAL = "Manual"
AUTOMATIC = "Automatic"

class StorageType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The type of the storage.
"""

STORAGE_ACCOUNT = "StorageAccount"

class SupportedRuntimePlatform(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The platform of this runtime version (possible values: "Java" or ".NET").
"""
Expand Down Expand Up @@ -165,6 +173,12 @@ class TrafficDirection(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
INBOUND = "Inbound"
OUTBOUND = "Outbound"

class Type(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The type of the underlying resource to mount as a persistent disk.
"""

AZURE_FILE_VOLUME = "AzureFileVolume"

class UserSourceType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Type of the source uploaded
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ class CustomPersistentDiskProperties(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.

:ivar type: Required. The type of the underlying resource to mount as a persistent
disk.Constant filled by server.
:vartype type: str
disk.Constant filled by server. Possible values include: "AzureFileVolume".
:vartype type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.Type
:ivar mount_path: Required. The mount path of the persistent disk.
:vartype mount_path: str
:ivar read_only: Indicates whether the persistent disk is a readOnly one.
Expand Down Expand Up @@ -437,8 +437,8 @@ class AzureFileVolume(CustomPersistentDiskProperties):
All required parameters must be populated in order to send to Azure.

:ivar type: Required. The type of the underlying resource to mount as a persistent
disk.Constant filled by server.
:vartype type: str
disk.Constant filled by server. Possible values include: "AzureFileVolume".
:vartype type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.Type
:ivar mount_path: Required. The mount path of the persistent disk.
:vartype mount_path: str
:ivar read_only: Indicates whether the persistent disk is a readOnly one.
Expand Down Expand Up @@ -838,8 +838,8 @@ class ClusterResourceProperties(msrest.serialization.Model):
Variables are only populated by the server, and will be ignored when sending a request.

:ivar provisioning_state: Provisioning state of the Service. Possible values include:
"Creating", "Updating", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", "Moved",
"MoveFailed".
"Creating", "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed",
"Moving", "Moved", "MoveFailed".
:vartype provisioning_state: str or
~azure.mgmt.appplatform.v2021_09_01_preview.models.ProvisioningState
:ivar network_profile: Network profile of the Service.
Expand Down Expand Up @@ -3660,8 +3660,9 @@ class StorageProperties(msrest.serialization.Model):

All required parameters must be populated in order to send to Azure.

:ivar storage_type: Required. The type of the storage.Constant filled by server.
:vartype storage_type: str
:ivar storage_type: Required. The type of the storage.Constant filled by server. Possible
values include: "StorageAccount".
:vartype storage_type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageType
"""

_validation = {
Expand Down Expand Up @@ -3691,8 +3692,9 @@ class StorageAccount(StorageProperties):

All required parameters must be populated in order to send to Azure.

:ivar storage_type: Required. The type of the storage.Constant filled by server.
:vartype storage_type: str
:ivar storage_type: Required. The type of the storage.Constant filled by server. Possible
values include: "StorageAccount".
:vartype storage_type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageType
:ivar account_name: Required. The account name of the Azure Storage Account.
:vartype account_name: str
:ivar account_key: Required. The account key of the Azure Storage Account.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "7.0.0"
VERSION = "6.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,12 @@
ResourceSkuRestrictionsType,
ServiceRegistryProvisioningState,
SkuScaleType,
StorageType,
SupportedRuntimePlatform,
SupportedRuntimeValue,
TestKeyType,
TrafficDirection,
Type,
)

__all__ = [
Expand Down Expand Up @@ -398,8 +400,10 @@
'ResourceSkuRestrictionsType',
'ServiceRegistryProvisioningState',
'SkuScaleType',
'StorageType',
'SupportedRuntimePlatform',
'SupportedRuntimeValue',
'TestKeyType',
'TrafficDirection',
'Type',
]
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ class ProvisioningState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):

CREATING = "Creating"
UPDATING = "Updating"
STARTING = "Starting"
STOPPING = "Stopping"
DELETING = "Deleting"
DELETED = "Deleted"
SUCCEEDED = "Succeeded"
Expand Down Expand Up @@ -243,6 +245,12 @@ class SkuScaleType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
MANUAL = "Manual"
AUTOMATIC = "Automatic"

class StorageType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The type of the storage.
"""

STORAGE_ACCOUNT = "StorageAccount"

class SupportedRuntimePlatform(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The platform of this runtime version (possible values: "Java" or ".NET").
"""
Expand Down Expand Up @@ -272,3 +280,9 @@ class TrafficDirection(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):

INBOUND = "Inbound"
OUTBOUND = "Outbound"

class Type(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The type of the underlying resource to mount as a persistent disk.
"""

AZURE_FILE_VOLUME = "AzureFileVolume"
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ class ApiPortalProperties(msrest.serialization.Model):
def __init__(
self,
*,
public: Optional[bool] = None,
https_only: Optional[bool] = None,
public: Optional[bool] = False,
https_only: Optional[bool] = False,
gateway_ids: Optional[List[str]] = None,
source_urls: Optional[List[str]] = None,
sso_properties: Optional["SsoProperties"] = None,
Expand Down Expand Up @@ -756,8 +756,8 @@ class CustomPersistentDiskProperties(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.

:ivar type: Required. The type of the underlying resource to mount as a persistent
disk.Constant filled by server.
:vartype type: str
disk.Constant filled by server. Possible values include: "AzureFileVolume".
:vartype type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.Type
:ivar mount_path: Required. The mount path of the persistent disk.
:vartype mount_path: str
:ivar read_only: Indicates whether the persistent disk is a readOnly one.
Expand Down Expand Up @@ -811,8 +811,8 @@ class AzureFileVolume(CustomPersistentDiskProperties):
All required parameters must be populated in order to send to Azure.

:ivar type: Required. The type of the underlying resource to mount as a persistent
disk.Constant filled by server.
:vartype type: str
disk.Constant filled by server. Possible values include: "AzureFileVolume".
:vartype type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.Type
:ivar mount_path: Required. The mount path of the persistent disk.
:vartype mount_path: str
:ivar read_only: Indicates whether the persistent disk is a readOnly one.
Expand Down Expand Up @@ -2308,8 +2308,8 @@ class ClusterResourceProperties(msrest.serialization.Model):
Variables are only populated by the server, and will be ignored when sending a request.

:ivar provisioning_state: Provisioning state of the Service. Possible values include:
"Creating", "Updating", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", "Moved",
"MoveFailed".
"Creating", "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed",
"Moving", "Moved", "MoveFailed".
:vartype provisioning_state: str or
~azure.mgmt.appplatform.v2022_01_01_preview.models.ProvisioningState
:ivar network_profile: Network profile of the Service.
Expand Down Expand Up @@ -4316,8 +4316,8 @@ class GatewayProperties(msrest.serialization.Model):
def __init__(
self,
*,
public: Optional[bool] = None,
https_only: Optional[bool] = None,
public: Optional[bool] = False,
https_only: Optional[bool] = False,
sso_properties: Optional["SsoProperties"] = None,
api_metadata_properties: Optional["GatewayApiMetadataProperties"] = None,
cors_properties: Optional["GatewayCorsProperties"] = None,
Expand Down Expand Up @@ -6854,8 +6854,9 @@ class StorageProperties(msrest.serialization.Model):

All required parameters must be populated in order to send to Azure.

:ivar storage_type: Required. The type of the storage.Constant filled by server.
:vartype storage_type: str
:ivar storage_type: Required. The type of the storage.Constant filled by server. Possible
values include: "StorageAccount".
:vartype storage_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageType
"""

_validation = {
Expand Down Expand Up @@ -6885,8 +6886,9 @@ class StorageAccount(StorageProperties):

All required parameters must be populated in order to send to Azure.

:ivar storage_type: Required. The type of the storage.Constant filled by server.
:vartype storage_type: str
:ivar storage_type: Required. The type of the storage.Constant filled by server. Possible
values include: "StorageAccount".
:vartype storage_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageType
:ivar account_name: Required. The account name of the Azure Storage Account.
:vartype account_name: str
:ivar account_key: Required. The account key of the Azure Storage Account.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._app_platform_management_client import AppPlatformManagementClient
from ._version import VERSION

__version__ = VERSION
__all__ = ['AppPlatformManagementClient']

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
from ._patch import patch_sdk
patch_sdk()
Loading