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

        resources.append(res)
        return resources
Beispiel #2
0
 def get_resources(self):
     resources = []
     res = extensions.ResourceExtension(
         Cgsnapshots.alias, CgsnapshotsController(),
         collection_actions={'detail': 'GET'})
     resources.append(res)
     return resources
 def get_resources(self):
     resources = []
     res = extensions.ResourceExtension(
         'encryption',
         VolumeEncryptionMetadataController(),
         parent=dict(member_name='volume', collection_name='volumes'))
     resources.append(res)
     return resources
 def get_resources(self):
     resources = []
     res = extensions.ResourceExtension(
         Volume_type_encryption.alias,
         VolumeTypeEncryptionController(),
         parent=dict(member_name='type', collection_name='types'))
     resources.append(res)
     return resources
Beispiel #5
0
    def get_resources(self):
        resources = []

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

        return resources
Beispiel #6
0
 def get_resources(self):
     resources = []
     res = extensions.ResourceExtension(
         Backups.alias, BackupsController(),
         collection_actions={'detail': 'GET', 'import_record': 'POST'},
         member_actions={'restore': 'POST', 'export_record': 'GET',
                         'action': 'POST'})
     resources.append(res)
     return resources
Beispiel #7
0
    def get_resources(self):
        resources = []
        res = extensions.ResourceExtension(
            Scheduler_stats.alias,
            SchedulerStatsController(),
            collection_actions={"get_pools": "GET"})

        resources.append(res)

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

        res = extensions.ResourceExtension(
            Volume_transfer.alias,
            VolumeTransferController(),
            collection_actions={'detail': 'GET'},
            member_actions={'accept': 'POST'})
        resources.append(res)
        return resources
Beispiel #9
0
    def get_resources(self):
        resources = []

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

        return resources
Beispiel #10
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
Beispiel #11
0
 def get_resources(self):
     resources = []
     res = extensions.ResourceExtension(Consistencygroups.alias,
                                        ConsistencyGroupsController(),
                                        collection_actions={
                                            'detail': 'GET',
                                            'create_from_src': 'POST'
                                        },
                                        member_actions={
                                            'delete': 'POST',
                                            'update': 'PUT'
                                        })
     resources.append(res)
     return resources
Beispiel #12
0
    def get_resources(self):
        resources = []
        res = extensions.ResourceExtension(Qos_specs_manage.alias,
                                           QoSSpecsController(),
                                           member_actions={
                                               "associations": "GET",
                                               "associate": "GET",
                                               "disassociate": "GET",
                                               "disassociate_all": "GET",
                                               "delete_keys": "PUT"
                                           })

        resources.append(res)

        return resources
Beispiel #13
0
 def get_resources(self):
     controller = SnapshotManageController()
     return [
         extensions.ResourceExtension(Snapshot_manage.alias, controller)
     ]
Beispiel #14
0
 def get_resources(self):
     controller = VolumeManageController()
     res = extensions.ResourceExtension(Volume_manage.alias, controller)
     return [res]
Beispiel #15
0
 def get_resources(self):
     controller = Controller()
     res = extensions.ResourceExtension(Availability_zones.alias,
                                        controller)
     return [res]