accepts = [
Parameter(str, "Credential string"),
- Mixed([Parameter(str, "Human readable name (hrn)")],
- Parameter(str, "Human readable name (hrn)"),
- Parameter(None, "hrn not specified"))
+
+ Mixed(Parameter(str, "Human readable name (hrn)"),
+ Parameter(None, "hrn not specified")),
+ Mixed(Parameter(str, "Request hash"),
+ Parameter(None, "Request hash not specified"))
]
returns = [Parameter(dict, "Registry interface information")]
- def call(self, cred, hrn = None):
-
+ def call(self, cred, hrn = None, request_hash=None):
+ self.api.auth.authenticateCred(cred, [cred, hrn], request_hash)
self.api.auth.check(cred, 'list')
registries = Registries(self.api)
hrn_list = []
interfaces = [interface for interface in registries.interfaces if interface['hrn'] in hrn_list]
return interfaces
- return registries.interfaces