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 5 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 DrgAttachmentInfo(object): 12 """ 13 The `DrgAttachmentInfo` resource contains the `OCID`__ of the DRG attachment. 14 15 __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm 16 """ 17 18 def __init__(self, **kwargs): 19 """ 20 Initializes a new DrgAttachmentInfo object with values from keyword arguments. 21 The following keyword arguments are supported (corresponding to the getters/setters of this class): 22 23 :param id: 24 The value to assign to the id property of this DrgAttachmentInfo. 25 :type id: str 26 27 """ 28 self.swagger_types = { 29 'id': 'str' 30 } 31 32 self.attribute_map = { 33 'id': 'id' 34 } 35 36 self._id = None 37 38 @property 39 def id(self): 40 """ 41 **[Required]** Gets the id of this DrgAttachmentInfo. 42 The Oracle-assigned ID of the DRG attachment 43 44 45 :return: The id of this DrgAttachmentInfo. 46 :rtype: str 47 """ 48 return self._id 49 50 @id.setter 51 def id(self, id): 52 """ 53 Sets the id of this DrgAttachmentInfo. 54 The Oracle-assigned ID of the DRG attachment 55 56 57 :param id: The id of this DrgAttachmentInfo. 58 :type: str 59 """ 60 self._id = id 61 62 def __repr__(self): 63 return formatted_flat_dict(self) 64 65 def __eq__(self, other): 66 if other is None: 67 return False 68 69 return self.__dict__ == other.__dict__ 70 71 def __ne__(self, other): 72 return not self == other 73