Skip to content

Commit

Permalink
Generated from 88fd6db0e0edd8e2376c74affb316e5b0ed67c7f (#11831)
Browse files Browse the repository at this point in the history
Added examples
  • Loading branch information
LianwMS authored Jun 10, 2020
1 parent 516aae3 commit 745b5c2
Show file tree
Hide file tree
Showing 9 changed files with 578 additions and 31 deletions.
10 changes: 10 additions & 0 deletions sdk/appservice/azure-mgmt-web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release History

## 0.47.0 (2020-06-03)

**Features**

- Added operation WebAppsOperations.get_basic_publishing_credentials_policies
- Added operation WebAppsOperations.update_scm_allowed
- Added operation WebAppsOperations.update_ftp_allowed
- Added operation WebAppsOperations.get_scm_allowed
- Added operation WebAppsOperations.get_ftp_allowed

## 0.46.0 (2020-04-10)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
from ._models_py3 import CsmOperationDescription
from ._models_py3 import CsmOperationDescriptionProperties
from ._models_py3 import CsmOperationDisplay
from ._models_py3 import CsmPublishingCredentialsPoliciesCollection
from ._models_py3 import CsmPublishingCredentialsPoliciesEntity
from ._models_py3 import CsmPublishingProfileOptions
from ._models_py3 import CsmSlotEntity
from ._models_py3 import CsmUsageQuota
Expand Down Expand Up @@ -322,6 +324,8 @@
from ._models import CsmOperationDescription
from ._models import CsmOperationDescriptionProperties
from ._models import CsmOperationDisplay
from ._models import CsmPublishingCredentialsPoliciesCollection
from ._models import CsmPublishingCredentialsPoliciesEntity
from ._models import CsmPublishingProfileOptions
from ._models import CsmSlotEntity
from ._models import CsmUsageQuota
Expand Down Expand Up @@ -707,6 +711,8 @@
'CsmOperationDescription',
'CsmOperationDescriptionProperties',
'CsmOperationDisplay',
'CsmPublishingCredentialsPoliciesCollection',
'CsmPublishingCredentialsPoliciesEntity',
'CsmPublishingProfileOptions',
'CsmSlotEntity',
'CsmUsageQuota',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ class ApiKVReference(Model):
:type secret_name: str
:param secret_version:
:type secret_version: str
:param identity_type: Possible values include: 'None', 'SystemAssigned',
'UserAssigned'
:param identity_type: Possible values include: 'SystemAssigned',
'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
:type identity_type: str or
~azure.mgmt.web.v2019_08_01.models.ManagedServiceIdentityType
:param details:
Expand Down Expand Up @@ -3697,6 +3697,94 @@ def __init__(self, **kwargs):
self.description = kwargs.get('description', None)


class CsmPublishingCredentialsPoliciesCollection(ProxyOnlyResource):
"""Publishing Credentials Policies collection.

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

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

:ivar id: Resource Id.
:vartype id: str
:ivar name: Resource Name.
:vartype name: str
:param kind: Kind of resource.
:type kind: str
:ivar type: Resource type.
:vartype type: str
:param ftp: Required. Whether FTP is allowed.
:type ftp:
~azure.mgmt.web.v2019_08_01.models.CsmPublishingCredentialsPoliciesEntity
:param scm: Required. Whether Scm Basic Auth is allowed.
:type scm:
~azure.mgmt.web.v2019_08_01.models.CsmPublishingCredentialsPoliciesEntity
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'ftp': {'required': True},
'scm': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'ftp': {'key': 'properties.ftp', 'type': 'CsmPublishingCredentialsPoliciesEntity'},
'scm': {'key': 'properties.scm', 'type': 'CsmPublishingCredentialsPoliciesEntity'},
}

def __init__(self, **kwargs):
super(CsmPublishingCredentialsPoliciesCollection, self).__init__(**kwargs)
self.ftp = kwargs.get('ftp', None)
self.scm = kwargs.get('scm', None)


class CsmPublishingCredentialsPoliciesEntity(ProxyOnlyResource):
"""Publishing Credentials Policies parameters.

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

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

:ivar id: Resource Id.
:vartype id: str
:ivar name: Resource Name.
:vartype name: str
:param kind: Kind of resource.
:type kind: str
:ivar type: Resource type.
:vartype type: str
:param allow: Required. <code>true</code> to allow access to a publishing
method; otherwise, <code>false</code>.
:type allow: bool
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'allow': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'allow': {'key': 'properties.allow', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(CsmPublishingCredentialsPoliciesEntity, self).__init__(**kwargs)
self.allow = kwargs.get('allow', None)


class CsmPublishingProfileOptions(Model):
"""Publishing options for requested profile.

Expand Down Expand Up @@ -6313,8 +6401,8 @@ class KeyVaultReferenceResource(ProxyOnlyResource):
:type secret_name: str
:param secret_version:
:type secret_version: str
:param identity_type: Possible values include: 'None', 'SystemAssigned',
'UserAssigned'
:param identity_type: Possible values include: 'SystemAssigned',
'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
:type identity_type: str or
~azure.mgmt.web.v2019_08_01.models.ManagedServiceIdentityType
:param details:
Expand Down Expand Up @@ -6413,7 +6501,7 @@ class ManagedServiceIdentity(Model):
sending a request.

:param type: Type of managed service identity. Possible values include:
'None', 'SystemAssigned', 'UserAssigned'
'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
:type type: str or
~azure.mgmt.web.v2019_08_01.models.ManagedServiceIdentityType
:ivar tenant_id: Tenant of managed service identity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ class ApiKVReference(Model):
:type secret_name: str
:param secret_version:
:type secret_version: str
:param identity_type: Possible values include: 'None', 'SystemAssigned',
'UserAssigned'
:param identity_type: Possible values include: 'SystemAssigned',
'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
:type identity_type: str or
~azure.mgmt.web.v2019_08_01.models.ManagedServiceIdentityType
:param details:
Expand Down Expand Up @@ -3697,6 +3697,94 @@ def __init__(self, *, provider: str=None, resource: str=None, operation: str=Non
self.description = description


class CsmPublishingCredentialsPoliciesCollection(ProxyOnlyResource):
"""Publishing Credentials Policies collection.

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

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

:ivar id: Resource Id.
:vartype id: str
:ivar name: Resource Name.
:vartype name: str
:param kind: Kind of resource.
:type kind: str
:ivar type: Resource type.
:vartype type: str
:param ftp: Required. Whether FTP is allowed.
:type ftp:
~azure.mgmt.web.v2019_08_01.models.CsmPublishingCredentialsPoliciesEntity
:param scm: Required. Whether Scm Basic Auth is allowed.
:type scm:
~azure.mgmt.web.v2019_08_01.models.CsmPublishingCredentialsPoliciesEntity
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'ftp': {'required': True},
'scm': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'ftp': {'key': 'properties.ftp', 'type': 'CsmPublishingCredentialsPoliciesEntity'},
'scm': {'key': 'properties.scm', 'type': 'CsmPublishingCredentialsPoliciesEntity'},
}

def __init__(self, *, ftp, scm, kind: str=None, **kwargs) -> None:
super(CsmPublishingCredentialsPoliciesCollection, self).__init__(kind=kind, **kwargs)
self.ftp = ftp
self.scm = scm


class CsmPublishingCredentialsPoliciesEntity(ProxyOnlyResource):
"""Publishing Credentials Policies parameters.

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

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

:ivar id: Resource Id.
:vartype id: str
:ivar name: Resource Name.
:vartype name: str
:param kind: Kind of resource.
:type kind: str
:ivar type: Resource type.
:vartype type: str
:param allow: Required. <code>true</code> to allow access to a publishing
method; otherwise, <code>false</code>.
:type allow: bool
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'allow': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'allow': {'key': 'properties.allow', 'type': 'bool'},
}

def __init__(self, *, allow: bool, kind: str=None, **kwargs) -> None:
super(CsmPublishingCredentialsPoliciesEntity, self).__init__(kind=kind, **kwargs)
self.allow = allow


class CsmPublishingProfileOptions(Model):
"""Publishing options for requested profile.

Expand Down Expand Up @@ -6313,8 +6401,8 @@ class KeyVaultReferenceResource(ProxyOnlyResource):
:type secret_name: str
:param secret_version:
:type secret_version: str
:param identity_type: Possible values include: 'None', 'SystemAssigned',
'UserAssigned'
:param identity_type: Possible values include: 'SystemAssigned',
'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
:type identity_type: str or
~azure.mgmt.web.v2019_08_01.models.ManagedServiceIdentityType
:param details:
Expand Down Expand Up @@ -6413,7 +6501,7 @@ class ManagedServiceIdentity(Model):
sending a request.

:param type: Type of managed service identity. Possible values include:
'None', 'SystemAssigned', 'UserAssigned'
'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
:type type: str or
~azure.mgmt.web.v2019_08_01.models.ManagedServiceIdentityType
:ivar tenant_id: Tenant of managed service identity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ class RouteType(str, Enum):

class ManagedServiceIdentityType(str, Enum):

none = "None"
system_assigned = "SystemAssigned"
user_assigned = "UserAssigned"
system_assigned_user_assigned = "SystemAssigned, UserAssigned"
none = "None"


class IpFilterTag(str, Enum):
Expand Down
Loading

0 comments on commit 745b5c2

Please sign in to comment.