def _extract_service_catalog(self, body):
self.auth_ref = access.create(body=body)<EOL>self.service_catalog = self.auth_ref.service_catalog<EOL>self.auth_token = self.auth_ref.auth_token<EOL>self.auth_tenant_id = self.auth_ref.tenant_id<EOL>self.auth_user_id = self.auth_ref.user_id<EOL>if not self.endpoint_url:<EOL><INDENT>self.endpoint_url = self.service_catalog.url_for(<EOL>region_name=self.region_name,<EOL>service_type=self.service_type,<EOL>interface=self.endpoint_type)<EOL><DEDENT>
Set the client's service catalog from the response data.