Skip to content

Commit

Permalink
CodeGen from PR 14805 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Web ant93.2 2021 01 15 (Azure#14805)

* Adds base for updating Microsoft.Web from version stable/2021-01-01 to version 2021-01-15

* Updates readme

* Updates API version in new specs and examples

* Add Cert and Domain Registration APIs. Fix publishingcredentialpolici… (Azure#14738)

* Add Cert and Domain Registration APIs. Fix publishingcredentialpolicies collection API response. Add networkconfig API verbs for sites and slots

* Fix examples

* Fix issue R4037

* Fix lintDiff issues

* Fix more issues

Co-authored-by: Naveed Aziz <[email protected]>

* Add x-ms-pageable for ListBasicPublishingCredentialsPolicies APIs (Azure#14960)

Co-authored-by: Naveed Aziz <[email protected]>
  • Loading branch information
SDKAuto and navyaziz committed Jun 24, 2021
1 parent 074f36d commit 9674871
Show file tree
Hide file tree
Showing 23 changed files with 106 additions and 126 deletions.
8 changes: 4 additions & 4 deletions sdk/appservice/azure-mgmt-web/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"use": [
"@autorest/[email protected].0",
"@autorest/[email protected].1"
"@autorest/[email protected].1",
"@autorest/[email protected].2"
],
"commit": "6f3b0ae9e4a5367c910eb573049bf1a75de6e62e",
"commit": "d9249ed91d16c8ff8bf81e2df13e54bd0439bb64",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/web/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected].0 --use=@autorest/[email protected].1 --version=3.4.2",
"autorest_command": "autorest specification/web/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected].1 --use=@autorest/[email protected].2 --version=3.4.2",
"readme": "specification/web/resource-manager/readme.md"
}
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 = "3.0.0"
VERSION = "0.42.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 = "3.0.0"
VERSION = "0.42.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 = "3.0.0"
VERSION = "0.42.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 = "3.0.0"
VERSION = "0.42.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 = "3.0.0"
VERSION = "0.42.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 = "3.0.0"
VERSION = "0.42.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 = "3.0.0"
VERSION = "0.42.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 = "3.0.0"
VERSION = "0.42.0"
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,6 @@ def __init__(
class ApiKVReference(msrest.serialization.Model):
"""Description of site key vault references.

Variables are only populated by the server, and will be ignored when sending a request.

:param reference:
:type reference: str
:param status: Possible values include: "Initialized", "Resolved", "InvalidSyntax",
Expand All @@ -297,17 +295,14 @@ class ApiKVReference(msrest.serialization.Model):
:type identity_type: str or ~azure.mgmt.web.v2019_08_01.models.ManagedServiceIdentityType
:param details:
:type details: str
:ivar source: Default value: "KeyVault".
:vartype source: str
:ivar location: Default value: "ApplicationSetting".
:vartype location: str
:param source: The only acceptable values to pass in are None and "KeyVault". The default
value is None.
:type source: str
:param location: The only acceptable values to pass in are None and "ApplicationSetting". The
default value is None.
:type location: str
"""

_validation = {
'source': {'constant': True},
'location': {'constant': True},
}

_attribute_map = {
'reference': {'key': 'reference', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
Expand All @@ -320,9 +315,6 @@ class ApiKVReference(msrest.serialization.Model):
'location': {'key': 'location', 'type': 'str'},
}

source = "KeyVault"
location = "ApplicationSetting"

def __init__(
self,
**kwargs
Expand All @@ -335,6 +327,8 @@ def __init__(
self.secret_version = kwargs.get('secret_version', None)
self.identity_type = kwargs.get('identity_type', None)
self.details = kwargs.get('details', None)
self.source = kwargs.get('source', None)
self.location = kwargs.get('location', None)


class ApiManagementConfig(msrest.serialization.Model):
Expand Down Expand Up @@ -7262,18 +7256,18 @@ class KeyVaultReferenceResource(ProxyOnlyResource):
:type identity_type: str or ~azure.mgmt.web.v2019_08_01.models.ManagedServiceIdentityType
:param details:
:type details: str
:ivar source: Default value: "KeyVault".
:vartype source: str
:ivar location: Default value: "ApplicationSetting".
:vartype location: str
:param source: The only acceptable values to pass in are None and "KeyVault". The default
value is None.
:type source: str
:param location: The only acceptable values to pass in are None and "ApplicationSetting". The
default value is None.
:type location: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'source': {'constant': True},
'location': {'constant': True},
}

_attribute_map = {
Expand All @@ -7292,9 +7286,6 @@ class KeyVaultReferenceResource(ProxyOnlyResource):
'location': {'key': 'properties.location', 'type': 'str'},
}

source = "KeyVault"
location = "ApplicationSetting"

def __init__(
self,
**kwargs
Expand All @@ -7307,6 +7298,8 @@ def __init__(
self.secret_version = kwargs.get('secret_version', None)
self.identity_type = kwargs.get('identity_type', None)
self.details = kwargs.get('details', None)
self.source = kwargs.get('source', None)
self.location = kwargs.get('location', None)


class LocalizableString(msrest.serialization.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,6 @@ def __init__(
class ApiKVReference(msrest.serialization.Model):
"""Description of site key vault references.

Variables are only populated by the server, and will be ignored when sending a request.

:param reference:
:type reference: str
:param status: Possible values include: "Initialized", "Resolved", "InvalidSyntax",
Expand All @@ -332,17 +330,14 @@ class ApiKVReference(msrest.serialization.Model):
:type identity_type: str or ~azure.mgmt.web.v2019_08_01.models.ManagedServiceIdentityType
:param details:
:type details: str
:ivar source: Default value: "KeyVault".
:vartype source: str
:ivar location: Default value: "ApplicationSetting".
:vartype location: str
:param source: The only acceptable values to pass in are None and "KeyVault". The default
value is None.
:type source: str
:param location: The only acceptable values to pass in are None and "ApplicationSetting". The
default value is None.
:type location: str
"""

_validation = {
'source': {'constant': True},
'location': {'constant': True},
}

_attribute_map = {
'reference': {'key': 'reference', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
Expand All @@ -355,9 +350,6 @@ class ApiKVReference(msrest.serialization.Model):
'location': {'key': 'location', 'type': 'str'},
}

source = "KeyVault"
location = "ApplicationSetting"

def __init__(
self,
*,
Expand All @@ -368,6 +360,8 @@ def __init__(
secret_version: Optional[str] = None,
identity_type: Optional[Union[str, "ManagedServiceIdentityType"]] = None,
details: Optional[str] = None,
source: Optional[str] = None,
location: Optional[str] = None,
**kwargs
):
super(ApiKVReference, self).__init__(**kwargs)
Expand All @@ -378,6 +372,8 @@ def __init__(
self.secret_version = secret_version
self.identity_type = identity_type
self.details = details
self.source = source
self.location = location


class ApiManagementConfig(msrest.serialization.Model):
Expand Down Expand Up @@ -8004,18 +8000,18 @@ class KeyVaultReferenceResource(ProxyOnlyResource):
:type identity_type: str or ~azure.mgmt.web.v2019_08_01.models.ManagedServiceIdentityType
:param details:
:type details: str
:ivar source: Default value: "KeyVault".
:vartype source: str
:ivar location: Default value: "ApplicationSetting".
:vartype location: str
:param source: The only acceptable values to pass in are None and "KeyVault". The default
value is None.
:type source: str
:param location: The only acceptable values to pass in are None and "ApplicationSetting". The
default value is None.
:type location: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'source': {'constant': True},
'location': {'constant': True},
}

_attribute_map = {
Expand All @@ -8034,9 +8030,6 @@ class KeyVaultReferenceResource(ProxyOnlyResource):
'location': {'key': 'properties.location', 'type': 'str'},
}

source = "KeyVault"
location = "ApplicationSetting"

def __init__(
self,
*,
Expand All @@ -8048,6 +8041,8 @@ def __init__(
secret_version: Optional[str] = None,
identity_type: Optional[Union[str, "ManagedServiceIdentityType"]] = None,
details: Optional[str] = None,
source: Optional[str] = None,
location: Optional[str] = None,
**kwargs
):
super(KeyVaultReferenceResource, self).__init__(kind=kind, **kwargs)
Expand All @@ -8058,6 +8053,8 @@ def __init__(
self.secret_version = secret_version
self.identity_type = identity_type
self.details = details
self.source = source
self.location = location


class LocalizableString(msrest.serialization.Model):
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 = "3.0.0"
VERSION = "0.42.0"
Original file line number Diff line number Diff line change
Expand Up @@ -8991,8 +8991,9 @@ class OpenIdConnectClientCredential(ProxyOnlyResource):
:type kind: str
:ivar type: Resource type.
:vartype type: str
:ivar method: Default value: "ClientSecretPost".
:vartype method: str
:param method: The only acceptable values to pass in are None and "ClientSecretPost". The
default value is None.
:type method: str
:param client_secret_setting_name:
:type client_secret_setting_name: str
"""
Expand All @@ -9001,7 +9002,6 @@ class OpenIdConnectClientCredential(ProxyOnlyResource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'method': {'constant': True},
}

_attribute_map = {
Expand All @@ -9013,13 +9013,12 @@ class OpenIdConnectClientCredential(ProxyOnlyResource):
'client_secret_setting_name': {'key': 'properties.clientSecretSettingName', 'type': 'str'},
}

method = "ClientSecretPost"

def __init__(
self,
**kwargs
):
super(OpenIdConnectClientCredential, self).__init__(**kwargs)
self.method = kwargs.get('method', None)
self.client_secret_setting_name = kwargs.get('client_secret_setting_name', None)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9909,8 +9909,9 @@ class OpenIdConnectClientCredential(ProxyOnlyResource):
:type kind: str
:ivar type: Resource type.
:vartype type: str
:ivar method: Default value: "ClientSecretPost".
:vartype method: str
:param method: The only acceptable values to pass in are None and "ClientSecretPost". The
default value is None.
:type method: str
:param client_secret_setting_name:
:type client_secret_setting_name: str
"""
Expand All @@ -9919,7 +9920,6 @@ class OpenIdConnectClientCredential(ProxyOnlyResource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'method': {'constant': True},
}

_attribute_map = {
Expand All @@ -9931,16 +9931,16 @@ class OpenIdConnectClientCredential(ProxyOnlyResource):
'client_secret_setting_name': {'key': 'properties.clientSecretSettingName', 'type': 'str'},
}

method = "ClientSecretPost"

def __init__(
self,
*,
kind: Optional[str] = None,
method: Optional[str] = None,
client_secret_setting_name: Optional[str] = None,
**kwargs
):
super(OpenIdConnectClientCredential, self).__init__(kind=kind, **kwargs)
self.method = method
self.client_secret_setting_name = client_secret_setting_name


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 = "3.0.0"
VERSION = "0.42.0"
Original file line number Diff line number Diff line change
Expand Up @@ -9360,8 +9360,9 @@ class OpenIdConnectClientCredential(ProxyOnlyResource):
:vartype type: str
:ivar system_data: The system metadata relating to this resource.
:vartype system_data: ~azure.mgmt.web.v2020_09_01.models.SystemData
:ivar method: Default value: "ClientSecretPost".
:vartype method: str
:param method: The only acceptable values to pass in are None and "ClientSecretPost". The
default value is None.
:type method: str
:param client_secret_setting_name:
:type client_secret_setting_name: str
"""
Expand All @@ -9371,7 +9372,6 @@ class OpenIdConnectClientCredential(ProxyOnlyResource):
'name': {'readonly': True},
'type': {'readonly': True},
'system_data': {'readonly': True},
'method': {'constant': True},
}

_attribute_map = {
Expand All @@ -9384,13 +9384,12 @@ class OpenIdConnectClientCredential(ProxyOnlyResource):
'client_secret_setting_name': {'key': 'properties.clientSecretSettingName', 'type': 'str'},
}

method = "ClientSecretPost"

def __init__(
self,
**kwargs
):
super(OpenIdConnectClientCredential, self).__init__(**kwargs)
self.method = kwargs.get('method', None)
self.client_secret_setting_name = kwargs.get('client_secret_setting_name', None)


Expand Down
Loading

0 comments on commit 9674871

Please sign in to comment.