<filename>acme/resources/NYCFC.py
#
#	NYCFC.py
#
#	(c) 2020 by <NAME>
#	License: BSD 3-Clause License. See the LICENSE file for further details.
#
#	ResourceType: mgmtObj:myCertFileCred from TS-0022
#

from .MgmtObj import *
from Types import ResourceTypes as T, JSON
from Validator import constructPolicy, addPolicy

# Attribute policies for this resource are constructed during startup of the CSE
nycfcPolicies = constructPolicy([
	'suids', 'mcff', 'mcfc'
])
attributePolicies =  addPolicy(mgmtObjAttributePolicies, nycfcPolicies)


class NYCFC(MgmtObj):

	def __init__(self, dct:JSON=None, pi:str=None, create:bool=False) -> None:
		self.resourceAttributePolicies = nycfcPolicies	# only the resource type's own policies
		super().__init__(dct, pi, mgd=T.NYCFC, create=create, attributePolicies=attributePolicies)


<filename>acme/resources/NYCFC.py
#
#	NYCFC.py
#
#	(c) 2020 by <NAME>
#	License: BSD 3-Clause License. See the LICENSE file for further details.
#
#	ResourceType: mgmtObj:myCertFileCred from TS-0022
#

from .MgmtObj import *
from Types import ResourceTypes as T, JSON
from Validator import constructPolicy, addPolicy

# Attribute policies for this resource are constructed during startup of the CSE
nycfcPolicies = constructPolicy([
	'suids', 'mcff', 'mcfc'
])
attributePolicies =  addPolicy(mgmtObjAttributePolicies, nycfcPolicies)


class NYCFC(MgmtObj):

	def __init__(self, dct:JSON=None, pi:str=None, create:bool=False) -> None:
		self.resourceAttributePolicies = nycfcPolicies	# only the resource type's own policies
		super().__init__(dct, pi, mgd=T.NYCFC, create=create, attributePolicies=attributePolicies)


# #	NYCFC.py # #	(c) 2020 by <NAME> #	License: BSD 3-Clause License. See the LICENSE file for further details. # #	ResourceType: mgmtObj:myCertFileCred from TS-0022 # # Attribute policies for this resource are constructed during startup of the CSE # only the resource type's own policies