Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions azure-mgmt-web/azure/mgmt/web/models/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class Address(Model):
}

def __init__(self, address1, city, country, postal_code, state, address2=None):
super(Address, self).__init__()
self.address1 = address1
self.address2 = address2
self.city = city
Expand Down
6 changes: 3 additions & 3 deletions azure-mgmt-web/azure/mgmt/web/models/address_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ class AddressResponse(Model):
:type internal_ip_address: str
:param outbound_ip_addresses: IP addresses appearing on outbound
connections.
:type outbound_ip_addresses: list of str
:type outbound_ip_addresses: list[str]
:param vip_mappings: Additional virtual IPs.
:type vip_mappings: list of :class:`VirtualIPMapping
<azure.mgmt.web.models.VirtualIPMapping>`
:type vip_mappings: list[~azure.mgmt.web.models.VirtualIPMapping]
"""

_attribute_map = {
Expand All @@ -36,6 +35,7 @@ class AddressResponse(Model):
}

def __init__(self, service_ip_address=None, internal_ip_address=None, outbound_ip_addresses=None, vip_mappings=None):
super(AddressResponse, self).__init__()
self.service_ip_address = service_ip_address
self.internal_ip_address = internal_ip_address
self.outbound_ip_addresses = outbound_ip_addresses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ class ApiDefinitionInfo(Model):
}

def __init__(self, url=None):
super(ApiDefinitionInfo, self).__init__()
self.url = url
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class AppServiceCertificate(Model):
'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist',
'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey',
'Unknown'
:vartype provisioning_state: str or :class:`KeyVaultSecretStatus
<azure.mgmt.web.models.KeyVaultSecretStatus>`
:vartype provisioning_state: str or
~azure.mgmt.web.models.KeyVaultSecretStatus
"""

_validation = {
Expand All @@ -43,6 +43,7 @@ class AppServiceCertificate(Model):
}

def __init__(self, key_vault_id=None, key_vault_secret_name=None):
super(AppServiceCertificate, self).__init__()
self.key_vault_id = key_vault_id
self.key_vault_secret_name = key_vault_secret_name
self.provisioning_state = None
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ class AppServiceCertificateOrder(Resource):
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict
:type tags: dict[str, str]
:param certificates: State of the Key Vault secret.
:type certificates: dict
:type certificates: dict[str,
~azure.mgmt.web.models.AppServiceCertificate]
:param distinguished_name: Certificate distinguished name.
:type distinguished_name: str
:ivar domain_verification_token: Domain verification token.
Expand All @@ -43,32 +44,27 @@ class AppServiceCertificateOrder(Resource):
:type key_size: int
:param product_type: Certificate product type. Possible values include:
'StandardDomainValidatedSsl', 'StandardDomainValidatedWildCardSsl'
:type product_type: str or :class:`CertificateProductType
<azure.mgmt.web.models.CertificateProductType>`
:type product_type: str or ~azure.mgmt.web.models.CertificateProductType
:param auto_renew: <code>true</code> if the certificate should be
automatically renewed when it expires; otherwise, <code>false</code>.
Default value: True .
:type auto_renew: bool
:ivar provisioning_state: Status of certificate order. Possible values
include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', 'Deleting'
:vartype provisioning_state: str or :class:`ProvisioningState
<azure.mgmt.web.models.ProvisioningState>`
:vartype provisioning_state: str or
~azure.mgmt.web.models.ProvisioningState
:ivar status: Current order status. Possible values include:
'Pendingissuance', 'Issued', 'Revoked', 'Canceled', 'Denied',
'Pendingrevocation', 'PendingRekey', 'Unused', 'Expired', 'NotSubmitted'
:vartype status: str or :class:`CertificateOrderStatus
<azure.mgmt.web.models.CertificateOrderStatus>`
:vartype status: str or ~azure.mgmt.web.models.CertificateOrderStatus
:ivar signed_certificate: Signed certificate.
:vartype signed_certificate: :class:`CertificateDetails
<azure.mgmt.web.models.CertificateDetails>`
:vartype signed_certificate: ~azure.mgmt.web.models.CertificateDetails
:param csr: Last CSR that was created for this order.
:type csr: str
:ivar intermediate: Intermediate certificate.
:vartype intermediate: :class:`CertificateDetails
<azure.mgmt.web.models.CertificateDetails>`
:vartype intermediate: ~azure.mgmt.web.models.CertificateDetails
:ivar root: Root certificate.
:vartype root: :class:`CertificateDetails
<azure.mgmt.web.models.CertificateDetails>`
:vartype root: ~azure.mgmt.web.models.CertificateDetails
:ivar serial_number: Current serial number of the certificate.
:vartype serial_number: str
:ivar last_certificate_issuance_time: Certificate last issuance time.
Expand All @@ -80,7 +76,7 @@ class AppServiceCertificateOrder(Resource):
:vartype is_private_key_external: bool
:ivar app_service_certificate_not_renewable_reasons: Reasons why App
Service Certificate is not renewable at the current moment.
:vartype app_service_certificate_not_renewable_reasons: list of str
:vartype app_service_certificate_not_renewable_reasons: list[str]
:ivar next_auto_renewal_time_stamp: Time stamp when the certificate would
be auto renewed next
:vartype next_auto_renewal_time_stamp: datetime
Expand All @@ -93,6 +89,7 @@ class AppServiceCertificateOrder(Resource):
'type': {'readonly': True},
'domain_verification_token': {'readonly': True},
'validity_in_years': {'maximum': 3, 'minimum': 1},
'product_type': {'required': True},
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
'signed_certificate': {'readonly': True},
Expand Down Expand Up @@ -134,7 +131,7 @@ class AppServiceCertificateOrder(Resource):
'next_auto_renewal_time_stamp': {'key': 'properties.nextAutoRenewalTimeStamp', 'type': 'iso-8601'},
}

def __init__(self, location, kind=None, tags=None, certificates=None, distinguished_name=None, validity_in_years=1, key_size=2048, product_type=None, auto_renew=True, csr=None):
def __init__(self, location, product_type, kind=None, tags=None, certificates=None, distinguished_name=None, validity_in_years=1, key_size=2048, auto_renew=True, csr=None):
super(AppServiceCertificateOrder, self).__init__(kind=kind, location=location, tags=tags)
self.certificates = certificates
self.distinguished_name = distinguished_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AppServiceCertificateResource(Resource):
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict
:type tags: dict[str, str]
:param key_vault_id: Key Vault resource Id.
:type key_vault_id: str
:param key_vault_secret_name: Key Vault secret name.
Expand All @@ -41,8 +41,8 @@ class AppServiceCertificateResource(Resource):
'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist',
'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey',
'Unknown'
:vartype provisioning_state: str or :class:`KeyVaultSecretStatus
<azure.mgmt.web.models.KeyVaultSecretStatus>`
:vartype provisioning_state: str or
~azure.mgmt.web.models.KeyVaultSecretStatus
"""

_validation = {
Expand Down
32 changes: 13 additions & 19 deletions azure-mgmt-web/azure/mgmt/web/models/app_service_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ class AppServiceEnvironment(Model):
:ivar provisioning_state: Provisioning state of the App Service
Environment. Possible values include: 'Succeeded', 'Failed', 'Canceled',
'InProgress', 'Deleting'
:vartype provisioning_state: str or :class:`ProvisioningState
<azure.mgmt.web.models.ProvisioningState>`
:vartype provisioning_state: str or
~azure.mgmt.web.models.ProvisioningState
:ivar status: Current status of the App Service Environment. Possible
values include: 'Preparing', 'Ready', 'Scaling', 'Deleting'
:vartype status: str or :class:`HostingEnvironmentStatus
<azure.mgmt.web.models.HostingEnvironmentStatus>`
:vartype status: str or ~azure.mgmt.web.models.HostingEnvironmentStatus
:param vnet_name: Name of the Virtual Network for the App Service
Environment.
:type vnet_name: str
Expand All @@ -39,22 +38,19 @@ class AppServiceEnvironment(Model):
:param vnet_subnet_name: Subnet of the Virtual Network.
:type vnet_subnet_name: str
:param virtual_network: Description of the Virtual Network.
:type virtual_network: :class:`VirtualNetworkProfile
<azure.mgmt.web.models.VirtualNetworkProfile>`
:type virtual_network: ~azure.mgmt.web.models.VirtualNetworkProfile
:param internal_load_balancing_mode: Specifies which endpoints to serve
internally in the Virtual Network for the App Service Environment.
Possible values include: 'None', 'Web', 'Publishing'
:type internal_load_balancing_mode: str or
:class:`InternalLoadBalancingMode
<azure.mgmt.web.models.InternalLoadBalancingMode>`
~azure.mgmt.web.models.InternalLoadBalancingMode
:param multi_size: Front-end VM size, e.g. "Medium", "Large".
:type multi_size: str
:param multi_role_count: Number of front-end instances.
:type multi_role_count: int
:param worker_pools: Description of worker pools with worker size IDs, VM
sizes, and number of workers in each pool.
:type worker_pools: list of :class:`WorkerPool
<azure.mgmt.web.models.WorkerPool>`
:type worker_pools: list[~azure.mgmt.web.models.WorkerPool]
:param ipssl_address_count: Number of IP SSL addresses reserved for the
App Service Environment.
:type ipssl_address_count: int
Expand Down Expand Up @@ -87,17 +83,15 @@ class AppServiceEnvironment(Model):
:vartype maximum_number_of_machines: int
:ivar vip_mappings: Description of IP SSL mapping for the App Service
Environment.
:vartype vip_mappings: list of :class:`VirtualIPMapping
<azure.mgmt.web.models.VirtualIPMapping>`
:vartype vip_mappings: list[~azure.mgmt.web.models.VirtualIPMapping]
:ivar environment_capacities: Current total, used, and available worker
capacities.
:vartype environment_capacities: list of :class:`StampCapacity
<azure.mgmt.web.models.StampCapacity>`
:vartype environment_capacities:
list[~azure.mgmt.web.models.StampCapacity]
:param network_access_control_list: Access control list for controlling
traffic to the App Service Environment.
:type network_access_control_list: list of
:class:`NetworkAccessControlEntry
<azure.mgmt.web.models.NetworkAccessControlEntry>`
:type network_access_control_list:
list[~azure.mgmt.web.models.NetworkAccessControlEntry]
:ivar environment_is_healthy: True/false indicating whether the App
Service Environment is healthy.
:vartype environment_is_healthy: bool
Expand Down Expand Up @@ -125,8 +119,7 @@ class AppServiceEnvironment(Model):
:type dynamic_cache_enabled: bool
:param cluster_settings: Custom settings for changing the behavior of the
App Service Environment.
:type cluster_settings: list of :class:`NameValuePair
<azure.mgmt.web.models.NameValuePair>`
:type cluster_settings: list[~azure.mgmt.web.models.NameValuePair]
"""

_validation = {
Expand Down Expand Up @@ -192,6 +185,7 @@ class AppServiceEnvironment(Model):
}

def __init__(self, name, location, virtual_network, worker_pools, vnet_name=None, vnet_resource_group_name=None, vnet_subnet_name=None, internal_load_balancing_mode=None, multi_size=None, multi_role_count=None, ipssl_address_count=None, dns_suffix=None, network_access_control_list=None, front_end_scale_factor=None, api_management_account_id=None, suspended=None, dynamic_cache_enabled=None, cluster_settings=None):
super(AppServiceEnvironment, self).__init__()
self.name = name
self.location = location
self.provisioning_state = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AppServiceEnvironmentResource(Resource):
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict
:type tags: dict[str, str]
:param app_service_environment_resource_name: Name of the App Service
Environment.
:type app_service_environment_resource_name: str
Expand All @@ -39,12 +39,11 @@ class AppServiceEnvironmentResource(Resource):
:ivar provisioning_state: Provisioning state of the App Service
Environment. Possible values include: 'Succeeded', 'Failed', 'Canceled',
'InProgress', 'Deleting'
:vartype provisioning_state: str or :class:`ProvisioningState
<azure.mgmt.web.models.ProvisioningState>`
:vartype provisioning_state: str or
~azure.mgmt.web.models.ProvisioningState
:ivar status: Current status of the App Service Environment. Possible
values include: 'Preparing', 'Ready', 'Scaling', 'Deleting'
:vartype status: str or :class:`HostingEnvironmentStatus
<azure.mgmt.web.models.HostingEnvironmentStatus>`
:vartype status: str or ~azure.mgmt.web.models.HostingEnvironmentStatus
:param vnet_name: Name of the Virtual Network for the App Service
Environment.
:type vnet_name: str
Expand All @@ -53,22 +52,19 @@ class AppServiceEnvironmentResource(Resource):
:param vnet_subnet_name: Subnet of the Virtual Network.
:type vnet_subnet_name: str
:param virtual_network: Description of the Virtual Network.
:type virtual_network: :class:`VirtualNetworkProfile
<azure.mgmt.web.models.VirtualNetworkProfile>`
:type virtual_network: ~azure.mgmt.web.models.VirtualNetworkProfile
:param internal_load_balancing_mode: Specifies which endpoints to serve
internally in the Virtual Network for the App Service Environment.
Possible values include: 'None', 'Web', 'Publishing'
:type internal_load_balancing_mode: str or
:class:`InternalLoadBalancingMode
<azure.mgmt.web.models.InternalLoadBalancingMode>`
~azure.mgmt.web.models.InternalLoadBalancingMode
:param multi_size: Front-end VM size, e.g. "Medium", "Large".
:type multi_size: str
:param multi_role_count: Number of front-end instances.
:type multi_role_count: int
:param worker_pools: Description of worker pools with worker size IDs, VM
sizes, and number of workers in each pool.
:type worker_pools: list of :class:`WorkerPool
<azure.mgmt.web.models.WorkerPool>`
:type worker_pools: list[~azure.mgmt.web.models.WorkerPool]
:param ipssl_address_count: Number of IP SSL addresses reserved for the
App Service Environment.
:type ipssl_address_count: int
Expand Down Expand Up @@ -101,17 +97,15 @@ class AppServiceEnvironmentResource(Resource):
:vartype maximum_number_of_machines: int
:ivar vip_mappings: Description of IP SSL mapping for the App Service
Environment.
:vartype vip_mappings: list of :class:`VirtualIPMapping
<azure.mgmt.web.models.VirtualIPMapping>`
:vartype vip_mappings: list[~azure.mgmt.web.models.VirtualIPMapping]
:ivar environment_capacities: Current total, used, and available worker
capacities.
:vartype environment_capacities: list of :class:`StampCapacity
<azure.mgmt.web.models.StampCapacity>`
:vartype environment_capacities:
list[~azure.mgmt.web.models.StampCapacity]
:param network_access_control_list: Access control list for controlling
traffic to the App Service Environment.
:type network_access_control_list: list of
:class:`NetworkAccessControlEntry
<azure.mgmt.web.models.NetworkAccessControlEntry>`
:type network_access_control_list:
list[~azure.mgmt.web.models.NetworkAccessControlEntry]
:ivar environment_is_healthy: True/false indicating whether the App
Service Environment is healthy.
:vartype environment_is_healthy: bool
Expand Down Expand Up @@ -139,8 +133,7 @@ class AppServiceEnvironmentResource(Resource):
:type dynamic_cache_enabled: bool
:param cluster_settings: Custom settings for changing the behavior of the
App Service Environment.
:type cluster_settings: list of :class:`NameValuePair
<azure.mgmt.web.models.NameValuePair>`
:type cluster_settings: list[~azure.mgmt.web.models.NameValuePair]
"""

_validation = {
Expand Down
18 changes: 9 additions & 9 deletions azure-mgmt-web/azure/mgmt/web/models/app_service_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,23 @@ class AppServicePlan(Resource):
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict
:type tags: dict[str, str]
:param app_service_plan_name: Name for the App Service plan.
:type app_service_plan_name: str
:param worker_tier_name: Target worker tier assigned to the App Service
plan.
:type worker_tier_name: str
:ivar status: App Service plan status. Possible values include: 'Ready',
'Pending'
:vartype status: str or :class:`StatusOptions
<azure.mgmt.web.models.StatusOptions>`
:vartype status: str or ~azure.mgmt.web.models.StatusOptions
:ivar subscription: App Service plan subscription.
:vartype subscription: str
:param admin_site_name: App Service plan administration site.
:type admin_site_name: str
:param hosting_environment_profile: Specification for the App Service
Environment to use for the App Service plan.
:type hosting_environment_profile: :class:`HostingEnvironmentProfile
<azure.mgmt.web.models.HostingEnvironmentProfile>`
:type hosting_environment_profile:
~azure.mgmt.web.models.HostingEnvironmentProfile
:ivar maximum_number_of_workers: Maximum number of instances that can be
assigned to this App Service plan.
:vartype maximum_number_of_workers: int
Expand All @@ -70,17 +69,18 @@ class AppServicePlan(Resource):
:ivar provisioning_state: Provisioning state of the App Service
Environment. Possible values include: 'Succeeded', 'Failed', 'Canceled',
'InProgress', 'Deleting'
:vartype provisioning_state: str or :class:`ProvisioningState
<azure.mgmt.web.models.ProvisioningState>`
:vartype provisioning_state: str or
~azure.mgmt.web.models.ProvisioningState
:param sku:
:type sku: :class:`SkuDescription <azure.mgmt.web.models.SkuDescription>`
:type sku: ~azure.mgmt.web.models.SkuDescription
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'location': {'required': True},
'type': {'readonly': True},
'app_service_plan_name': {'required': True},
'status': {'readonly': True},
'subscription': {'readonly': True},
'maximum_number_of_workers': {'readonly': True},
Expand Down Expand Up @@ -115,7 +115,7 @@ class AppServicePlan(Resource):
'sku': {'key': 'sku', 'type': 'SkuDescription'},
}

def __init__(self, location, kind=None, tags=None, app_service_plan_name=None, worker_tier_name=None, admin_site_name=None, hosting_environment_profile=None, per_site_scaling=False, reserved=False, target_worker_count=None, target_worker_size_id=None, sku=None):
def __init__(self, location, app_service_plan_name, kind=None, tags=None, worker_tier_name=None, admin_site_name=None, hosting_environment_profile=None, per_site_scaling=False, reserved=False, target_worker_count=None, target_worker_size_id=None, sku=None):
super(AppServicePlan, self).__init__(kind=kind, location=location, tags=tags)
self.app_service_plan_name = app_service_plan_name
self.worker_tier_name = worker_tier_name
Expand Down
Loading