Esempio n. 1
0
 def security_definitions(self):
     security_defs = {}
     for security_name, security_def in iteritems(
             self.spec_dict.get('securityDefinitions', {})):
         security_defs[security_name] = SecurityDefinition(
             self, security_def)
     return security_defs
Esempio n. 2
0
 def _security_definitions(self):
     # type: () -> typing.Dict[typing.Text, SecurityDefinition]
     return {
         security_name: SecurityDefinition(self, security_def)
         for security_name, security_def in iteritems(
             self.spec_dict.get('securityDefinitions', {}))
     }