Skip to content

Commit c650d31

Browse files
author
SDKAuto
committed
CodeGen from PR 17264 in Azure/azure-rest-api-specs
Merge 44e972093cbe81f78e00ed61949ce849b6f95d71 into 14007e94fb70fa6b401deba1c4b16f9fba71340b
1 parent ecc852e commit c650d31

File tree

77 files changed

+37331
-31
lines changed

Some content is hidden

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

77 files changed

+37331
-31
lines changed

sdk/appplatform/azure-mgmt-appplatform/_meta.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"@autorest/python@5.12.0",
55
"@autorest/modelerfour@4.19.3"
66
],
7-
"commit": "1659cfde425308fc46b5f2cd962c3be40ba04ace",
7+
"commit": "9feed5faf390808c449c202242d7f49de9dbe89b",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"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/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
9+
"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/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
1010
"readme": "specification/appplatform/resource-manager/readme.md"
1111
}

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/_app_platform_management_client.py

+73
Large diffs are not rendered by default.

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/aio/_app_platform_management_client.py

+73
Large diffs are not rendered by default.

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_07_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "7.0.0"
9+
VERSION = "6.1.0"

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_11_01_preview/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "7.0.0"
9+
VERSION = "6.1.0"

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_06_01_preview/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "7.0.0"
9+
VERSION = "6.1.0"

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_09_01_preview/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "7.0.0"
9+
VERSION = "6.1.0"

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_09_01_preview/models/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,12 @@
108108
ResourceSkuRestrictionsType,
109109
RuntimeVersion,
110110
SkuScaleType,
111+
StorageType,
111112
SupportedRuntimePlatform,
112113
SupportedRuntimeValue,
113114
TestKeyType,
114115
TrafficDirection,
116+
Type,
115117
UserSourceType,
116118
)
117119

@@ -215,9 +217,11 @@
215217
'ResourceSkuRestrictionsType',
216218
'RuntimeVersion',
217219
'SkuScaleType',
220+
'StorageType',
218221
'SupportedRuntimePlatform',
219222
'SupportedRuntimeValue',
220223
'TestKeyType',
221224
'TrafficDirection',
225+
'Type',
222226
'UserSourceType',
223227
]

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_09_01_preview/models/_app_platform_management_client_enums.py

+14
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class ProvisioningState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
9797

9898
CREATING = "Creating"
9999
UPDATING = "Updating"
100+
STARTING = "Starting"
101+
STOPPING = "Stopping"
100102
DELETING = "Deleting"
101103
DELETED = "Deleted"
102104
SUCCEEDED = "Succeeded"
@@ -136,6 +138,12 @@ class SkuScaleType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
136138
MANUAL = "Manual"
137139
AUTOMATIC = "Automatic"
138140

141+
class StorageType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
142+
"""The type of the storage.
143+
"""
144+
145+
STORAGE_ACCOUNT = "StorageAccount"
146+
139147
class SupportedRuntimePlatform(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
140148
"""The platform of this runtime version (possible values: "Java" or ".NET").
141149
"""
@@ -165,6 +173,12 @@ class TrafficDirection(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
165173
INBOUND = "Inbound"
166174
OUTBOUND = "Outbound"
167175

176+
class Type(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
177+
"""The type of the underlying resource to mount as a persistent disk.
178+
"""
179+
180+
AZURE_FILE_VOLUME = "AzureFileVolume"
181+
168182
class UserSourceType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
169183
"""Type of the source uploaded
170184
"""

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_09_01_preview/models/_models_py3.py

+12-10
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ class CustomPersistentDiskProperties(msrest.serialization.Model):
382382
All required parameters must be populated in order to send to Azure.
383383
384384
:ivar type: Required. The type of the underlying resource to mount as a persistent
385-
disk.Constant filled by server.
386-
:vartype type: str
385+
disk.Constant filled by server. Possible values include: "AzureFileVolume".
386+
:vartype type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.Type
387387
:ivar mount_path: Required. The mount path of the persistent disk.
388388
:vartype mount_path: str
389389
:ivar read_only: Indicates whether the persistent disk is a readOnly one.
@@ -437,8 +437,8 @@ class AzureFileVolume(CustomPersistentDiskProperties):
437437
All required parameters must be populated in order to send to Azure.
438438
439439
:ivar type: Required. The type of the underlying resource to mount as a persistent
440-
disk.Constant filled by server.
441-
:vartype type: str
440+
disk.Constant filled by server. Possible values include: "AzureFileVolume".
441+
:vartype type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.Type
442442
:ivar mount_path: Required. The mount path of the persistent disk.
443443
:vartype mount_path: str
444444
:ivar read_only: Indicates whether the persistent disk is a readOnly one.
@@ -838,8 +838,8 @@ class ClusterResourceProperties(msrest.serialization.Model):
838838
Variables are only populated by the server, and will be ignored when sending a request.
839839
840840
:ivar provisioning_state: Provisioning state of the Service. Possible values include:
841-
"Creating", "Updating", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", "Moved",
842-
"MoveFailed".
841+
"Creating", "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed",
842+
"Moving", "Moved", "MoveFailed".
843843
:vartype provisioning_state: str or
844844
~azure.mgmt.appplatform.v2021_09_01_preview.models.ProvisioningState
845845
:ivar network_profile: Network profile of the Service.
@@ -3660,8 +3660,9 @@ class StorageProperties(msrest.serialization.Model):
36603660
36613661
All required parameters must be populated in order to send to Azure.
36623662
3663-
:ivar storage_type: Required. The type of the storage.Constant filled by server.
3664-
:vartype storage_type: str
3663+
:ivar storage_type: Required. The type of the storage.Constant filled by server. Possible
3664+
values include: "StorageAccount".
3665+
:vartype storage_type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageType
36653666
"""
36663667

36673668
_validation = {
@@ -3691,8 +3692,9 @@ class StorageAccount(StorageProperties):
36913692
36923693
All required parameters must be populated in order to send to Azure.
36933694
3694-
:ivar storage_type: Required. The type of the storage.Constant filled by server.
3695-
:vartype storage_type: str
3695+
:ivar storage_type: Required. The type of the storage.Constant filled by server. Possible
3696+
values include: "StorageAccount".
3697+
:vartype storage_type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageType
36963698
:ivar account_name: Required. The account name of the Azure Storage Account.
36973699
:vartype account_name: str
36983700
:ivar account_key: Required. The account key of the Azure Storage Account.

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2022_01_01_preview/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "7.0.0"
9+
VERSION = "6.1.0"

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2022_01_01_preview/models/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,12 @@
200200
ResourceSkuRestrictionsType,
201201
ServiceRegistryProvisioningState,
202202
SkuScaleType,
203+
StorageType,
203204
SupportedRuntimePlatform,
204205
SupportedRuntimeValue,
205206
TestKeyType,
206207
TrafficDirection,
208+
Type,
207209
)
208210

209211
__all__ = [
@@ -398,8 +400,10 @@
398400
'ResourceSkuRestrictionsType',
399401
'ServiceRegistryProvisioningState',
400402
'SkuScaleType',
403+
'StorageType',
401404
'SupportedRuntimePlatform',
402405
'SupportedRuntimeValue',
403406
'TestKeyType',
404407
'TrafficDirection',
408+
'Type',
405409
]

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2022_01_01_preview/models/_app_platform_management_client_enums.py

+14
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ class ProvisioningState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
202202

203203
CREATING = "Creating"
204204
UPDATING = "Updating"
205+
STARTING = "Starting"
206+
STOPPING = "Stopping"
205207
DELETING = "Deleting"
206208
DELETED = "Deleted"
207209
SUCCEEDED = "Succeeded"
@@ -243,6 +245,12 @@ class SkuScaleType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
243245
MANUAL = "Manual"
244246
AUTOMATIC = "Automatic"
245247

248+
class StorageType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
249+
"""The type of the storage.
250+
"""
251+
252+
STORAGE_ACCOUNT = "StorageAccount"
253+
246254
class SupportedRuntimePlatform(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
247255
"""The platform of this runtime version (possible values: "Java" or ".NET").
248256
"""
@@ -272,3 +280,9 @@ class TrafficDirection(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
272280

273281
INBOUND = "Inbound"
274282
OUTBOUND = "Outbound"
283+
284+
class Type(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
285+
"""The type of the underlying resource to mount as a persistent disk.
286+
"""
287+
288+
AZURE_FILE_VOLUME = "AzureFileVolume"

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2022_01_01_preview/models/_models_py3.py

+16-14
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ class ApiPortalProperties(msrest.serialization.Model):
310310
def __init__(
311311
self,
312312
*,
313-
public: Optional[bool] = None,
314-
https_only: Optional[bool] = None,
313+
public: Optional[bool] = False,
314+
https_only: Optional[bool] = False,
315315
gateway_ids: Optional[List[str]] = None,
316316
source_urls: Optional[List[str]] = None,
317317
sso_properties: Optional["SsoProperties"] = None,
@@ -756,8 +756,8 @@ class CustomPersistentDiskProperties(msrest.serialization.Model):
756756
All required parameters must be populated in order to send to Azure.
757757
758758
:ivar type: Required. The type of the underlying resource to mount as a persistent
759-
disk.Constant filled by server.
760-
:vartype type: str
759+
disk.Constant filled by server. Possible values include: "AzureFileVolume".
760+
:vartype type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.Type
761761
:ivar mount_path: Required. The mount path of the persistent disk.
762762
:vartype mount_path: str
763763
:ivar read_only: Indicates whether the persistent disk is a readOnly one.
@@ -811,8 +811,8 @@ class AzureFileVolume(CustomPersistentDiskProperties):
811811
All required parameters must be populated in order to send to Azure.
812812
813813
:ivar type: Required. The type of the underlying resource to mount as a persistent
814-
disk.Constant filled by server.
815-
:vartype type: str
814+
disk.Constant filled by server. Possible values include: "AzureFileVolume".
815+
:vartype type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.Type
816816
:ivar mount_path: Required. The mount path of the persistent disk.
817817
:vartype mount_path: str
818818
:ivar read_only: Indicates whether the persistent disk is a readOnly one.
@@ -2308,8 +2308,8 @@ class ClusterResourceProperties(msrest.serialization.Model):
23082308
Variables are only populated by the server, and will be ignored when sending a request.
23092309
23102310
:ivar provisioning_state: Provisioning state of the Service. Possible values include:
2311-
"Creating", "Updating", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", "Moved",
2312-
"MoveFailed".
2311+
"Creating", "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed",
2312+
"Moving", "Moved", "MoveFailed".
23132313
:vartype provisioning_state: str or
23142314
~azure.mgmt.appplatform.v2022_01_01_preview.models.ProvisioningState
23152315
:ivar network_profile: Network profile of the Service.
@@ -4316,8 +4316,8 @@ class GatewayProperties(msrest.serialization.Model):
43164316
def __init__(
43174317
self,
43184318
*,
4319-
public: Optional[bool] = None,
4320-
https_only: Optional[bool] = None,
4319+
public: Optional[bool] = False,
4320+
https_only: Optional[bool] = False,
43214321
sso_properties: Optional["SsoProperties"] = None,
43224322
api_metadata_properties: Optional["GatewayApiMetadataProperties"] = None,
43234323
cors_properties: Optional["GatewayCorsProperties"] = None,
@@ -6854,8 +6854,9 @@ class StorageProperties(msrest.serialization.Model):
68546854
68556855
All required parameters must be populated in order to send to Azure.
68566856
6857-
:ivar storage_type: Required. The type of the storage.Constant filled by server.
6858-
:vartype storage_type: str
6857+
:ivar storage_type: Required. The type of the storage.Constant filled by server. Possible
6858+
values include: "StorageAccount".
6859+
:vartype storage_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageType
68596860
"""
68606861

68616862
_validation = {
@@ -6885,8 +6886,9 @@ class StorageAccount(StorageProperties):
68856886
68866887
All required parameters must be populated in order to send to Azure.
68876888
6888-
:ivar storage_type: Required. The type of the storage.Constant filled by server.
6889-
:vartype storage_type: str
6889+
:ivar storage_type: Required. The type of the storage.Constant filled by server. Possible
6890+
values include: "StorageAccount".
6891+
:vartype storage_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageType
68906892
:ivar account_name: Required. The account name of the Azure Storage Account.
68916893
:vartype account_name: str
68926894
:ivar account_key: Required. The account key of the Azure Storage Account.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from ._app_platform_management_client import AppPlatformManagementClient
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
13+
__all__ = ['AppPlatformManagementClient']
14+
15+
# `._patch.py` is used for handwritten extensions to the generated code
16+
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
17+
from ._patch import patch_sdk
18+
patch_sdk()

0 commit comments

Comments
 (0)