def _set_object_storage_clients(self): # Mandatory parameters (always defined) params = self.parameters['object-storage'] self.account_client = object_storage.AccountClient(self.auth_provider, **params) self.container_client = object_storage.ContainerClient( self.auth_provider, **params) self.object_client = object_storage.ObjectClient(self.auth_provider, **params)
def _set_object_storage_clients(self): # Mandatory parameters (always defined) params = self.parameters['object-storage'] self.account_client = object_storage.AccountClient( self.auth_provider, **params) self.bulk_client = object_storage.BulkMiddlewareClient( self.auth_provider, **params) self.capabilities_client = object_storage.CapabilitiesClient( self.auth_provider, **params) self.container_client = object_storage.ContainerClient( self.auth_provider, **params) self.object_client = object_storage.ObjectClient( self.auth_provider, **params)
def _set_object_storage_clients(self): # NOTE(andreaf) Load configuration from config. Once object storage # is in lib, configuration will be pulled directly from the registry # and this will not be required anymore. params = config.service_client_config('object-storage') self.account_client = object_storage.AccountClient( self.auth_provider, **params) self.bulk_client = object_storage.BulkMiddlewareClient( self.auth_provider, **params) self.capabilities_client = object_storage.CapabilitiesClient( self.auth_provider, **params) self.container_client = object_storage.ContainerClient( self.auth_provider, **params) self.object_client = object_storage.ObjectClient( self.auth_provider, **params)