# 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 .provision_application_type_description_base_py3 import ProvisionApplicationTypeDescriptionBase
[docs]class ProvisionApplicationTypeDescription(ProvisionApplicationTypeDescriptionBase):
"""Describes the operation to register or provision an application type using
an application package uploaded to the Service Fabric image store.
All required parameters must be populated in order to send to Azure.
:param async_property: Required. Indicates whether or not provisioning
should occur asynchronously. When set to true, the provision operation
returns when the request is accepted by the system, and the provision
operation continues without any timeout limit. The default value is false.
For large application packages, we recommend setting the value to true.
:type async_property: bool
:param kind: Required. Constant filled by server.
:type kind: str
:param application_type_build_path: Required. The relative path for the
application package in the image store specified during the prior upload
operation.
:type application_type_build_path: str
:param application_package_cleanup_policy: The kind of action that needs
to be taken for cleaning up the application package after successful
provision. Possible values include: 'Invalid', 'Default', 'Automatic',
'Manual'
:type application_package_cleanup_policy: str or
~azure.servicefabric.models.ApplicationPackageCleanupPolicy
"""
_validation = {
'async_property': {'required': True},
'kind': {'required': True},
'application_type_build_path': {'required': True},
}
_attribute_map = {
'async_property': {'key': 'Async', 'type': 'bool'},
'kind': {'key': 'Kind', 'type': 'str'},
'application_type_build_path': {'key': 'ApplicationTypeBuildPath', 'type': 'str'},
'application_package_cleanup_policy': {'key': 'ApplicationPackageCleanupPolicy', 'type': 'str'},
}
def __init__(self, *, async_property: bool, application_type_build_path: str, application_package_cleanup_policy=None, **kwargs) -> None:
super(ProvisionApplicationTypeDescription, self).__init__(async_property=async_property, **kwargs)
self.application_type_build_path = application_type_build_path
self.application_package_cleanup_policy = application_package_cleanup_policy
self.kind = 'ImageStorePath'