1# coding: utf-8 2# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. 3# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. 4 5from .deploy_environment_summary import DeployEnvironmentSummary 6from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 7from oci.decorators import init_model_state_from_kwargs 8 9 10@init_model_state_from_kwargs 11class FunctionDeployEnvironmentSummary(DeployEnvironmentSummary): 12 """ 13 Specifies the Function environment. 14 """ 15 16 def __init__(self, **kwargs): 17 """ 18 Initializes a new FunctionDeployEnvironmentSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.devops.models.FunctionDeployEnvironmentSummary.deploy_environment_type` attribute 19 of this class is ``FUNCTION`` and it should not be changed. 20 The following keyword arguments are supported (corresponding to the getters/setters of this class): 21 22 :param id: 23 The value to assign to the id property of this FunctionDeployEnvironmentSummary. 24 :type id: str 25 26 :param description: 27 The value to assign to the description property of this FunctionDeployEnvironmentSummary. 28 :type description: str 29 30 :param display_name: 31 The value to assign to the display_name property of this FunctionDeployEnvironmentSummary. 32 :type display_name: str 33 34 :param project_id: 35 The value to assign to the project_id property of this FunctionDeployEnvironmentSummary. 36 :type project_id: str 37 38 :param compartment_id: 39 The value to assign to the compartment_id property of this FunctionDeployEnvironmentSummary. 40 :type compartment_id: str 41 42 :param deploy_environment_type: 43 The value to assign to the deploy_environment_type property of this FunctionDeployEnvironmentSummary. 44 :type deploy_environment_type: str 45 46 :param time_created: 47 The value to assign to the time_created property of this FunctionDeployEnvironmentSummary. 48 :type time_created: datetime 49 50 :param time_updated: 51 The value to assign to the time_updated property of this FunctionDeployEnvironmentSummary. 52 :type time_updated: datetime 53 54 :param lifecycle_state: 55 The value to assign to the lifecycle_state property of this FunctionDeployEnvironmentSummary. 56 :type lifecycle_state: str 57 58 :param lifecycle_details: 59 The value to assign to the lifecycle_details property of this FunctionDeployEnvironmentSummary. 60 :type lifecycle_details: str 61 62 :param freeform_tags: 63 The value to assign to the freeform_tags property of this FunctionDeployEnvironmentSummary. 64 :type freeform_tags: dict(str, str) 65 66 :param defined_tags: 67 The value to assign to the defined_tags property of this FunctionDeployEnvironmentSummary. 68 :type defined_tags: dict(str, dict(str, object)) 69 70 :param system_tags: 71 The value to assign to the system_tags property of this FunctionDeployEnvironmentSummary. 72 :type system_tags: dict(str, dict(str, object)) 73 74 :param function_id: 75 The value to assign to the function_id property of this FunctionDeployEnvironmentSummary. 76 :type function_id: str 77 78 """ 79 self.swagger_types = { 80 'id': 'str', 81 'description': 'str', 82 'display_name': 'str', 83 'project_id': 'str', 84 'compartment_id': 'str', 85 'deploy_environment_type': 'str', 86 'time_created': 'datetime', 87 'time_updated': 'datetime', 88 'lifecycle_state': 'str', 89 'lifecycle_details': 'str', 90 'freeform_tags': 'dict(str, str)', 91 'defined_tags': 'dict(str, dict(str, object))', 92 'system_tags': 'dict(str, dict(str, object))', 93 'function_id': 'str' 94 } 95 96 self.attribute_map = { 97 'id': 'id', 98 'description': 'description', 99 'display_name': 'displayName', 100 'project_id': 'projectId', 101 'compartment_id': 'compartmentId', 102 'deploy_environment_type': 'deployEnvironmentType', 103 'time_created': 'timeCreated', 104 'time_updated': 'timeUpdated', 105 'lifecycle_state': 'lifecycleState', 106 'lifecycle_details': 'lifecycleDetails', 107 'freeform_tags': 'freeformTags', 108 'defined_tags': 'definedTags', 109 'system_tags': 'systemTags', 110 'function_id': 'functionId' 111 } 112 113 self._id = None 114 self._description = None 115 self._display_name = None 116 self._project_id = None 117 self._compartment_id = None 118 self._deploy_environment_type = None 119 self._time_created = None 120 self._time_updated = None 121 self._lifecycle_state = None 122 self._lifecycle_details = None 123 self._freeform_tags = None 124 self._defined_tags = None 125 self._system_tags = None 126 self._function_id = None 127 self._deploy_environment_type = 'FUNCTION' 128 129 @property 130 def function_id(self): 131 """ 132 **[Required]** Gets the function_id of this FunctionDeployEnvironmentSummary. 133 The OCID of the Function. 134 135 136 :return: The function_id of this FunctionDeployEnvironmentSummary. 137 :rtype: str 138 """ 139 return self._function_id 140 141 @function_id.setter 142 def function_id(self, function_id): 143 """ 144 Sets the function_id of this FunctionDeployEnvironmentSummary. 145 The OCID of the Function. 146 147 148 :param function_id: The function_id of this FunctionDeployEnvironmentSummary. 149 :type: str 150 """ 151 self._function_id = function_id 152 153 def __repr__(self): 154 return formatted_flat_dict(self) 155 156 def __eq__(self, other): 157 if other is None: 158 return False 159 160 return self.__dict__ == other.__dict__ 161 162 def __ne__(self, other): 163 return not self == other 164