Skip to content

Commit

Permalink
Generated from 45ce1882ee5af7ce8fa4f25cf5f871bc7aa9821b (#3116)
Browse files Browse the repository at this point in the history
Include DRSecondary endpoint for GetPublishingProfileXml
  • Loading branch information
AutorestCI authored Aug 9, 2018
1 parent 0375f0d commit 5ac171b
Show file tree
Hide file tree
Showing 28 changed files with 1,974 additions and 1,608 deletions.
10 changes: 10 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
from .handler_mapping_py3 import HandlerMapping
from .site_machine_key_py3 import SiteMachineKey
from .conn_string_info_py3 import ConnStringInfo
from .azure_storage_info_value_py3 import AzureStorageInfoValue
from .name_value_pair_py3 import NameValuePair
from .site_config_py3 import SiteConfig
from .host_name_ssl_state_py3 import HostNameSslState
Expand Down Expand Up @@ -154,6 +155,7 @@
from .azure_blob_storage_application_logs_config_py3 import AzureBlobStorageApplicationLogsConfig
from .application_logs_config_py3 import ApplicationLogsConfig
from .azure_blob_storage_http_logs_config_py3 import AzureBlobStorageHttpLogsConfig
from .azure_storage_property_dictionary_resource_py3 import AzureStoragePropertyDictionaryResource
from .database_backup_setting_py3 import DatabaseBackupSetting
from .backup_item_py3 import BackupItem
from .backup_schedule_py3 import BackupSchedule
Expand Down Expand Up @@ -274,6 +276,7 @@
from .handler_mapping import HandlerMapping
from .site_machine_key import SiteMachineKey
from .conn_string_info import ConnStringInfo
from .azure_storage_info_value import AzureStorageInfoValue
from .name_value_pair import NameValuePair
from .site_config import SiteConfig
from .host_name_ssl_state import HostNameSslState
Expand Down Expand Up @@ -372,6 +375,7 @@
from .azure_blob_storage_application_logs_config import AzureBlobStorageApplicationLogsConfig
from .application_logs_config import ApplicationLogsConfig
from .azure_blob_storage_http_logs_config import AzureBlobStorageHttpLogsConfig
from .azure_storage_property_dictionary_resource import AzureStoragePropertyDictionaryResource
from .database_backup_setting import DatabaseBackupSetting
from .backup_item import BackupItem
from .backup_schedule import BackupSchedule
Expand Down Expand Up @@ -508,6 +512,8 @@
IpFilterTag,
AutoHealActionType,
ConnectionStringType,
AzureStorageType,
AzureStorageState,
ScmType,
ManagedPipelineMode,
SiteLoadBalancing,
Expand Down Expand Up @@ -608,6 +614,7 @@
'HandlerMapping',
'SiteMachineKey',
'ConnStringInfo',
'AzureStorageInfoValue',
'NameValuePair',
'SiteConfig',
'HostNameSslState',
Expand Down Expand Up @@ -706,6 +713,7 @@
'AzureBlobStorageApplicationLogsConfig',
'ApplicationLogsConfig',
'AzureBlobStorageHttpLogsConfig',
'AzureStoragePropertyDictionaryResource',
'DatabaseBackupSetting',
'BackupItem',
'BackupSchedule',
Expand Down Expand Up @@ -841,6 +849,8 @@
'IpFilterTag',
'AutoHealActionType',
'ConnectionStringType',
'AzureStorageType',
'AzureStorageState',
'ScmType',
'ManagedPipelineMode',
'SiteLoadBalancing',
Expand Down
60 changes: 60 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/azure_storage_info_value.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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 msrest.serialization import Model


class AzureStorageInfoValue(Model):
"""Azure Files or Blob Storage access information value for dictionary
storage.
Variables are only populated by the server, and will be ignored when
sending a request.
:param type: Type of storage. Possible values include: 'AzureFiles',
'AzureBlob'
:type type: str or ~azure.mgmt.web.models.AzureStorageType
:param account_name: Name of the storage account.
:type account_name: str
:param share_name: Name of the file share (container name, for Blob
storage).
:type share_name: str
:param access_key: Access key for the storage account.
:type access_key: str
:param mount_path: Path to mount the storage within the site's runtime
environment.
:type mount_path: str
:ivar state: State of the storage account. Possible values include: 'Ok',
'InvalidCredentials', 'InvalidShare'
:vartype state: str or ~azure.mgmt.web.models.AzureStorageState
"""

_validation = {
'state': {'readonly': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'AzureStorageType'},
'account_name': {'key': 'accountName', 'type': 'str'},
'share_name': {'key': 'shareName', 'type': 'str'},
'access_key': {'key': 'accessKey', 'type': 'str'},
'mount_path': {'key': 'mountPath', 'type': 'str'},
'state': {'key': 'state', 'type': 'AzureStorageState'},
}

def __init__(self, **kwargs):
super(AzureStorageInfoValue, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
self.account_name = kwargs.get('account_name', None)
self.share_name = kwargs.get('share_name', None)
self.access_key = kwargs.get('access_key', None)
self.mount_path = kwargs.get('mount_path', None)
self.state = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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 msrest.serialization import Model


class AzureStorageInfoValue(Model):
"""Azure Files or Blob Storage access information value for dictionary
storage.
Variables are only populated by the server, and will be ignored when
sending a request.
:param type: Type of storage. Possible values include: 'AzureFiles',
'AzureBlob'
:type type: str or ~azure.mgmt.web.models.AzureStorageType
:param account_name: Name of the storage account.
:type account_name: str
:param share_name: Name of the file share (container name, for Blob
storage).
:type share_name: str
:param access_key: Access key for the storage account.
:type access_key: str
:param mount_path: Path to mount the storage within the site's runtime
environment.
:type mount_path: str
:ivar state: State of the storage account. Possible values include: 'Ok',
'InvalidCredentials', 'InvalidShare'
:vartype state: str or ~azure.mgmt.web.models.AzureStorageState
"""

_validation = {
'state': {'readonly': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'AzureStorageType'},
'account_name': {'key': 'accountName', 'type': 'str'},
'share_name': {'key': 'shareName', 'type': 'str'},
'access_key': {'key': 'accessKey', 'type': 'str'},
'mount_path': {'key': 'mountPath', 'type': 'str'},
'state': {'key': 'state', 'type': 'AzureStorageState'},
}

def __init__(self, *, type=None, account_name: str=None, share_name: str=None, access_key: str=None, mount_path: str=None, **kwargs) -> None:
super(AzureStorageInfoValue, self).__init__(**kwargs)
self.type = type
self.account_name = account_name
self.share_name = share_name
self.access_key = access_key
self.mount_path = mount_path
self.state = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 .proxy_only_resource import ProxyOnlyResource


class AzureStoragePropertyDictionaryResource(ProxyOnlyResource):
"""AzureStorageInfo dictionary resource.
Variables are only populated by the server, and will be ignored when
sending a request.
: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 properties: Azure storage accounts.
:type properties: dict[str, ~azure.mgmt.web.models.AzureStorageInfoValue]
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{AzureStorageInfoValue}'},
}

def __init__(self, **kwargs):
super(AzureStoragePropertyDictionaryResource, self).__init__(**kwargs)
self.properties = kwargs.get('properties', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 .proxy_only_resource_py3 import ProxyOnlyResource


class AzureStoragePropertyDictionaryResource(ProxyOnlyResource):
"""AzureStorageInfo dictionary resource.
Variables are only populated by the server, and will be ignored when
sending a request.
: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 properties: Azure storage accounts.
:type properties: dict[str, ~azure.mgmt.web.models.AzureStorageInfoValue]
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{AzureStorageInfoValue}'},
}

def __init__(self, *, kind: str=None, properties=None, **kwargs) -> None:
super(AzureStoragePropertyDictionaryResource, self).__init__(kind=kind, **kwargs)
self.properties = properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ class CsmPublishingProfileOptions(Model):
WebDeploy -- default
Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp'
:type format: str or ~azure.mgmt.web.models.PublishingProfileFormat
:param include_disaster_recovery_endpoints: Include the DisasterRecover
endpoint if true
:type include_disaster_recovery_endpoints: bool
"""

_attribute_map = {
'format': {'key': 'format', 'type': 'str'},
'include_disaster_recovery_endpoints': {'key': 'includeDisasterRecoveryEndpoints', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(CsmPublishingProfileOptions, self).__init__(**kwargs)
self.format = kwargs.get('format', None)
self.include_disaster_recovery_endpoints = kwargs.get('include_disaster_recovery_endpoints', None)
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ class CsmPublishingProfileOptions(Model):
WebDeploy -- default
Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp'
:type format: str or ~azure.mgmt.web.models.PublishingProfileFormat
:param include_disaster_recovery_endpoints: Include the DisasterRecover
endpoint if true
:type include_disaster_recovery_endpoints: bool
"""

_attribute_map = {
'format': {'key': 'format', 'type': 'str'},
'include_disaster_recovery_endpoints': {'key': 'includeDisasterRecoveryEndpoints', 'type': 'bool'},
}

def __init__(self, *, format=None, **kwargs) -> None:
def __init__(self, *, format=None, include_disaster_recovery_endpoints: bool=None, **kwargs) -> None:
super(CsmPublishingProfileOptions, self).__init__(**kwargs)
self.format = format
self.include_disaster_recovery_endpoints = include_disaster_recovery_endpoints
5 changes: 5 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/site_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ class SiteConfig(Model):
:type publishing_username: str
:param app_settings: Application settings.
:type app_settings: list[~azure.mgmt.web.models.NameValuePair]
:param azure_storage_accounts: User-provided Azure storage accounts.
:type azure_storage_accounts: dict[str,
~azure.mgmt.web.models.AzureStorageInfoValue]
:param connection_strings: Connection strings.
:type connection_strings: list[~azure.mgmt.web.models.ConnStringInfo]
:ivar machine_key: Site MachineKey.
Expand Down Expand Up @@ -167,6 +170,7 @@ class SiteConfig(Model):
'detailed_error_logging_enabled': {'key': 'detailedErrorLoggingEnabled', 'type': 'bool'},
'publishing_username': {'key': 'publishingUsername', 'type': 'str'},
'app_settings': {'key': 'appSettings', 'type': '[NameValuePair]'},
'azure_storage_accounts': {'key': 'azureStorageAccounts', 'type': '{AzureStorageInfoValue}'},
'connection_strings': {'key': 'connectionStrings', 'type': '[ConnStringInfo]'},
'machine_key': {'key': 'machineKey', 'type': 'SiteMachineKey'},
'handler_mappings': {'key': 'handlerMappings', 'type': '[HandlerMapping]'},
Expand Down Expand Up @@ -221,6 +225,7 @@ def __init__(self, **kwargs):
self.detailed_error_logging_enabled = kwargs.get('detailed_error_logging_enabled', None)
self.publishing_username = kwargs.get('publishing_username', None)
self.app_settings = kwargs.get('app_settings', None)
self.azure_storage_accounts = kwargs.get('azure_storage_accounts', None)
self.connection_strings = kwargs.get('connection_strings', None)
self.machine_key = None
self.handler_mappings = kwargs.get('handler_mappings', None)
Expand Down
7 changes: 6 additions & 1 deletion azure-mgmt-web/azure/mgmt/web/models/site_config_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ class SiteConfig(Model):
:type publishing_username: str
:param app_settings: Application settings.
:type app_settings: list[~azure.mgmt.web.models.NameValuePair]
:param azure_storage_accounts: User-provided Azure storage accounts.
:type azure_storage_accounts: dict[str,
~azure.mgmt.web.models.AzureStorageInfoValue]
:param connection_strings: Connection strings.
:type connection_strings: list[~azure.mgmt.web.models.ConnStringInfo]
:ivar machine_key: Site MachineKey.
Expand Down Expand Up @@ -167,6 +170,7 @@ class SiteConfig(Model):
'detailed_error_logging_enabled': {'key': 'detailedErrorLoggingEnabled', 'type': 'bool'},
'publishing_username': {'key': 'publishingUsername', 'type': 'str'},
'app_settings': {'key': 'appSettings', 'type': '[NameValuePair]'},
'azure_storage_accounts': {'key': 'azureStorageAccounts', 'type': '{AzureStorageInfoValue}'},
'connection_strings': {'key': 'connectionStrings', 'type': '[ConnStringInfo]'},
'machine_key': {'key': 'machineKey', 'type': 'SiteMachineKey'},
'handler_mappings': {'key': 'handlerMappings', 'type': '[HandlerMapping]'},
Expand Down Expand Up @@ -202,7 +206,7 @@ class SiteConfig(Model):
'reserved_instance_count': {'key': 'reservedInstanceCount', 'type': 'int'},
}

def __init__(self, *, number_of_workers: int=None, default_documents=None, net_framework_version: str="v4.6", php_version: str=None, python_version: str=None, node_version: str=None, linux_fx_version: str=None, windows_fx_version: str=None, request_tracing_enabled: bool=None, request_tracing_expiration_time=None, remote_debugging_enabled: bool=None, remote_debugging_version: str=None, http_logging_enabled: bool=None, logs_directory_size_limit: int=None, detailed_error_logging_enabled: bool=None, publishing_username: str=None, app_settings=None, connection_strings=None, handler_mappings=None, document_root: str=None, scm_type=None, use32_bit_worker_process: bool=None, web_sockets_enabled: bool=None, always_on: bool=None, java_version: str=None, java_container: str=None, java_container_version: str=None, app_command_line: str=None, managed_pipeline_mode=None, virtual_applications=None, load_balancing=None, experiments=None, limits=None, auto_heal_enabled: bool=None, auto_heal_rules=None, tracing_options: str=None, vnet_name: str=None, cors=None, push=None, api_definition=None, auto_swap_slot_name: str=None, local_my_sql_enabled: bool=False, managed_service_identity_id: int=None, x_managed_service_identity_id: int=None, ip_security_restrictions=None, http20_enabled: bool=True, min_tls_version=None, ftps_state=None, reserved_instance_count: int=None, **kwargs) -> None:
def __init__(self, *, number_of_workers: int=None, default_documents=None, net_framework_version: str="v4.6", php_version: str=None, python_version: str=None, node_version: str=None, linux_fx_version: str=None, windows_fx_version: str=None, request_tracing_enabled: bool=None, request_tracing_expiration_time=None, remote_debugging_enabled: bool=None, remote_debugging_version: str=None, http_logging_enabled: bool=None, logs_directory_size_limit: int=None, detailed_error_logging_enabled: bool=None, publishing_username: str=None, app_settings=None, azure_storage_accounts=None, connection_strings=None, handler_mappings=None, document_root: str=None, scm_type=None, use32_bit_worker_process: bool=None, web_sockets_enabled: bool=None, always_on: bool=None, java_version: str=None, java_container: str=None, java_container_version: str=None, app_command_line: str=None, managed_pipeline_mode=None, virtual_applications=None, load_balancing=None, experiments=None, limits=None, auto_heal_enabled: bool=None, auto_heal_rules=None, tracing_options: str=None, vnet_name: str=None, cors=None, push=None, api_definition=None, auto_swap_slot_name: str=None, local_my_sql_enabled: bool=False, managed_service_identity_id: int=None, x_managed_service_identity_id: int=None, ip_security_restrictions=None, http20_enabled: bool=True, min_tls_version=None, ftps_state=None, reserved_instance_count: int=None, **kwargs) -> None:
super(SiteConfig, self).__init__(**kwargs)
self.number_of_workers = number_of_workers
self.default_documents = default_documents
Expand All @@ -221,6 +225,7 @@ def __init__(self, *, number_of_workers: int=None, default_documents=None, net_f
self.detailed_error_logging_enabled = detailed_error_logging_enabled
self.publishing_username = publishing_username
self.app_settings = app_settings
self.azure_storage_accounts = azure_storage_accounts
self.connection_strings = connection_strings
self.machine_key = None
self.handler_mappings = handler_mappings
Expand Down
Loading

0 comments on commit 5ac171b

Please sign in to comment.