Source code for azure.mgmt.servicefabric.models.version_resource_py3

# 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_resource_py3 import ProxyResource


[docs]class VersionResource(ProxyResource): """A version resource for the specified application type name. 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: Azure resource ID. :vartype id: str :ivar name: Azure resource name. :vartype name: str :ivar type: Azure resource type. :vartype type: str :param location: Required. Resource location. :type location: str :ivar provisioning_state: The current deployment or provisioning state, which only appears in the response :vartype provisioning_state: str :param app_package_url: Required. The URL to the application package :type app_package_url: str :ivar default_parameter_list: :vartype default_parameter_list: list[~azure.mgmt.servicefabric.models.ApplicationParameter] """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, 'provisioning_state': {'readonly': True}, 'app_package_url': {'required': True}, 'default_parameter_list': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'app_package_url': {'key': 'properties.appPackageUrl', 'type': 'str'}, 'default_parameter_list': {'key': 'properties.defaultParameterList', 'type': '[ApplicationParameter]'}, } def __init__(self, *, location: str, app_package_url: str, **kwargs) -> None: super(VersionResource, self).__init__(location=location, **kwargs) self.provisioning_state = None self.app_package_url = app_package_url self.default_parameter_list = None