Beispiel #1
0
    def get_resources(self):
        resources = []
        res = extensions.ResourceExtension(Appnodes.alias,
                                           AppnodesController())

        resources.append(res)
        return resources
Beispiel #2
0
    def get_resources(self):
        resources = []

        res = extensions.ResourceExtension('os-quota-class-sets',
                                           QuotaClassSetsController())
        resources.append(res)

        return resources
Beispiel #3
0
    def get_resources(self):
        resources = []

        res = extensions.ResourceExtension('os-quota-sets',
                                           QuotaSetsController(),
                                           member_actions={'defaults': 'GET'})
        resources.append(res)

        return resources
Beispiel #4
0
 def get_resources(self):
     resources = []
     res = extensions.ResourceExtension(
         Backups.alias,
         BackupsController(),
         collection_actions={'detail': 'GET'},
         member_actions={'restore': 'POST'})
     resources.append(res)
     return resources
Beispiel #5
0
    def get_resources(self):
        resources = []
        res = extensions.ResourceExtension('extra_specs',
                                           HardwareTypeExtraSpecsController(),
                                           parent=dict(
                                               member_name='type',
                                               collection_name='types'))
        resources.append(res)

        return resources
Beispiel #6
0
 def get_resources(self):
     resources = [extensions.ResourceExtension('os-hosts',
                                               HostController(),
                                               collection_actions={
                                                   'update': 'PUT'},
                                               member_actions={
                                                   'startup': 'GET',
                                                   'shutdown': 'GET',
                                                   'reboot': 'GET'})]
     return resources
 def get_resources(self):
     resources = []
     res = extensions.ResourceExtension(Poolusages.alias,
                                        PoolUsagesController())
     resources.append(res)
     return resources
Beispiel #8
0
 def get_resources(self):
     resources = []
     resource = extensions.ResourceExtension('os-services',
                                             ServiceController())
     resources.append(resource)
     return resources