Skip to content

Commit 137fa00

Browse files
author
SDKAuto
committed
CodeGen from PR 14856 in Azure/azure-rest-api-specs
Merge 85c33142a1d6cc2f185af055bede8aff698d8df7 into d241e05
1 parent a1f5c68 commit 137fa00

File tree

79 files changed

+813
-380
lines changed

Some content is hidden

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

79 files changed

+813
-380
lines changed

sdk/apimanagement/azure-mgmt-apimanagement/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "5dabfeba0b9fcb81bc469f15734500c10517e09a",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/apimanagement/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",
7+
"readme": "specification/apimanagement/resource-manager/readme.md"
8+
}

sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/_api_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def __init__(
256256
super(ApiManagementClient, self).__init__(self.config.credentials, self.config)
257257

258258
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
259-
self.api_version = '2020-12-01'
259+
self.api_version = '2021-01-01-preview'
260260
self._serialize = Serializer(client_models)
261261
self._deserialize = Deserializer(client_models)
262262

sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
from ._models_py3 import AccessInformationSecretsContract
1616
from ._models_py3 import AccessInformationUpdateParameters
1717
from ._models_py3 import AdditionalLocation
18+
from ._models_py3 import ApiContactInformation
1819
from ._models_py3 import ApiContract
1920
from ._models_py3 import ApiContractProperties
2021
from ._models_py3 import ApiCreateOrUpdateParameter
2122
from ._models_py3 import ApiCreateOrUpdatePropertiesWsdlSelector
2223
from ._models_py3 import ApiEntityBaseContract
2324
from ._models_py3 import ApiExportResult
2425
from ._models_py3 import ApiExportResultValue
26+
from ._models_py3 import ApiLicenseInformation
2527
from ._models_py3 import ApiManagementServiceApplyNetworkConfigurationParameters
2628
from ._models_py3 import ApiManagementServiceBackupRestoreParameters
2729
from ._models_py3 import ApiManagementServiceBaseProperties
@@ -212,13 +214,15 @@
212214
from ._models import AccessInformationSecretsContract
213215
from ._models import AccessInformationUpdateParameters
214216
from ._models import AdditionalLocation
217+
from ._models import ApiContactInformation
215218
from ._models import ApiContract
216219
from ._models import ApiContractProperties
217220
from ._models import ApiCreateOrUpdateParameter
218221
from ._models import ApiCreateOrUpdatePropertiesWsdlSelector
219222
from ._models import ApiEntityBaseContract
220223
from ._models import ApiExportResult
221224
from ._models import ApiExportResultValue
225+
from ._models import ApiLicenseInformation
222226
from ._models import ApiManagementServiceApplyNetworkConfigurationParameters
223227
from ._models import ApiManagementServiceBackupRestoreParameters
224228
from ._models import ApiManagementServiceBaseProperties
@@ -472,6 +476,8 @@
472476
SkuType,
473477
ResourceSkuCapacityScaleType,
474478
HostnameType,
479+
CertificateSource,
480+
CertificateStatus,
475481
VirtualNetworkType,
476482
ApimIdentityType,
477483
NameAvailabilityReason,
@@ -504,13 +510,15 @@
504510
'AccessInformationSecretsContract',
505511
'AccessInformationUpdateParameters',
506512
'AdditionalLocation',
513+
'ApiContactInformation',
507514
'ApiContract',
508515
'ApiContractProperties',
509516
'ApiCreateOrUpdateParameter',
510517
'ApiCreateOrUpdatePropertiesWsdlSelector',
511518
'ApiEntityBaseContract',
512519
'ApiExportResult',
513520
'ApiExportResultValue',
521+
'ApiLicenseInformation',
514522
'ApiManagementServiceApplyNetworkConfigurationParameters',
515523
'ApiManagementServiceBackupRestoreParameters',
516524
'ApiManagementServiceBaseProperties',
@@ -763,6 +771,8 @@
763771
'SkuType',
764772
'ResourceSkuCapacityScaleType',
765773
'HostnameType',
774+
'CertificateSource',
775+
'CertificateStatus',
766776
'VirtualNetworkType',
767777
'ApimIdentityType',
768778
'NameAvailabilityReason',

sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
class ExportResultFormat(str, Enum):
1616

17-
swagger = "swagger-link-json" #: The Api Definition is exported in OpenApi Specification 2.0 format to the Storage Blob.
18-
wsdl = "wsdl-link+xml" #: The Api Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap`
19-
wadl = "wadl-link-json" #: Export the Api Definition in WADL Schema to Storage Blob.
20-
open_api = "openapi-link" #: Export the Api Definition in OpenApi Specification 3.0 to Storage Blob.
17+
swagger = "swagger-link-json" #: The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob.
18+
wsdl = "wsdl-link+xml" #: The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap`
19+
wadl = "wadl-link-json" #: Export the API Definition in WADL Schema to Storage Blob.
20+
open_api = "openapi-link" #: Export the API Definition in OpenAPI Specification 3.0 to Storage Blob.
2121

2222

2323
class ProductState(str, Enum):
@@ -36,6 +36,8 @@ class Protocol(str, Enum):
3636

3737
http = "http"
3838
https = "https"
39+
ws = "ws"
40+
wss = "wss"
3941

4042

4143
class ContentFormat(str, Enum):
@@ -56,12 +58,14 @@ class SoapApiType(str, Enum):
5658

5759
soap_to_rest = "http" #: Imports a SOAP API having a RESTful front end.
5860
soap_pass_through = "soap" #: Imports the Soap API having a SOAP front end.
61+
web_socket = "websocket" #: Imports the Soap API having a Websocket front end.
5962

6063

6164
class ApiType(str, Enum):
6265

6366
http = "http"
6467
soap = "soap"
68+
websocket = "websocket"
6569

6670

6771
class State(str, Enum):
@@ -188,6 +192,21 @@ class HostnameType(str, Enum):
188192
developer_portal = "DeveloperPortal"
189193

190194

195+
class CertificateSource(str, Enum):
196+
197+
managed = "Managed"
198+
key_vault = "KeyVault"
199+
custom = "Custom"
200+
built_in = "BuiltIn"
201+
202+
203+
class CertificateStatus(str, Enum):
204+
205+
completed = "Completed"
206+
failed = "Failed"
207+
in_progress = "InProgress"
208+
209+
191210
class VirtualNetworkType(str, Enum):
192211

193212
none = "None" #: The service is not part of any Virtual Network.
@@ -274,10 +293,10 @@ class ConnectivityStatusType(str, Enum):
274293

275294
class PortalRevisionStatus(str, Enum):
276295

277-
pending = "pending" #: Portal revision publishing is pending
278-
publishing = "publishing" #: Portal revision is publishing
279-
completed = "completed" #: Portal revision publishing completed
280-
failed = "failed" #: Portal revision publishing failed
296+
pending = "pending" #: Portal's revision has been queued.
297+
publishing = "publishing" #: Portal's revision is being published.
298+
completed = "completed" #: Portal's revision publishing completed.
299+
failed = "failed" #: Portal's revision publishing failed.
281300

282301

283302
class SubscriptionState(str, Enum):

0 commit comments

Comments
 (0)